Describes an audio track.

interface ChannelTrack {
    channelCount: number;
    channelInterpretation: ChannelInterpretation;
    id?: string;
    nativeElement: HTMLMediaElement;
}

Properties

channelCount: number

The number of channels of the source.

channelInterpretation: ChannelInterpretation

Channel interpretation to use in the audio graph, see https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation

id?: string

The id of the track, will default to elements source if unset.

nativeElement: HTMLMediaElement

The element to track.