Player APIs (BrightScript & Ja...
BrightScript-JavaScript Object...

BSVideoMode

5min
for more information about available methods, refer to the rovideomode page if you’d like to change the video mode of the player, you will need to use brightscript instead of this javascript class the javascript equivalent is videomodeconfiguration docid\ uupzxkyflbsolyh8olces attributes readonly attribute int resx readonly attribute int resy readonly attribute int safex readonly attribute int safey readonly attribute int safewidth readonly attribute int safeheight readonly attribute domstring mode readonly attribute bsdecodermodelist decodermodelist methods the methods used by this object are obsolete and can be found in the videooutput docid\ kzf34hnxf53r9owsdud6e and videomodeconfiguration docid\ uupzxkyflbsolyh8olces javascript api documentation the hdmiaudiodisable() method can be found in the rovideomode brightscript api documentation boolean isattached(in domstring connector) domstring getbestmode(in domstring connector) boolean setbackgroundcolour(in unsigned long rgb) boolean setbackgroundcolour(in unsigned long r, 	in unsigned long g, 	in unsigned long b) boolean setpowersavemode(in boolean disable) boolean hdmiaudiodisable(in boolean disable) boolean setdecodermode(in domstring decoder, 	in domstring timeslice mode, 	in int z order, 	in domstring friendly name, 	in boolean enable mosaic deinterlacer) boolean setsyncmanager(in bssyncmanager sync); //see the rovideomode setsyncdomain() entry for more details bsdecodermode the decodermodelist attribute contains an array of bsdecodermode objects, each containing information about a configured decoder on the player see the setdecodermode() and getdecodermode() entries on the rovideomode docid\ qq734nqz0hcwni0unsdmp page for more information about decoder parameters interface bsdecodermode { readonly attribute domstring decodername; readonly attribute domstring friendlyname; readonly attribute domstring maxsize; readonly attribute domstring configuredsize; readonly attribute unsigned long currentusage; readonly attribute unsigned long maxusage; readonly attribute boolean mosaic; readonly attribute boolean enabledeinterlacer; }; example the following javascript example illustrates how to retrieve information about the current video mode function fillinvideodata() { var videomode info = new bsvideomode(); document getelementbyid("resx") innerhtml = videomode info resx; document getelementbyid("resy") innerhtml = videomode info resy; document getelementbyid("safex") innerhtml = videomode info safex; document getelementbyid("safey") innerhtml = videomode info safey; document getelementbyid("safewidth") innerhtml = videomode info safewidth; document getelementbyid("safeheight") innerhtml = videomode info safeheight; document getelementbyid("videomode") innerhtml = videomode info mode; document getelementbyid("bestmode") innerhtml = videomode info getbestmode("hdmi"); document getelementbyid("connectedflag") innerhtml = videomode info isattached("vga"); } function changebackground() { var videomode info = new bsvideomode(); videomode info setbackgroundcolour(0xff0000); }