Membrane.WebRTC.Track (Membrane WebRTC plugin v0.1.0) View Source
Module representing a WebRTC track.
Link to this section Summary
Functions
Given a list of new tracks and a list of already added tracks, adds ssrcs to the new tracks.
Creates a new track.
Generates stream id, that can be used to mark tracks belonging to the same stream.
Link to this section Types
Specs
encoding() :: :OPUS | :H264 | :VP8
Specs
id() :: String.t()
Specs
t() :: %Membrane.WebRTC.Track{ encoding: encoding(), fmtp: ExSDP.Attribute.FMTP, id: id(), mid: non_neg_integer(), name: String.t(), rtp_mapping: ExSDP.Attribute.RTPMapping, ssrc: RTP.ssrc_t(), status: :pending | :ready | :linked | :disabled, stream_id: String.t(), type: :audio | :video }
Link to this section Functions
Specs
Given a list of new tracks and a list of already added tracks, adds ssrcs to the new tracks.
Specs
new(:audio | :video, stream_id :: String.t(), id: String.t(), endpoint_id: String.t(), name: String.t(), ssrc: RTP.ssrc_t(), encoding: encoding(), mid: non_neg_integer(), rtp_mapping: ExSDP.Attribute.RTPMapping, status: :pending | :ready | :linked | :disabled ) :: t()
Creates a new track.
Tracks belonging to the same stream should have the same stream_id
,
that can be generated with stream_id/0
.
Specs
stream_id() :: String.t()
Generates stream id, that can be used to mark tracks belonging to the same stream.