PictureMode Interface
Estimated reading time: 1 minute
The PictureMode interface offers methods to set and fix to a particular mode.
By fixing the picture mode to a particular mode, an application can avoid a blinking screen even if the contents on it are changed.
Picture mode can be fixed in the manifest ("fixed_input: true"). In this case, the picture mode setting in the manifest is prioritized and this JavaScript API is ignored.
Methods Interface
-
DOMString getPictureMode()
getPictureMode()method gets current picture mode. -
void setPictureMode(DOMString mode)
setPictureMode()method changes and fixes the picture mode. Themodeparameter is one of three strings:'VIDEO','PHOTO'and'AUTO'. If the picture mode is set to other than'AUTO', the picture mode is fixed until it is set to'AUTO'.
Example
- Set Picture Mode
function setPictureModeCall(mode) { sony.tv.picturemode.setPictureMode(mode); } // Set picture mode as 'VIDEO' setPictureModeCall('VIDEO'); // Set picture mode as 'PHOTO' setPictureModeCall('PHOTO'); // Set picture mode as 'AUTO' setPictureModeCall('AUTO');
