Class: shaka.lcevc.Dec

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.

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

ContainerFormat :number

Container Formats.
Type:
  • number
Source:

StreamingFormat :number

Streaming Formats.
Type:
  • number
Source:

canvas_ :HTMLCanvasElement

Type:
  • HTMLCanvasElement
Source:

dec_ :LCEVCdec.LCEVCdec

Type:
  • LCEVCdec.LCEVCdec
Source:

lcevcLib_ :LCEVCmodule

LCEVC Decoder library based on availability, to check if either lcevc_dil or lcevc_dec is present.
Type:
  • LCEVCmodule
Source:

media_ :HTMLVideoElement

Type:
  • HTMLVideoElement
Source:

toBeDeprecated_ :boolean

Type:
  • boolean
Source:

variantId_ :number

Type:
  • number
Source:

Methods

appendBuffer(data, timestampOffset)

Append data to the LCEVC Dec.
Parameters:
Name Type Description
data BufferSource
timestampOffset number
Source:

create_()

Create LCEVC Decoder.
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: