Forum Discussion
belltown
13 years agoRoku Guru
In appDetailScreen.brs, the line:
will never evaluate to true (i.e. you will never see that contentType equals "image"), because of a bug in showFeed.brs. The problem is that the contentType is read from the xml file, then subsequently set to "episode", overwriting the value read from the xml file.
The solution is to move the following lines in showFeed.brs to immediately after the line that says: item = init_show_feed_item()
And, if you haven't already done so, you'll have to write a 'showImage' function, e.g:
if Showlist[showIndex].contentType="image" then
will never evaluate to true (i.e. you will never see that contentType equals "image"), because of a bug in showFeed.brs. The problem is that the contentType is read from the xml file, then subsequently set to "episode", overwriting the value read from the xml file.
The solution is to move the following lines in showFeed.brs to immediately after the line that says: item = init_show_feed_item()
'Set Default screen values for items not in feed
item.HDBranded = false
item.IsHD = false
item.StarRating = "90"
item.ContentType = "episode"
And, if you haven't already done so, you'll have to write a 'showImage' function, e.g:
Function showImage (image As Object)
ss = CreateObject ("roSlideShow")
port = CreateObject ("roMessagePort")
ss.SetMessagePort (port)
ss.AddContent ({Url: image.SDPosterUrl})
ss.SetUnderscan (3)
ss.Show ()
While True
msg = Wait (0, port)
If Type (msg) = "roSlideShowEvent"
If msg.IsScreenClosed ()
ss.Close ()
Exit While
EndIf
EndIf
End While
End Function