<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<!-- resultLength indicates the total number of results for this feed -->
<resultLength>1</resultLength>
<!-- endIndix indicates the number of results for this *paged* section of the feed -->
<endIndex>1</endIndex>
<item sdImg="http://[THE SERVER].com/roku/upLynk/images/bigbuckbunny.jpg" hdImg="http://[THE SERVER].com/roku/upLynk/images/bigbuckbunny.jpg">
<title>Big Buck Bunny</title>
<contentId>10001</contentId>
<contentType>movie</contentType>
<contentQuality>HD</contentQuality>
<media>
<streamFormat>hls</streamFormat>
<streamQuality>HD</streamQuality>
<streamBitrate>0</streamBitrate>
<streamUrl>http://[THE SERVER]/content/37d6fd87f71141dbb1638e1cdf4ea93f.m3u8</streamUrl>
</media>
<synopsis>'Big' Buck wakes up in his rabbit hole, only to be pestered by three critters, Gimera, Frank and Rinky. When Gimera kills a butterfly, Buck decides on a payback Predator-style</synopsis>
<genres>Short</genres>
<runtime>595</runtime>
</item>
</feed>
Local Variables:
screen &h16 bsc:roSpringboardScreen, refcnt=2
showlist &h16 bsc:roArray, refcnt=2
showindex &h02 Integer val:0
global &h07 rotINTERFACE:ifGlobal
m &h06 bsc:roAssociativeArray, refcnt=7
remotekeyleft &h12 Integer val:4
remotekeyright &h12 Integer val:5
msg &h16 bsc:roSpringboardScreenEvent, refcnt=1
playstart &h14 String val:0
port &h30 Untyped val:Uninitialized
BrightScript Debugger> last
038: msg = wait(0, screen.GetMessagePort())
created feed connection for http://[THE SERVER].com/roku/upLynk/xml/animated-short.xml
url: http://[THE SERVER]/roku/upLynk/xml/animated-short.xml
Request Time: 51
Show Feed Parse Took : 13
ButtonPressed
ButtonPressed
showHomeScreen | msg = An unexpected problem (but not server timeout or HTTP error) has been detected. | index = -3
Video request failure: -3 0
showHomeScreen | msg = | index = 0
Screen closed
Button pressed: 1 0
'******************************************************
'** Display the home screen and wait for events from
'** the screen. The screen will show retreiving while
'** we fetch and parse the feeds for the game posters
'******************************************************
Function showHomeScreen(screen) As Integer
if validateParam(screen, "roPosterScreen", "showHomeScreen") = false return -1
initCategoryList()
screen.SetContentList(m.Categories.Kids)
screen.SetFocusedListItem(3)
screen.Show()
while true
msg = wait(0, screen.GetMessagePort())
if type(msg) = "roPosterScreenEvent" then
print "showHomeScreen | msg = "; msg.GetMessage() " | index = "; msg.GetIndex()
if msg.isListFocused() then
print "list focused | index = "; msg.GetIndex(); " | category = "; m.curCategory
else if msg.isListItemSelected() then
print "list item selected | index = "; msg.GetIndex()
kid = m.Categories.Kids[msg.GetIndex()]
if kid.type = "special_category" then
displaySpecialCategoryScreen()
else
displayCategoryPosterScreen(kid)
end if
else if msg.isScreenClosed() then
return -1
end if
end If
end while
return 0
End Function
Video request failure: -3 0
print "showHomeScreen | msg = "; msg.getMessage() " | index = "; msg.GetIndex()should be:
print "showVideoScreen | msg = "; msg.getMessage() " | index = "; msg.GetIndex()
"RokuChris" wrote:
The problem is in your XML. streamFormat should be defined at the item level (line 142 of showFeed.brs), you're defining it at the stream level. And the video player example is written so that when it can't determine a streamFormat, it assumes "mp4".
item.StreamFormat = validstr(curShow.streamFormat.GetText())
if item.StreamFormat = "" then 'set default streamFormat to hls if doesn't exist in xml
item.StreamFormat = "mp4"
endif
item.StreamFormat ="hls"
if item.StreamFormat = "" then 'set default streamFormat to hls if doesn't exist in xml
item.StreamFormat = "mp4"
endif
item.StreamFormat = validstr(curShow.streamFormat.GetText())
if item.StreamFormat = "" then 'set default streamFormat to hls if doesn't exist in xml
item.StreamFormat = "hls"
endif