LiveStream

EmbedVideo. LiveStream

new LiveStream(video, persistent)

Parameters:
Name Type Description
video HTMLVideoElement
persistent boolean

Keep stream for disabled video

Source:

Members

(static) STATUS :EmbedVideo.LiveStream.STATUS

Type:
Properties:
Name Type Description
DISABLED EmbedVideo.LiveStream.STATUS
PENDING EmbedVideo.LiveStream.STATUS
ACTIVE EmbedVideo.LiveStream.STATUS
ERROR EmbedVideo.LiveStream.STATUS
Source:

(private, nullable) _currentDeviceId :string

Type:
  • string
Source:

(private) _devices :Array.<string>

Type:
  • Array.<string>
Source:

(private) _persistent :boolean

Type:
  • boolean
Source:

(private) _status :EmbedVideo.LiveStream.STATUS

Type:
Source:

(private, nullable) _stream :MediaStream|MediaSource|Blob|File

Type:
  • MediaStream | MediaSource | Blob | File
Source:

(private) _video :HTMLVideoElement

Type:
  • HTMLVideoElement
Source:

Methods

(private) _create()

Fetch device list and create user media stream

Source:

(private) _destroy()

Source:

(private) _disable()

Pause video, remove enabled status and stop stream

Source:

(private) _enable()

Activate video after Reveal is ready, wait with video activation until then

Source:

isActive() → {boolean}

Check if the stream is active

Source:
Returns:
Type
boolean

next()

Switch to the next video device

Source:

start()

Start streaming, activate an existing stream or create a new one. If here is an active stream this call will do nothing.

Source:

stop()

Stop video stream and disable video

Source:

Type Definitions

STATUS

Type:
  • number
Source: