"coskel" wrote:
Revamping a channel with the simple grid layout.
Currently using the videoplayer layout, which calls the video from my Wowza server using streamUrl
HLS video link is m3u
I see in the simple grid layout, video is called with:
<media:content channels="2" bitrate="1328.0" duration="59" fileSize="9523612" framerate="23.976" height="720" type="video/mp4" width="1280" isDefault="true" url="http://roku.cpl.delvenetworks.com/media/59021fabe3b645968e382ac726cd6c7b/6c9d0951d6d74229afe4adf972b278dd/bc227724e2854c6b93ad48d1feb39c16/roku_ep_115_segment_5_paula_nw_050515.mp4">
Can I change it to:
<streamUrl>http://xxx.xxx.xxx:1935/vod/smil:SON032316.smil/playlist.m3u8</streamUrl>
If so, how? I've been fighting with this and trying to change the main.brs but can't figure it out:
if xmlItem.getName() = "media:content"
item.stream = {url : xmlItem.url}
item.url = xmlItem.getAttributes().url
item.streamFormat = "mp4"
mediaContent = xmlItem.GetChildElements()
for each mediaContentItem in mediaContent
if mediaContentItem.getName() = "media:thumbnail"
item.HDPosterUrl = mediaContentItem.getattributes().url
item.hdBackgroundImageUrl = mediaContentItem.getattributes().url
end if
Thanks in advance everyone!
You probably didn't get a response because there's just not enough information in your post. I can't even tell from what you've posted whether you're trying to use the Scene Graph API or the standard API. Also, I can't tell what you mean by "the simple grid layout" and "the videoplayer layout". And stating that something "didn't work" or "should work, but it doesn't", doesn't give anyone any clue about what's actually happening versus what should be happening.
If you've written your own code that's not working, then you need to post the actual code you're using to play the video, along with a description of what happens when you run the code versus what you expect to happen; as well as any debugger output if the program is crashing; or event logs if the program doesn't crash, but the video doesn't play. And if you're using some example code from somewhere, then post links to that code. Roku has a multitude of examples, samples, templates, tutorials, code snippets, etc. scattered throughout the cyberverse in various web documents, blog postings, forum postings, github repos, sourceforge repos, etc, etc; several of these are called "videoplayer". Without knowing what you're basing your code on makes it harder to figure out what you're trying to do.