"dynamitemedia" wrote:
I have tested this over and over and its working on VLC but NOt the roku and now not on my iPhone either
here is the link to the .php file:
http://iptvmyway.com/roku/HLS/playlists/test.php
and a working m3u8 on Roku:
http://iptvmyway.com/roku/HLS/playlists/stream.m3u8
now strange thing is, that m3u8 will work on VLC and Roku but not my iPhone... keeps saying the movie can't be played.
I have pasted the code above as well and you can see by the download it looks the same as the playlist file that is working.
I've been playing with HLS and finally got in working on our channel/app. I see three issues -- two (I think) with your code and one (potentially) with your testing. First, the testing -- VLC does not really support HLS. It will play the files sequentially because it's a playlist. So when it plays in VLC, what that means is -- you have a valid playlist -- but you may not have a valid HLS playlist. Secondly, looking at your PHP code -- it looks like you've got TARGETDURATION set to the length of the entire stream.You should try to set it to 10 or something. When testing with the Roku, I had an issue with this -- even though it should work when you've specified ENDLIST. Then the last potential issue I think I see is that you're giving each segment the same title (a blank space) with
#EXTINF:10,<?php echo " \r\n"?>
. I would try giving them all unique titles. In my code, which I finally got working -- they all have their sequence number as the title. That shouldn't be a deal breaker because it's just a title and doesn't uniquely identify the segment -- but you never know. Lastly, are you setting the content-type (mime) of the file being downloaded as "application/vnd.apple.mpegurl"?