Class Video#setVideoViewTransform

Video

Class Summary
Constructor Attributes Constructor Name and Description
 
Video#setVideoViewTransform(successCallback, errorCallback, options)
Sets size and position as customer aspect ratio of video file

Class Detail

Video#setVideoViewTransform(successCallback, errorCallback, options)
Sets size and position as customer aspect ratio of video file.
This API should be called after start of video playing and need 2 sec delay to get ID of video element.

Note : This feature is for 86BH5C ultra strech webOS Signage model.
// Javascript code
function setVideoViewTransform() {

	var successCb = function (){
            // Do Something
	}
	
	 var failureCb = function(){ 
	        var errorCode = cbObject.errorCode;
     		var errorText = cbObject.errorText;
     		console.log ("Error Code [" + errorCode + "]: " + errorText);
	}
	
    var video = new Video();

    video.setVideoViewTransform(successCb, failureCb, {
    //Portrait Standard
       x: 0, 
       y: 0,
       width: 1920,
       height: 600
    });    
}
Parameters:
{Function} successCallback
success callback function.
{Function} errorCallback
failure callback function.
{Object} options


PropertyTypeDescriptionRequired
xStringpostion of x-axis in videorequired
YStringpostion of y-axis in videorequired
widthStringwidth of size in videorequired
heightStringheight of size in videorequired
Since:
1.3
Platform Version:
webOS Signage 2.0
Returns:

If the method is successfully executed, success callback function is called without a parameter.
If an error occurs, failure callback function is called with a failure callback object as a parameter.