
14
roVideoEvent() and roAudioEvent()
Video and Audio events can have one of these integer values. They are declared as separate classes as they
are likely to diverge in the future.
0 Undefined Player is in an undefined state.
1 Stopped Playback of the current media item is stopped.
2 Paused Playback of the current media item is paused
When a media item is paused, resuming playback
begins from the same location.
3 Playing The current media item is playing.
4 ScanForward The current media item is fast forwarding.
5 ScanReverse The current media item is fast rewinding.
6 Buffering The current media item is getting additional data
from the server.
7 Waiting Connection is established, but the server is not
sending data. Waiting for session to begin.
8 MediaEnded Media item has completed playback.
9 Transitioning Preparing new media item.
10 Ready Ready to begin playing.
11 Reconnecting Reconnecting to stream.
12 TimeHit A particular timecode is hit. See roVideoPlayer.
Interfaces:
• ifInt – contains event id enumerated above
rotINT32 GetInt(rotVOID)
• ifData – contains userdata
rotINT32 GetData(rotVOID)
Example Code Clip:
vp_msg_loop:
msg=wait(tiut, p)
if type(msg)="roVideoEvent" then
if debug then print "Video Event";msg.GetInt()
if msg.GetInt() = 8 then
if debug then print "VideoFinished"
retcode=5
return
endif
else if type(msg)="roGpioButton" then
if debug then print "Button Press";msg
if escm and msg=BM then retcode=1:return
if esc1 and msg=B1 then retcode=2:return
if esc2 and msg=B2 then retcode=3:return
if esc3 and msg=B3 then retcode=4:return
else if type(msg)="rotINT32" then
if debug then print "TimeOut"
retcode=6
return
endif
goto vp_msg_loop
Comentários a estes Manuais