php redirect to m3u8 problem

SS IPTV App for LG Smart TV discussion
Post Reply
kolin
Ensign
Ensign
Posts: 3
Joined: 04 Nov 2019, 13:45
TV Model: samsung
Iraq

php redirect to m3u8 problem

Post by kolin »

Hello I've php link that bring m3u8 file and redirect to it via header location
the probelm is I cant play it on ssiptv but the link work fine on any player like android player Mxplayer or windows player vlc
thank u

User avatar
Eugene
Project Leader
Project Leader
Posts: 5620
Joined: 15 Apr 2013, 22:54
TV Model: LG 47LM960V, LG LB679V
Location: Санкт-Петербург
Been thanked: 18 times
Contact:
Russia

Re: php redirect to m3u8 problem

Post by Eugene »

The problem is the app doen't undestand that you try to play hls-streams. It always defines streams type by m3u8 extension but as you use redirection from php, the app doesn't "see" this extension in the link.
You could directly define stream type in m3u playlist using mime-type attribute:

Code: Select all

#EXTINF:-1 mime-type="application/vnd.apple.mpegurl", Some HLS Channel

It works for old Samsung models but I'm not sure if it works for Tizen.

kolin
Ensign
Ensign
Posts: 3
Joined: 04 Nov 2019, 13:45
TV Model: samsung
Iraq

Re: php redirect to m3u8 problem

Post by kolin »

Great Thank u so much it work like charm

Post Reply