new HtmlMediaSource()
Our MediaSource implementation in HTML, mimics native
MediaSource where/if possible.
- Source:
Extends
- videojs.EventTarget
Methods
addSourceBuffer(type) → {Object}
Add a source buffer to the media source.
Parameters:
| Name | Type | Description |
|---|---|---|
type |
String | the content-type of the content |
- Source:
Returns:
the created source buffer
- Type
- Object