Constructor
new Dec(media, canvas, lcevcConfig)
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. |
- 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
appendBuffer(data, timestampOffset)
Append data to the LCEVC Dec.
Parameters:
Name | Type | Description |
---|---|---|
data |
BufferSource | |
timestampOffset |
number |
- 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:
updateVariant(track)
Update current active variant
Parameters:
Name | Type | Description |
---|---|---|
track |
shaka.extern.Track |
- Source: