BSVideoMode
4 min
para obtener más información sobre los métodos disponibles, consulte la página rovideomode si desea cambiar el modo de video del reproductor, deberá usar brightscript en lugar de esta clase javascript el equivalente en javascript es videomodeconfiguration docid\ ctnltbmj0 cs5tbiiyotf atributos resx int solo lectura resy int solo lectura safex int solo lectura safey int solo lectura anchoseguro int solo lectura safeheight int solo lectura modo domstring solo lectura decodermodelist bsdecodermodelist solo lectura métodos los métodos utilizados por este objeto están obsoletos y pueden encontrarse en la documentación de la api javascript de videooutput docid\ swjembhygb66kz1bndedb y videomodeconfiguration docid\ ctnltbmj0 cs5tbiiyotf el método hdmiaudiodisable() puede encontrarse en la documentación de la api brightscript de rovideomode 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 el atributo decodermodelist contiene una matriz de objetos bsdecodermode , cada uno con información sobre un decodificador configurado en el reproductor consulte las entradas setdecodermode() y getdecodermode() en la página rovideomode docid\ f0dvnrbdpvgozlrvb29gd para obtener más información sobre los parámetros del decodificador 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; }; ejemplo el siguiente ejemplo de javascript ilustra cómo recuperar información sobre el modo de video actual 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); }