1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-17 10:46:00 +02:00
video.js/docs/api/vjs.Html5.md

95 lines
2.4 KiB
Markdown
Raw Normal View History

2013-11-05 03:03:51 +03:00
<!-- 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)
2014-12-04 23:29:40 +02:00
- [canControlPlaybackRate](#cancontrolplaybackrate-static)
- [canControlVolume](#cancontrolvolume-static)
2013-11-05 03:03:51 +03:00
- [init](#init-player-options-ready-)
2014-12-04 23:29:40 +02:00
- [isSupported](#issupported-static)
2015-02-18 02:44:25 +02:00
- [supportsNativeTextTracks](#supportsnativetexttracks-static)
2013-11-05 03:03:51 +03:00
2014-12-04 23:29:40 +02:00
- [UNDEFINED](#undefined)
- [nativeSourceHandler](#nativesourcehandler-static)
2013-11-05 03:03:51 +03:00
---
## METHODS
2014-12-04 23:29:40 +02:00
### canControlPlaybackRate() `STATIC`
> Check if playbackRate is supported in this browser/device.
##### RETURNS:
* `[type]` [description]
2015-06-23 22:43:28 +02:00
_defined in_: [src/js/media/html5.js#L590](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L590)
2014-12-04 23:29:40 +02:00
---
### 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`
2015-06-23 22:43:28 +02:00
_defined in_: [src/js/media/html5.js#L580](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L580)
2013-11-05 03:03:51 +03:00
---
### 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)
---
2014-12-04 23:29:40 +02:00
### isSupported() `STATIC`
> Check if HTML5 video is supported by this browser/device
##### RETURNS:
* `Boolean`
2015-06-23 22:43:28 +02:00
_defined in_: [src/js/media/html5.js#L478](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L478)
2014-12-04 23:29:40 +02:00
---
2015-02-18 02:44:25 +02:00
### supportsNativeTextTracks() `STATIC`
> Check to see if native text tracks are supported by this browser/device
2013-11-05 03:03:51 +03:00
##### RETURNS:
2015-02-18 02:44:25 +02:00
* `Boolean`
2013-11-05 03:03:51 +03:00
2015-06-23 22:43:28 +02:00
_defined in_: [src/js/media/html5.js#L600](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L600)
2013-11-05 03:03:51 +03:00
---
2014-12-04 23:29:40 +02:00
## 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
2015-06-23 22:43:28 +02:00
_defined in_: [src/js/media/html5.js#L520](https://github.com/videojs/video.js/blob/master/src/js/media/html5.js#L520)
2014-12-04 23:29:40 +02:00
---