Forum Discussion
marsradio
13 years agoVisitor
Joel:
As always, thank you for replying and for your help.
I believe I did what you recommended, but I'm still not able to open the image to full screen. When I press "Play," the screen goes black and the "retrieving" bar starts to load for about a half second. Then it quits and returns back to where I just was.
Here is the section of code from the apsDetailScreen.brs which I believe I modified exactly as you suggested. I'm pasting the entire section just for reference:
PORTION OF apsDetailScreen.brs CODE:
Now, here is the entire xml file through which I'm trying to display this remote gif. It is formatted the exact way all of the others which link to mp4 video feeds are formatted. Per your instructions, I changed the <contentType> tag to image and the <streamFormat> tag to .gif
If you can see what I'm doing wrong from what I've provided here, please let me know.
Many thanks, Joel!
XML CODE:
As always, thank you for replying and for your help.
I believe I did what you recommended, but I'm still not able to open the image to full screen. When I press "Play," the screen goes black and the "retrieving" bar starts to load for about a half second. Then it quits and returns back to where I just was.
Here is the section of code from the apsDetailScreen.brs which I believe I modified exactly as you suggested. I'm pasting the entire section just for reference:
PORTION OF apsDetailScreen.brs CODE:
'***************************************************************
'** The show detail screen (springboard) is where the user sees
'** the details for a show and is allowed to select a show to
'** begin playback. This is the main event loop for that screen
'** and where we spend our time waiting until the user presses a
'** button and then we decide how best to handle the event.
'***************************************************************
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"
print "ButtonPressed"
if msg.GetIndex() = 1
PlayStart = RegRead(showList[showIndex].ContentId)
if PlayStart <> invalid then
showList[showIndex].PlayStart = PlayStart.ToInt()
endif
showVideoScreen(showList[showIndex])
refreshShowDetail(screen,showList,showIndex)
endif
if msg.GetIndex() = 2
showList[showIndex].PlayStart = 0
if Showlist[ShowIndex].streamformat=".gif" or Showlist[Showindex].StreamFormat="image" then
showImage(showlist[showindex])
else
showVideoScreen(showList[showIndex])
end if
refreshShowDetail(screen,showList,showIndex)
endif
if msg.GetIndex() = 3
endif
print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
end if
else
print "Unexpected message class: "; type(msg)
end if
end while
return showIndex
End Function
Now, here is the entire xml file through which I'm trying to display this remote gif. It is formatted the exact way all of the others which link to mp4 video feeds are formatted. Per your instructions, I changed the <contentType> tag to image and the <streamFormat> tag to .gif
If you can see what I'm doing wrong from what I've provided here, please let me know.
Many thanks, Joel!
XML CODE:
<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://www.spc.noaa.gov/products/outlook/day1probotlk_1200_torn.gif" hdImg="http://www.spc.noaa.gov/products/outlook/day1probotlk_1200_torn.gif">
<title>24 Hour Tornado Outlook</title>
<contentType>image</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>.gif</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://www.spc.noaa.gov/products/outlook/day1probotlk_1200_torn.gif</streamUrl>
</media>
<synopsis>The 24 Hour Tornado Outlook from the National Weather Service.</synopsis>
<genres>Weather</genres><runtime>100</runtime></item>
</feed>