0

I am having issues with playing redirected .m3u8 streams in XBMC/kodi. I have the following php script that i call it like this :

http://www.MyWebsite.com/getStream.php?channel=12

if i use the above link in kodi/xbmc it never plays it ! could any one tell me how to fix this issue and allow xbmc/kodi to play links like above? Should i add extra header?

<?

//rest of code that gets the actual stream url
$a="http://someRemoteWebsite.com/hls/stream12.m3u8?token=234324213243";
header("Location: " . $a);
?>
user1788736
  • 2,727
  • 20
  • 66
  • 110

1 Answers1

2

It will not play a url like that unless its in an addon and knows to be redirected to the raw m3u8. If you are plopping the http://www.MyWebsite.com/getStream.php?channel=12 into a strm file it tries to play http://www.MyWebsite.com/getStream.php?channel=12 as videos and since it is not it fails.

Bobby Peters
  • 181
  • 1
  • 1
  • 9