Membrane.WebRTC.Track (Membrane WebRTC plugin v0.1.0-alpha.1) 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
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(), name: String.t(), ssrc: Membrane.RTP.ssrc_t(), encoding: encoding() ) :: 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.