<item sdImg="http://rokudev.roku.com/rokudev/examples/videoplayer/images/BenjaminZander.jpg" hdImg="http://rokudev.roku.com/rokudev/examples/videoplayer/images/BenjaminZander.jpg">
<title>Benjamin Zander on music and passion</title>
<contentId>10041</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://video.ted.com/talks/podcast/BenjaminZander_2008_480.mp4</streamUrl>
</media>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://video.ted.com/talks/podcast/CynthiaSchneider_2009G_480.mp4</streamUrl>
</media>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://video.ted.com/talks/podcast/JulianTreasure_2009G_480.mp4</streamUrl>
</media>
<synopsis>Benjamin Zander has two infectious passions: classical music, and helping us all realize our untapped love for it -- and by extension, our untapped love for all new possibilities, new experiences, new connections.</synopsis>
<genres>Inspiration</genres>
<runtime>0</runtime>
</item>
Function showDetailScreen(screen As Object, showList As Object, showIndex as Integer) As Integer
if validateParam(screen, "roSpringboardScreen", "showDetailScreen") = false return -1
if validateParam(showList, "roArray", "showDetailScreen") = false return -1
refreshShowDetail(screen, showList, showIndex)
'remote key id's for left/right navigation
remoteKeyLeft = 4
remoteKeyRight = 5
while true
msg = wait(0, screen.GetMessagePort())
if type(msg) = "roSpringboardScreenEvent" then
if msg.isScreenClosed()
print "Screen closed"
exit while
else if msg.isRemoteKeyPressed()
print "Remote key pressed"
if msg.GetIndex() = remoteKeyLeft then
showIndex = getPrevShow(showList, showIndex)
if showIndex <> -1
refreshShowDetail(screen, showList, showIndex)
end if
else if msg.GetIndex() = remoteKeyRight
showIndex = getNextShow(showList, showIndex)
if showIndex <> -1
refreshShowDetail(screen, showList, showIndex)
end if
endif
else if msg.isButtonPressed()
print "ButtonPressed"
if msg.GetIndex() = 1
PlayStart = RegRead(showList[showIndex].ContentId)
if PlayStart <> invalid then
showList[showIndex].PlayStart = PlayStart.ToInt()
endif
showVideoScreen(showList[showIndex])
endif
if msg.GetIndex() = 2
showList[showIndex].PlayStart = 0
showVideoScreen(showList[showIndex])
endif
if msg.GetIndex() = 3 OR msg.GetIndex() = 4
print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
showSubscriptionDetails()
endif
if msg.GetIndex() = 5
print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
print showList[showIndex].StreamUrls.Count()
for k=0 to showList[showIndex].StreamUrls.Count()
currFeedItem = init_show_feed_item()
currFeedItem.ContentId = showList[showIndex].ContentId
currFeedItem.MatchId = showList[showIndex].MatchId
currFeedItem.Title = showList[showIndex].Title
currFeedItem.ContentType = showList[showIndex].ContentType
currFeedItem.ContentQuality = showList[showIndex].ContentQuality
currFeedItem.Synopsis = showList[showIndex].Synopsis
currFeedItem.Genre = showList[showIndex].Genre
currFeedItem.Runtime = showList[showIndex].Runtime
currFeedItem.authParams = showList[showIndex].authParams
currFeedItem.StreamQualities = CreateObject("roArray", 1, true)
currFeedItem.StreamBitrates = CreateObject("roArray", 1, true)
currFeedItem.StreamUrls = CreateObject("roArray", 1, true)
currFeedItem.StreamQualities.Push(validstr(showList[showIndex].StreamQualities[k]))
currFeedItem.StreamBitrates.Push(validstr(showList[showIndex].StreamBitrates[k]))
currFeedItem.StreamUrls.Push(validstr(showList[showIndex].StreamUrls[k]))
PlayStart = RegRead(currFeedItem.ContentId)
if PlayStart <> invalid then
currFeedItem.PlayStart = PlayStart.ToInt()
endif
showVideoScreen(currFeedItem)
end for
endif
end if
else
print "Unexpected message class: "; type(msg)
end if
end while
return showIndex
End Function
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. You will not be able to log in or post new comments or kudos 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 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!