mirror of
https://github.com/videojs/video.js.git
synced 2025-03-25 22:01:11 +02:00
95 lines
2.4 KiB
Markdown
95 lines
2.4 KiB
Markdown
<!-- GENERATED FROM SOURCE -->
|
|
|
|
# vjs.Html5
|
|
|
|
__EXTENDS__: [vjs.MediaTechController](vjs.MediaTechController.md)
|
|
__DEFINED IN__: [src/js/media/html5.js#L12](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L12)
|
|
|
|
HTML5 Media Controller - Wrapper for HTML5 Media API
|
|
|
|
---
|
|
|
|
## INDEX
|
|
|
|
- [METHODS](#methods)
|
|
- [canControlPlaybackRate](#cancontrolplaybackrate-static)
|
|
- [canControlVolume](#cancontrolvolume-static)
|
|
- [init](#init-player-options-ready-)
|
|
- [isSupported](#issupported-static)
|
|
- [supportsNativeTextTracks](#supportsnativetexttracks-static)
|
|
|
|
- [UNDEFINED](#undefined)
|
|
- [nativeSourceHandler](#nativesourcehandler-static)
|
|
|
|
---
|
|
|
|
## METHODS
|
|
|
|
### canControlPlaybackRate() `STATIC`
|
|
> Check if playbackRate is supported in this browser/device.
|
|
|
|
##### RETURNS:
|
|
* `[type]` [description]
|
|
|
|
_defined in_: [src/js/media/html5.js#L542](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L542)
|
|
|
|
---
|
|
|
|
### canControlVolume() `STATIC`
|
|
> Check if the volume can be changed in this browser/device.
|
|
> Volume cannot be changed in a lot of mobile devices.
|
|
> Specifically, it can't be changed from 1 on iOS.
|
|
|
|
##### RETURNS:
|
|
* `Boolean`
|
|
|
|
_defined in_: [src/js/media/html5.js#L532](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L532)
|
|
|
|
---
|
|
|
|
### init( player, options, ready )
|
|
|
|
##### PARAMETERS:
|
|
* __player__
|
|
* __options__
|
|
* __ready__
|
|
|
|
_defined in_: [src/js/media/html5.js#L14](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L14)
|
|
|
|
---
|
|
|
|
### isSupported() `STATIC`
|
|
> Check if HTML5 video is supported by this browser/device
|
|
|
|
##### RETURNS:
|
|
* `Boolean`
|
|
|
|
_defined in_: [src/js/media/html5.js#L452](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L452)
|
|
|
|
---
|
|
|
|
### supportsNativeTextTracks() `STATIC`
|
|
> Check to see if native text tracks are supported by this browser/device
|
|
|
|
##### RETURNS:
|
|
* `Boolean`
|
|
|
|
_defined in_: [src/js/media/html5.js#L552](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L552)
|
|
|
|
---
|
|
|
|
## UNDEFINED
|
|
|
|
### nativeSourceHandler `STATIC`
|
|
> The default native source handler.
|
|
> This simply passes the source to the video element. Nothing fancy.
|
|
|
|
##### PARAMETERS:
|
|
* __source__ `Object` The source object
|
|
* __tech__ `vjs.Html5` The instance of the HTML5 tech
|
|
|
|
_defined in_: [src/js/media/html5.js#L472](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L472)
|
|
|
|
---
|
|
|