springBoard = CreateObject("roSpringboardScreen")
springBoard.SetBreadcrumbText("Breadcrumb Text","")
port = CreateObject("roMessagePort")
springBoard.SetMessagePort(port)
springBoard.SetDescriptionStyle("audio")
springBoard.setProgressIndicatorEnabled(true)
springBoard.setProgressIndicator(0, 1)
springboard.AllowUpdates(true)
springBoard.Show()
audioPlayer = CreateObject("roAudioPlayer")
port = CreateObject("roMessagePort")
audioPlayer.SetMessagePort(port)
song = CreateObject("roAssociativeArray")
song.url = "http://www.my.music.com/song.mp3
song.ContentType = "audio"
song.Title = "Title"
song.Artist = "Artist"
song.Album = "Album"
song.HDPosterUrl = "pkg:/images/test_188x188.png"
song.SDPosterUrl = ""
springBoard.SetContent(song) 'adds song
audioplayer.addcontent(song)
audioplayer.setloop(false)
audioplayer.play()
springBoard.Show()
while true
msg = wait(0, port)
if type(msg) = "roAudioPlayerEvent"
if msg.isStatusMessage() then
print "roAudioPlayerEvent: "; msg.getmessage()
if msg.getmessage() = "end of playlist" return
endif
endif
end while
timer=createobject("rotimespan")
timer.mark()
springboard.setprogressindicator(0,lengthOfTrackInSeconds)
springBoard.setProgressIndicator(timer.totalseconds(), LengthofTrackInSeconds)
springboard.setProgressIndicator(0,10000)just to see if the indicator would display and I'm not getting it to even show up. I tried changing the first variable to simulate the track in progress and it makes no difference. I've tried making a few changes and still nothing. Anything else you can see?
"roquoonewbie" wrote:
Also, where is the progress bar supposed to appear? In different SDK docments, it shows it in different places. The ComponentReference.pdf shows the progress bar at the bottom of the screen. But the MockUpTool.pptx shows the progress bar right below the poster image.
This would imply one could configure the screen to do one or the other, but I see no such option. So where would/should it appear given this?
"roquoonewbie" wrote:
Page 42/43.
http://c1807832.cdn.cloudfiles.rackspac ... ce_v28.pdf
Diagram: roSpringboard audio screen, ContentType=audio