Forum Discussion
RokuJoel
13 years agoBinge Watcher
Take a look at the function showDetailScreen in the file appDetailScreen.brs
find this spot:
what you would want to do is add some logic to check for an image and then write an image display function that would display the image, otherwise, play a video.
For example, in your xml, you could set <contentType>image</contentType> and or <streamFormat>.gif</streamformat>
Then in the above function you could have:
- Joel
find this spot:
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
showVideoScreen(showList[showIndex])
refreshShowDetail(screen,showList,showIndex)
what you would want to do is add some logic to check for an image and then write an image display function that would display the image, otherwise, play a video.
For example, in your xml, you could set <contentType>image</contentType> and or <streamFormat>.gif</streamformat>
Then in the above function you could have:
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)
- Joel