if msg.GetIndex() = 7
item.StreamUrls.Push(validstr(e.preview.GetText()))
endif
if msg.GetIndex() = 7
Function showVideoScreen(movie As Object)
screen = CreateObject("roVideoScreen")
movie.Stream = { url:"http://video.ted.com/talks/podcast/ElizabethGilbert_2009_480.mp4",
contentid:"mycontent-2000"
}
screen.SetContent(movie)
screen.SetMessagePort(port)
screen.Show()
End Function
endif
if msg.GetIndex() = 7
trailer = {
stream: { url:"http://video.ted.com/talks/podcast/ElizabethGilbert_2009_480.mp4" }
streamFormat: "mp4"
}
ShowVideoScreen(trailer)
end if
"RokuChris" wrote:
You don't need to redefine the function within the event loop. That will probably give you an error on install along the lines of "function defined multiple times". You can reuse the existing one. And changing the stream URL of the existing content-meta-data is an option, but it might make more sense to build a separate content-meta-data for the trailer.
if msg.GetIndex() = 7
trailer = {
stream: { item.trailer.GetText() }
streamFormat: "mp4"
}
ShowVideoScreen(trailer)
endif
item.StreamUrls = item.trailer
"stitch1z" wrote:if msg.GetIndex() = 7
trailer = {
stream: { item.trailer.GetText() }
streamFormat: "mp4"
}
ShowVideoScreen(trailer)
endif
item.trailer = {
stream: { url: validstr(curShow.trailer.GetText()) }
streamFormat: "mp4"
}
if msg.GetIndex() = 7
ShowVideoScreen(showList[showIndex].trailer)
end if
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!
For support, visit support.roku.com.