new VideoQuality(url)
This object describe a video quality preset.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The url of the video source for this video quality preset. |
- Source:
Extends
Members
(readonly) alive :boolean
Get the alive flag value of the object.
Type:
- boolean
- Inherited From:
- Source:
(readonly) bitrate :number
Get and set the video quality preset bitrate.
Type:
- number
- Source:
(readonly) className :string
Get the class name of the object.
Type:
- string
- Inherited From:
- Source:
data :*
Get and set any custom data you want to associate to this object.
Type:
- *
- Inherited From:
- Source:
debug :boolean
Get and set the debug flag.
Type:
- boolean
- Inherited From:
- Source:
(readonly) framerate :number
Get the video quality preset framerate.
Type:
- number
- Source:
(readonly) height :number
Get and set the video quality preset height.
Type:
- number
- Source:
(readonly) id :string|number
Get and set the video quality preset ID.
Type:
- string | number
- Source:
(readonly) mimeType :string
Get the video quality preset MIME type.
Type:
- string
- Source:
mimeTypeFromURL
Get the MIME type of a video quality preset from it's url.
- Source:
(readonly) name :string
Get the video quality preset name.
Type:
- string
- Source:
(readonly) onDestroy :FORGE.EventDispatcher
Get the onDestroy FORGE.EventDispatcher, this event is emitted at the end of the destroy sequence.
Type:
- Inherited From:
- Source:
(readonly) speed :number
Get the video quality preset speed.
Type:
- number
- Source:
(readonly) tags :Array
Get the tags associated to this object.
Type:
- Array
- Inherited From:
- Source:
(readonly) uid :string
Get the uid of the object.
Type:
- string
- Inherited From:
- Source:
(readonly) url :string
Get the video quality preset url.
Type:
- string
- Source:
warning :boolean
Get and set the warning flag.
Type:
- boolean
- Inherited From:
- Source:
(readonly) width :number
Get and set the video quality preset width.
Type:
- number
- Source:
Methods
destroy()
Basic destroy method, prevent double destroy, change the alive flag.
- Inherited From:
- Source:
log(value)
Basic log method, log a string in the console if debug is enabled.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | The value you want to log in the console. |
- Inherited From:
- Source:
warn(valuenullable)
Basic warn method, log a warn string in the console if warning is enabled.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
value |
string | Object |
<nullable> |
The value you want to warn in the console. |
- Inherited From:
- Source: