Hi,
When I display my content in a grid there's a huge gaping hole at the top of the page. I realize this goes away if you scroll down the categories, however is there a way to start with the first category at the top of the page?
Here's a screen shot.
categoryList = ["Comedy Clips",
"RIFF-erendum Interviews",
"Auditory Suppository Show",
"Skits & Sketches"]
showList = getShowsForCategoryItem(categoryList[0])
podcastList = getShowsForPodcast(categoryList[1])
assList = getShowsForASS(categoryList[2])
sketchList = getShowsForSketches(categoryList[3])
screen.setupLists(categoryList.count())
screen.SetListNames(categoryList)
screen.SetContentList(0, showList)
screen.SetContentList(1, podcastList)
screen.SetContentList(2, assList)
screen.SetContentList(3, sketchList)
screen.Show()
Also, some of my content is audio only w/o video, in that case I launch an roAudioPlayer from the roSpringboardScreen. The plus side is that the cover art / preview image and description remain on the screen when the audio plays. There are at least 3 downsides to doing this, I don't see how to say "loading please wait" when the user hits play, and some of the audio files are 90-120 minutes long, so there is a slight delay. Without notification/feedback that it's actually doing something it might cause problems. Another issue is stopping playback, it's a pain. It seems like it takes a long time (after pressing button on remote) to decide to stop and go back, so it appears to be stuck playing. One more thing, after playing roAudioPlayer and stopping it, going back to the selection grid.. it's a complete wreck. There's large black areas on the screen and the selection pane is misaligned... check out this screenshot.
Code,
downKey=3
selectKey=6
while true
msg = wait(0, screen.GetMessagePort())
if type(msg) = "roSpringboardScreenEvent"
if msg.isButtonPressed()
if msg.GetIndex() = 1
if showObject.format = "mp4"
showVideo(showObject)
else
audio = CreateObject("roAudioPlayer")
audio.AddContent(showObject)
audio.SetLoop(false)
audio.Play()
endif
else if msg.GetIndex() = 2
audio.Stop()
return 1
endif
else
print "Unknown event: "; msg.GetType(); " msg: "; msg.GetMessage()
endif
else
print "wrong type.... type=";msg.GetType(); " msg: "; msg.GetMessage()
endif
end while
If I use an roVideoScreen to play the audio, it shows progress/loading notification but screen goes black during audio playback. This would be cool if I could show the image during playback but I have had trouble loading an image from a URL and displaying on the screen. Does CreateObject("roBitmap"... work with an image stored at a remote Url? image does not seem to appear on screen for me.
bitmap=CreateObject("roBitmap", "http://www.example.com/image.jpg")
Screen.DrawObject(0,0, bitmap)
Thanks for any pointers/suggestions.
Waitman Gobble
San Jose California USA