coskel
10 years agoRoku Guru
Can I use streamURL instead of media:content on simple grid
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:
Can I change it to:
If so, how? I've been fighting with this and trying to change the main.brs but can't figure it out:
Thanks in advance everyone!
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!