
RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
02:26 PM
Re: HLS streaming questions
Are your streams live or VOD? In other words, are new TS files appearing dynamically while you're playing? If you're only playing VOD content, you just need to create the m3u8 file once and the task should be pretty easy. Retrotom gave you an example of an m3u8 file in this thread that you can use for comparison with yours. If you can't find what's wrong, post the contents of your m3u8 here (not the php code that generates it, but the m3u8 that is produced by that code).
--Mark
--Mark
dynamitemedia
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
02:41 PM
Re: HLS streaming questions
I want to thank you for your help and as i stated in the last message, these are for VOD...
I can make a playlist file and it works if i hard code it as i have explained.
and when i create the .php file, when you download it you will see its is structured exactly the same as my .m3u8 file
here is the php file when you hit view page source or download it.
and here is the link to see for yourself : http://iptvmyway.com/roku/HLS/playlists/playlist.php
again this is how it looks when you view page source... or if you download to your desktop....
and here is the php i have to make it, just in case you want to see...
i took the header out so you can view the page...
I can make a playlist file and it works if i hard code it as i have explained.
and when i create the .php file, when you download it you will see its is structured exactly the same as my .m3u8 file
here is the php file when you hit view page source or download it.
and here is the link to see for yourself : http://iptvmyway.com/roku/HLS/playlists/playlist.php
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer1.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer2.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer3.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer4.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer5.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer6.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer7.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer8.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer9.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer10.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer11.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer12.ts
#EXTINF:10,
http://iptvmyway.com/roku/HLS/streaming/trailer13.ts
#EXT-X-ENDLIST
again this is how it looks when you view page source... or if you download to your desktop....
and here is the php i have to make it, just in case you want to see...
<?php
//header("Content-Type: application/vnd.apple.mpegurl");
//header("Cache-Control: no-cache");
//header("Pragma: no-cache");
$directory = "../streaming/";
$filecount = count(glob("" . $directory . "*.ts"));
$duration= $filecount * 10;
?>
#EXTM3U<?php echo "\r\n"?>
#EXT-X-TARGETDURATION:10<?php echo "\r\n"?>
#EXT-X-MEDIA-SEQUENCE:1<?php echo "\r\n"?>
<?php
$i=1;
while($i<=$filecount) {
$sequence = $i;
$vid= "trailer";
$video = "$vid$sequence.ts";
?>
#EXTINF:10,<?php echo "\r\n"?>
http://iptvmyway.com/roku/HLS/streaming/<?php echo $video;?><?php echo "\r\n"?>
<?php
$i++;
} // closes while loop
?>
#EXT-X-ENDLIST
i took the header out so you can view the page...
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
dynamitemedia
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
03:00 PM
Re: HLS streaming questions
Chris your able to with the headers commented out?
Now i am very confused!! LOL
i just keep getting the following error in Roku
I just uncommented the header info to check it too.. and still got the same error after getting up to 13%
Now i am very confused!! LOL
i just keep getting the following error in Roku
------ Running ------
11, 0: startup progress
11, 66: startup progress
11, 132: startup progress
9,-5: The format is not supported or the media is corrupt.
16, 0: Playback completed.
11, 0: end of playlist
Remote button pressed: 3
7, 3:
I just uncommented the header info to check it too.. and still got the same error after getting up to 13%
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
dynamitemedia
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
03:02 PM
Re: HLS streaming questions
thats strange i just saw a comment from RokuChris and now its gone..
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
03:04 PM
Re: HLS streaming questions
"dynamitemedia" wrote:
Chris your able to with the headers commented out?
Yep. The audio cuts in and out and the video is jumpy, but it played all the way through
dynamitemedia
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
03:09 PM
Re: HLS streaming questions
hmmm.... yeah i found what happened was i encoded that clip incorrectly, but i know how to fix that so its ok...
weird thing is if you hit like pause for a second or rewind it will come back to normal speed with the audio.
So Chris why do you think it wont play on my box? and you are playing the playlist.php file right?
i am testing it with the custom video example and just changing the url to go to:
http://iptvmyway.com/roku/HLS/playlists/playlist.php
maybe its something i have done wrong in the video player example?
weird thing is if you hit like pause for a second or rewind it will come back to normal speed with the audio.
So Chris why do you think it wont play on my box? and you are playing the playlist.php file right?
i am testing it with the custom video example and just changing the url to go to:
http://iptvmyway.com/roku/HLS/playlists/playlist.php
maybe its something i have done wrong in the video player example?
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
03:14 PM
Re: HLS streaming questions
"dynamitemedia" wrote:
So Chris why do you think it wont play on my box? and you are playing the playlist.php file right?
Yes, I used http://iptvmyway.com/roku/HLS/playlists/playlist.php as the streamURL. I know next to nothing about the actual HLS protocol and playlist format, so I can't begin to guess what's going on there. Best I can do is reinforce Mark's comments that using an existing HLS product is the much easier route.
dynamitemedia
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
03:18 PM
Re: HLS streaming questions
well i understand that but, I find it strange that will work for you but not for me?
can you share with me what you used as far as viewing it? I am wondering if its something to do with the custom video player example just may not be correct for viewing a .php extension.
then i can change my mind and maybe go with an available product, but it shows that if you got it playing then its obviously possible it can be done.
So it may be an incorrect assumption in that maybe it is just in my brightscript that is making it not work, but at this point not sure what else it could be
can you share with me what you used as far as viewing it? I am wondering if its something to do with the custom video player example just may not be correct for viewing a .php extension.
then i can change my mind and maybe go with an available product, but it shows that if you got it playing then its obviously possible it can be done.
So it may be an incorrect assumption in that maybe it is just in my brightscript that is making it not work, but at this point not sure what else it could be
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
03:26 PM
Re: HLS streaming questions
Sub Main()
vid = {
stream: {
url: "http://iptvmyway.com/roku/HLS/playlists/playlist.php"
}
streamFormat: "hls"
}
screen = CreateObject("roVideoScreen")
screen.SetMessagePort(CreateObject("roMessagePort"))
screen.SetContent(vid)
screen.Show()
while true
msg = wait(0, screen.GetMessagePort())
if msg <> invalid then
print msg.GetMessage()
if msg.isScreenClosed()
exit while
end if
end if
end while
end sub
dynamitemedia
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2010
03:43 PM
Re: HLS streaming questions
tried that and still got this error
Crap, this stinks that it wont work on my box... Chris do you find it strange that it will work over there but not here?
Thats why i have lost so much time and it could have been working all this time but not on my box... i have the following box
version 2.7 -bulid 857
model n1100
------ Running ------
The format is not supported or the media is corrupt.
------ Running ------
The format is not supported or the media is corrupt.
------ Running ------
The format is not supported or the media is corrupt.
Crap, this stinks that it wont work on my box... Chris do you find it strange that it will work over there but not here?
Thats why i have lost so much time and it could have been working all this time but not on my box... i have the following box
version 2.7 -bulid 857
model n1100
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway