![]() |
VOOZH | about |
The Video canPlayType() method is used for checking if the browser can play the specified video type or not. The Video canPlayType method returns a string that represents the level of support.
Syntax:
videoObject.canPlayType(type)
Parameter Values:
Return: The Video canPlayType() method generally returns one of the following values:
The below program illustrates the Video canPlayType() method :
Example: Checking if a browser can play different types of video or not.
Output:
Supported Browsers: The browser supported by HTML DOM Video canPlayType( ) Method are listed below: