Constructor
new Dec(media, canvas, lcevcConfig, isDualTrack)
lcevcDec - (MPEG-5 Part 2 LCEVC - Decoder) provides all the operations related to the enhancement and rendering of LCEVC enabled streams and on to a canvas.
Parameters:
| Name | Type | Description | 
|---|---|---|
| media | HTMLVideoElement | The video element that will be attached to LCEVC Decoder for input. | 
| canvas | HTMLCanvasElement | The canvas element that will be attached to LCEVC Decoder to render the enhanced frames. | 
| lcevcConfig | shaka.extern.LcevcConfiguration | LCEVC configuration object to initialize the LCEVC Decoder. | 
| isDualTrack | boolean | 
- Implements:
- Source:
Members
lcevcLib_ :LCEVCmodule
    LCEVC Decoder library based on availability, to check if either
lcevc_dil or lcevc_dec is present.
    Type:
- LCEVCmodule
- Source:
Methods
isStreamSupported(stream) → {boolean}
    Checks if a dual track content enhancement stream is supported.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| stream | shaka.extern.Stream | 
- Source:
Returns:
- Type
- boolean
appendBuffer(data, timestampOffset, stream)
    Append data to the LCEVC Dec.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| data | BufferSource | |
| timestampOffset | number | |
| stream | shaka.extern.Stream | 
- Source:
hideCanvas()
    Hide the canvas specifically in the case of a DRM Content
- Source:
isSupported_() → {boolean}
    Check if the LCEVC Decoder lib is present and is supported by the browser.
- Source:
Returns:
- Type
- boolean
release()
    Close LCEVC Decoder.
- Implements:
- Source:
removeBuffer(contentType, startTime, endTime)
    Remove data from the LCEVC Dec.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| contentType | shaka.util.ManifestParserUtils.ContentType | |
| startTime | number | relative to the start of the presentation | 
| endTime | number | relative to the start of the presentation | 
- Source:
updateVariant(variant, manifestTypenullable)
    Update current active variant
    Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| variant | shaka.extern.Variant | ||
| manifestType | string | <nullable> | 
- Source: