Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Adapter
    • CutlistAdapter

Index

Constructors

constructor

  • Parameters

    • videos: HTMLVideoElement[]
    • eventCallback: <T>(event: T) => void
        • <T>(event: T): void
        • Type parameters

          • T: PlayerEvent

          Parameters

          • event: T

          Returns void

    • _internalEventBus: EventMixin
    • Optional settings: CutlistPlayerSettings

    Returns CutlistAdapter

Properties

master

master: HTMLMediaElement

muted

muted: boolean

videoFiles

videoFiles: VideoFile[]

Accessors

currentTime

  • get currentTime(): number
  • Returns number

currentVideoFile

  • get currentVideoFile(): VideoFile
  • Returns VideoFile

duration

  • get duration(): number
  • Returns number

frameRate

  • get frameRate(): number
  • Returns number

loaded

  • get loaded(): boolean
  • set loaded(loaded: boolean): any
  • Indicates that the adapter is ready for continued playback. Triggers internal action PlayerActionType.UpdateLoaded when changed.

    Returns boolean

  • Indicates that the adapter is ready for continued playback. Triggers internal action PlayerActionType.UpdateLoaded when changed.

    Parameters

    • loaded: boolean

    Returns any

paused

  • get paused(): boolean
  • Returns boolean

playbackRate

  • get playbackRate(): number
  • Returns number

preview

  • get preview(): boolean
  • set preview(preview: boolean): void
  • Returns boolean

  • Parameters

    • preview: boolean

    Returns void

seeking

  • get seeking(): boolean
  • Returns boolean

Methods

destroy

  • destroy(): Promise<void>
  • Returns Promise<void>

getPlayerStatus

  • getPlayerStatus(): PlayerStatus
  • Returns PlayerStatus

getVolume

  • getVolume(): number
  • Returns the volume.

    Returns number

isMuted

  • isMuted(): boolean
  • Returns boolean

isMutedMuxed

  • isMutedMuxed(): boolean
  • Returns boolean

loadCutList

  • loadCutList(cutList: Cut[], frame: number): void
  • Parameters

    • cutList: Cut[]
    • frame: number

    Returns void

loadVideoFile

  • loadVideoFile(file: VideoFile): void
  • Parameters

    • file: VideoFile

    Returns void

mute

  • mute(): void
  • Mute.

    Returns void

muteMuxed

  • muteMuxed(): void
  • Returns void

pause

  • pause(): void
  • Returns void

play

  • play(): Promise<void>
  • Returns Promise<void>

setCurrentTime

  • setCurrentTime(time: number): void
  • Parameters

    • time: number

    Returns void

setDropFrame

  • setDropFrame(dropFrame: boolean): void
  • Parameters

    • dropFrame: boolean

    Returns void

setFrameOffset

  • setFrameOffset(frameOffset: number): void
  • Parameters

    • frameOffset: number

    Returns void

setPlaybackRate

  • setPlaybackRate(rate: number): void
  • Parameters

    • rate: number

    Returns void

setVolume

  • setVolume(volume: number): void
  • Sets the audio volume.

    Parameters

    • volume: number

      The new volume value.

    Returns void

setVolumeController

  • setVolumeController(volumeController: VolumeController): void
  • Sets the default controller for the volume

    Parameters

    • volumeController: VolumeController

      the volume controller

    Returns void

toggleMute

  • toggleMute(): void
  • Toggle mute/unmute.

    Returns void

toggleMuteMuxed

  • toggleMuteMuxed(): void
  • Returns void

unmute

  • unmute(): void
  • Unmute.

    Returns void

unmuteMuxed

  • unmuteMuxed(): void
  • Returns void

updateVideoFile

  • updateVideoFile(update: VideoFile): void
  • Updates the given video file with new data

    Parameters

    • update: VideoFile

      the updated video file data

    Returns void