View Source ExWebRTC.MediaStreamTrack (ex_webrtc v0.7.0)

Mimics MediaStreamTrack.

Summary

Types

@type id() :: integer()
@type kind() :: :audio | :video
@type rid() :: String.t()
@type stream_id() :: String.t()
@type t() :: %ExWebRTC.MediaStreamTrack{
  id: id(),
  kind: kind(),
  rids: [rid()] | nil,
  streams: [stream_id()]
}

Functions

@spec generate_stream_id() :: stream_id()
Link to this function

new(kind, streams \\ [])

View Source
@spec new(kind(), [stream_id()]) :: t()