Okay thanks Joel.
My try at it so far has the logo image remaining on the screen and doesn't begin playing any videos.Will try a few more changes.
Here is a piece in the code where I made additions
While TRUE
canvas.Clear(&h00000000)
msg=port.GetMessage()
If Type(msg)="roUniversalControlEvent"
bpressed=msg.GetInt()
If bpressed<100
Print"Remote button pressed: ";bpressed
Else
Print"Remote button released: ";bpressed
End If
If bpressed=0 Exit While'0=BACK BUTTON
'1=unused
If bpressed=2 Exit While'2=UP BUTTON
'3=DOWN BUTTON
'4=LEFT BUTTON
'5=RIGHT BUTTON
'6=SELECT BUTTON
'7=INSTANT REPLAY BUTTON
'8=REWIND BUTTON
'9=FAST FORWARD BUTTON
'10=INFO BUTTON
'11=unused
'12=unused
If bpressed=13 '13=PLAY/PAUSE BUTTON
If paused=FALSE
paused=TRUE
player.Pause()
Else
paused=FALSE
player.Resume()
End If
End If
Else If Type(msg)="roVideoPlayerEvent"
If msg.isStatusMessage()
If msg.GetMessage()="startup progress"
'Print"buffering=";msg.GetIndex()/10
If msg.GetIndex()/10=100 Print "Playing Video #:";index
Else If msg.GetMessage()="end of stream"
Print"message is full result event - back to position 0"
If index<max
index=index+1
RegWrite("indexpos",index.ToStr(),"studioc")
Else
index=0
RegWrite("indexpos",index.ToStr(),"studioc")
End If
RegWrite("indextime","0","studioc")
End If
Else If msg.isPlaybackPosition()
indextime=msg.GetIndex()
RegWrite("indextime",msg.GetIndex().ToStr(),"studioc")
Else If msg.isStreamStarted()
Print"stream started event"
Else If msg.isFullResult()
Print"message is full result event"
Else If msg.isRequestFailed()
Print"Video #:";index;" ";msg.GetMessage()
End If
canvas.drawobject(100,100,bmp)
End If
canvas.SwapBuffers()
End While
End Sub
further up in the code where I added canvas.setAlphaEnable(true)...I may have it in the wrong place and going to try it again after I move it. but here is where I have it at present.
Sub RunUserInterface()
port=CreateObject("roMessagePort")
progress=0 'buffering progress
position=0 'playback position (in seconds)
paused=FALSE 'is the video currently paused?
fonts=CreateObject("roFontRegistry") 'global font registry
canvas.setAlphaEnable(true)
canvas=CreateObject("roScreen",TRUE) 'user interface
player=CreateObject("roVideoPlayer")
player.SetPositionNotificationPeriod(1)
Still trying to learn but it hasn't sunk in yet.
http://www.victoryNOWfilmsandtv.com