Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DiscreteAudioSettings

Settings for the discrete audio plugin.

Hierarchy

  • PlayerSettings
    • DiscreteAudioSettings

Index

Properties

Optional billing

billing: string

detectOutOfSync

detectOutOfSync: boolean

Whether to detect sync issues between master and audio tracks.

frozenTimeout

frozenTimeout: number

Timeout in ms until player tries to recover from stalled connections. Set 0 to disable.

maxEnabledTracks

maxEnabledTracks: number

How many audio tracks can be enabled at the same time. Disabled if less than 1.

Optional seekStrategy

seekStrategy: SeekStrategyType

Controls how seeks are executed.

syncAheadPaused

syncAheadPaused: number

Offset how far ahead of the master the audio tracks should seek when paused.

syncAheadPlaying

syncAheadPlaying: number

Offset how far ahead of the master the audio tracks should seek when playing.

syncByPlaybackRate

syncByPlaybackRate: boolean

Whether to sync by playback rate or setting currentTime.

syncRate

syncRate: number

How often to check if audio tracks is out of sync (seconds).

toleratedOutOfSync

toleratedOutOfSync: number

How much an audio track can be out of sync without correcting it (seconds).

Optional updateSrc

updateSrc: (videoFile: VideoFile) => Promise<string>

Sets a callback function that resolves a new video url when the player encounters an error. The url provided by the callback replaces the current loaded video file url and is reloaded in the player. The main use-case for this is for updating pre-signed urls.

param

the current video file that failed

Type declaration

    • (videoFile: VideoFile): Promise<string>
    • Parameters

      • videoFile: VideoFile

      Returns Promise<string>

Optional verbose

verbose: boolean