“RokuMarkn” wrote:
campbellwang, from the logs it looks like you may be setting the StreamFormat to “mp4” rather than “hls”. Can you check that, and if you think that’s not the issue, please post or PM me the code you’re using to create your VideoScreen.
–Mark
Okay, I will need to get back to you tomorrow then. Thanks
i will try this Mark I will let you know in a min…
“RokuMarkn” wrote:
campbellwang, from the logs it looks like you may be setting the StreamFormat to “mp4” rather than “hls”. Can you check that, and if you think that’s not the issue, please post or PM me the code you’re using to create your VideoScreen.
Im basing this off of the videoplayer example by using an XML would this still apply the same way or how would it be passed to the roVideoScreen object from the XML???
“RokuMarkn” wrote:
The important thing is what is in your episode object. You must set episode.StreamFormat = “hls”.
For a working example using your URL, you can modify the SimpleVideoPlayer example like this:
Edit appMain.brs and change the line
videoclip.StreamFormat = “mp4”
to
videoclip.StreamFormat = “hls”
It would work the same way, but you’ve got to parse the XML, pull out the relevant fields and set up the roAssociativeArray for the video player.
“PRIZM” wrote:
Im basing this off of the videoplayer example by using an XML would this still apply the same way or how would it be passed to the roVideoScreen object from the XML???
“RokuMarkn” wrote:
The important thing is what is in your episode object. You must set episode.StreamFormat = “hls”.
For a working example using your URL, you can modify the SimpleVideoPlayer example like this:
Edit appMain.brs and change the line
videoclip.StreamFormat = “mp4”
to
videoclip.StreamFormat = “hls”
Could you show me by chance how thats done? Im a little lost on that one?
“RokuPatrick” wrote:
It would work the same way, but you’ve got to parse the XML, pull out the relevant fields and set up the roAssociativeArray for the video player.
“PRIZM” wrote:
Im basing this off of the videoplayer example by using an XML would this still apply the same way or how would it be passed to the roVideoScreen object from the XML???
“RokuMarkn” wrote:
The important thing is what is in your episode object. You must set episode.StreamFormat = “hls”.
For a working example using your URL, you can modify the SimpleVideoPlayer example like this:
Edit appMain.brs and change the line
videoclip.StreamFormat = “mp4”
to
videoclip.StreamFormat = “hls”
It looks like there’s a bug in the videoplayer sample application. The StreamFormat should not be an array element in the XML. To work around this add the following line immediately before the call to SetContent() in appVideoScreen.brs.
To use the value that was passed in the XML data:
episode.StreamFormat = episode.StreamFormats[0]
–or–
To force it to use HLS for everything:
episode.StreamFormat = “hls”
I haven’t had a chance verify this first hand, but code inspection seems to show what’s wrong here. We’ll fix this defect in the next release.
“RokuDaveW” wrote:
It looks like there’s a bug in the videoplayer sample application. The StreamFormat should not be an array element in the XML. To work around this add the following line immediately before the call to SetContent() in appVideoScreen.brs.
To use the value that was passed in the XML data:
episode.StreamFormat = episode.StreamFormats[0]
–or–
To force it to use HLS for everything:
episode.StreamFormat = “hls”
I haven’t had a chance verify this first hand, but code inspection seems to show what’s wrong here. We’ll fix this defect in the next release.
“PRIZM” wrote:
I will try that real quick and let ya know!
“RokuDaveW” wrote:
It looks like there’s a bug in the videoplayer sample application. The StreamFormat should not be an array element in the XML. To work around this add the following line immediately before the call to SetContent() in appVideoScreen.brs.
To use the value that was passed in the XML data:
episode.StreamFormat = episode.StreamFormats[0]
–or–
To force it to use HLS for everything:
episode.StreamFormat = “hls”
I haven’t had a chance verify this first hand, but code inspection seems to show what’s wrong here. We’ll fix this defect in the next release.
Tried it this way in the appVideoScreen.brs and did not work. gave me the same thing starting to load the buffer indicator then back to springboard??? Hmmmm…
“PRIZM” wrote:
I am assuming you mean like this?
port = CreateObject(“roMessagePort”)
screen = CreateObject(“roVideoScreen”)
screen.SetMessagePort(port)
“PRIZM” wrote:
I will try that real quick and let ya know!
“RokuDaveW” wrote:
It looks like there’s a bug in the videoplayer sample application. The StreamFormat should not be an array element in the XML. To work around this add the following line immediately before the call to SetContent() in appVideoScreen.brs.
To use the value that was passed in the XML data:
episode.StreamFormat = episode.StreamFormats[0]
–or–
To force it to use HLS for everything:
episode.StreamFormat = “hls”
I haven’t had a chance verify this first hand, but code inspection seems to show what’s wrong here. We’ll fix this defect in the next release.
Ok Reloaded The build zip back to the RoKu Box and it worked. This is based off of the videoplayer example / via XML feeds.
In the example videoplayer source file appVideoScreen.brs i changed to this:
screen.Show()
episode.StreamFormat = episode.StreamFormats[0]
screen.SetContent(episode)
screen.Show()
I got it to work on the simple streaming example. For some reason it didn’t work for me with a single live stream name, but it did work when I used a stream with an adaptive bitrate smil file on a wowza server.
“RokuPatrick” wrote:
Tim. Please do a manual update to the 2.6 firmware and see if it still occurs.
Thanks for the quick response. I have a new Roku box on the way so I will try with that one when it arrives. My kids would be quite upset if I bricked their Roku box. (Not that I heard of that happening, but I’ve just been working with the SDK for about 5 hours, i.e. total newbie so don’t want to take any chances).
Hello, I just discovered what the bug is that is causing this (still happens in current version) its not in the code files and you dont need to add the episode.streamFormat line at all. The problem is in the XML files. The app works depending on which XML sample file you choose to base your XML file structure off of. Some of them have the line in the right place and some dont. The line needs to be outside of the tags and NOT inside of them like they are in some of the examples. The generic.xml example is right. It would be nice if someone from Roku could fix the XML file examples to correct this. Hope this helps others as the other fixes listed here didnt help me.
It looks like themind.xml, music.xml, inspiration.xml, and globalissues.xml do not have this information in the place expected by the code. Everything works in the sample because the default format is .mp4, which the videplayer urls are, but when you modify the code to point to your own files you may expect the StreamFormat to get set to something else and it isn’t.
We’ll update those files in the next SDK release, but please edit design.xml as a good example of indicating StreamFormat correctly.