Class: ChromecastSender

Members

(static, constant) ChromecastEventType :string

Multiview HISPlayer event types.
Properties:
Name Value Type Description
ERROR error string
STATUS_CHANGE statusChange string

Methods

addEventListener(type, listener)

Add an event listener to this object.
Parameters:
Name Type Description
type string The event type to listen for.
listener EventListener | function The callback or listener object to invoke.

canCast() → {boolean}

Indicates whether it is possible to cast to a device.

cast()

Opens a dialog menu to cast the current content to the desired available device.

getDeviceName() → (nullable) {boolean}

Retrieves the connected device's name.

isCasting() → {boolean}

Indicates whether the player is currently casting to a device.

isEnded() → (nullable) {boolean}

Indicates whether the remote video is ended.

isPaused() → (nullable) {boolean}

Indicates whether the remote video is paused.

isSeeking() → (nullable) {boolean}

Indicates whether the remote video is paused.

listenToAllEvents(listener)

Add an event listener to this object that is invoked for all events types the object fires.
Parameters:
Name Type Description
listener EventListener | function The callback or listener object to invoke.

pause()

Pauses the remote video's playback.

play()

Resumes the remote video's playback.

removeEventListener(type, listener)

Remove an event listener from this object.
Parameters:
Name Type Description
type string The event type for which you wish to remove a listener.
listener EventListener | function The callback or listener object to remove.

seek(timePosition)

Seek the remote video's playhead to the position provided.
Parameters:
Name Type Description
timePosition number

seekLive()

Seek to the remote video's live position in a live stream.

setLoopMode(active)

Activates or deactivates the loop mode for the remote video.
Parameters:
Name Type Description
active boolean