peerix - v0.6.0
    Preparing search index...

    Interface TrackEvent

    Emitted when a peer adds a media track to or removes one from a shared stream.

    interface TrackEvent {
        label: string;
        name: "track:add" | "track:remove";
        peer?: Peer;
        stream: MediaStream;
        track: MediaStreamTrack;
    }
    Index
    label: string

    Label of the media stream.

    name: "track:add" | "track:remove"

    Name of the event.

    peer?: Peer

    Peer object containing connection details. For local tracks, peer is undefined.

    stream: MediaStream

    Media stream associated with the event.

    track: MediaStreamTrack

    Media track associated with the event.