Player APIs (BrightScript & Ja...
...
Presentation and Widget Object...
roVideoEvent, roAudioEvent
9 min
video and audio events are declared as separate classes events can have one of the following values, which are retrieved using the getint() method true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type the docid\ qxt4yhey7iej m9dh73wm log may return more specific information about media error states ifint getint() as integer returns the event id as an integer value setint(value as integer) as void sets the integer value ifuserdata setuserdata(user data as object) as void sets the user data getuserdata() as object returns the user data that has previously been set via setuserdata() (on either the event or source object) it will return invalid if no data has been set ifsourceidentity getsourceidentity() as integer setsourceidentity() as integer the ifsourceidentity interface has been deprecated we recommend using the ifuserdata interface instead ifdata getdata() as integer setdata(a as integer) example 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