Type Alias TrackEventCallbacks

TrackEventCallbacks: {
    audioPlaybackFailed: (error?: Error) => void;
    audioPlaybackStarted: () => void;
    audioSilenceDetected: () => void;
    audioTrackFeatureUpdate: (
        track: any,
        feature: AudioTrackFeature,
        enabled: boolean,
    ) => void;
    elementAttached: (element: HTMLMediaElement) => void;
    elementDetached: (element: HTMLMediaElement) => void;
    ended: (track?: any) => void;
    message: () => void;
    muted: (track?: any) => void;
    restarted: (track?: any) => void;
    timeSyncUpdate: (
        update: { rtpTimestamp: number; timestamp: number },
    ) => void;
    trackProcessorUpdate: (processor?: TrackProcessor<Kind, any>) => void;
    unmuted: (track?: any) => void;
    updateSettings: () => void;
    updateSubscription: () => void;
    upstreamPaused: (track: any) => void;
    upstreamResumed: (track: any) => void;
    videoDimensionsChanged: (dimensions: Dimensions, track?: any) => void;
    videoPlaybackFailed: (error?: Error) => void;
    videoPlaybackStarted: () => void;
    visibilityChanged: (visible: boolean, track?: any) => void;
}

Type declaration

  • audioPlaybackFailed: (error?: Error) => void
  • audioPlaybackStarted: () => void
  • audioSilenceDetected: () => void
  • audioTrackFeatureUpdate: (track: any, feature: AudioTrackFeature, enabled: boolean) => void
  • elementAttached: (element: HTMLMediaElement) => void
  • elementDetached: (element: HTMLMediaElement) => void
  • ended: (track?: any) => void
  • message: () => void
  • muted: (track?: any) => void
  • restarted: (track?: any) => void
  • timeSyncUpdate: (update: { rtpTimestamp: number; timestamp: number }) => void
  • trackProcessorUpdate: (processor?: TrackProcessor<Kind, any>) => void
  • unmuted: (track?: any) => void
  • updateSettings: () => void
  • updateSubscription: () => void
  • upstreamPaused: (track: any) => void
  • upstreamResumed: (track: any) => void
  • videoDimensionsChanged: (dimensions: Dimensions, track?: any) => void
  • videoPlaybackFailed: (error?: Error) => void
  • videoPlaybackStarted: () => void
  • visibilityChanged: (visible: boolean, track?: any) => void