Player APIs (BrightScript & Ja...
...
Object Reference
Networking Objects
roMimeStream
5min
this object passes an mjpeg stream in mime format to the rovideoplayer playfile() method there are some limitations to what mjpeg streams this object will play correctly romimestream has been optimized to play streaming video from a local source with the smallest possible delay the result is a short buffering window that is not appropriate for playing mjpeg streams from urls outside of a local network we are currently optimizing romimestream to work with different ip camera brands see stream content via ip camera docid 0er0hhtcryapjtxszy 55 for more details object creation to play an rtsp stream, first instantiate an rourltransfer object then wrap it in an romimestream object and pass the picturestream to playfile , as shown in the following example u=createobject("rourltransfer") u seturl("http //mycamera/video mjpg") r=createobject("romimestream", u) p=createobject("rovideoplayer") p playfile({ picturestream r }) ifpicturestream geturl() as string ifuserdata setuserdata(user data as object) sets the user data that will be returned when events are raised getuserdata() as object returns the user data that has previously been set via setuserdata() it will return invalid if no data has been set ifmessageport setport(port as romessageport) posts event messages to the attached message port the event messages are of the type romimestreamevent there are currently two possible event messages picture stream first picture available = 0 the first picture is now available for decoding picture stream connect failed the object is unable to connect to the specified url