Versions in this module Expand all Collapse all v0 v0.7.3 Mar 13, 2025 Changes in this version + func RegisterDriverAdapter(a driver.Adapter, info driver.Info) error + type AudioSource interface + type AudioTrack struct + func (track *AudioTrack) Bind(ctx webrtc.TrackLocalContext) (webrtc.RTPCodecParameters, error) + func (track *AudioTrack) EncoderController() codec.EncoderController + func (track *AudioTrack) NewEncodedIOReader(codecName string) (io.ReadCloser, error) + func (track *AudioTrack) NewEncodedReader(codecName string) (EncodedReadCloser, error) + func (track *AudioTrack) NewRTPReader(codecName string, ssrc uint32, mtu int) (RTPReadCloser, error) + func (track *AudioTrack) Transform(fns ...audio.TransformFunc) + func (track *AudioTrack) Unbind(ctx webrtc.TrackLocalContext) error + func (track AudioTrack) Kind() webrtc.RTPCodecType + func (track AudioTrack) OnEnded(handler func(error)) + func (track AudioTrack) RID() string + func (track AudioTrack) StreamID() string + type CodecSelector struct + func NewCodecSelector(opts ...CodecSelectorOption) *CodecSelector + func (selector *CodecSelector) Populate(setting *webrtc.MediaEngine) + type CodecSelectorOption func(*CodecSelector) + func WithAudioEncoders(encoders ...codec.AudioEncoderBuilder) CodecSelectorOption + func WithVideoEncoders(encoders ...codec.VideoEncoderBuilder) CodecSelectorOption + type EncodedBuffer struct + Data []byte + Samples uint32 + type EncodedReadCloser interface + Close func() error + Read func() (EncodedBuffer, func(), error) + type MediaDeviceInfo struct + DeviceID string + DeviceType driver.DeviceType + Kind MediaDeviceType + Label string + func EnumerateDevices() []MediaDeviceInfo + type MediaDeviceType int + const AudioInput + const AudioOutput + const VideoInput + type MediaOption func(*MediaTrackConstraints) + type MediaStream interface + AddTrack func(t Track) + GetAudioTracks func() []Track + GetTracks func() []Track + GetVideoTracks func() []Track + RemoveTrack func(t Track) + func GetDisplayMedia(constraints MediaStreamConstraints) (MediaStream, error) + func GetUserMedia(constraints MediaStreamConstraints) (MediaStream, error) + func NewMediaStream(tracks ...Track) (MediaStream, error) + type MediaStreamConstraints struct + Audio MediaOption + Codec *CodecSelector + Video MediaOption + type MediaTrackConstraints struct + type RTPReadCloser interface + Close func() error + Read func() (pkts []*rtp.Packet, release func(), err error) + type Source interface + Close func() error + ID func() string + type Track interface + Bind func(webrtc.TrackLocalContext) (webrtc.RTPCodecParameters, error) + EncoderController func() codec.EncoderController + Kind func() webrtc.RTPCodecType + NewEncodedIOReader func(codecName string) (io.ReadCloser, error) + NewEncodedReader func(codecName string) (EncodedReadCloser, error) + NewRTPReader func(codecName string, ssrc uint32, mtu int) (RTPReadCloser, error) + OnEnded func(func(error)) + RID func() string + StreamID func() string + Unbind func(webrtc.TrackLocalContext) error + func NewAudioTrack(source AudioSource, selector *CodecSelector) Track + func NewVideoTrack(source VideoSource, selector *CodecSelector) Track + type VideoSource interface + type VideoTrack struct + func (track *VideoTrack) Bind(ctx webrtc.TrackLocalContext) (webrtc.RTPCodecParameters, error) + func (track *VideoTrack) EncoderController() codec.EncoderController + func (track *VideoTrack) NewEncodedIOReader(codecName string) (io.ReadCloser, error) + func (track *VideoTrack) NewEncodedReader(codecName string) (EncodedReadCloser, error) + func (track *VideoTrack) NewRTPReader(codecName string, ssrc uint32, mtu int) (RTPReadCloser, error) + func (track *VideoTrack) SetShouldCopyFrames(shouldCopyFrames bool) + func (track *VideoTrack) ShouldCopyFrames() bool + func (track *VideoTrack) Transform(fns ...video.TransformFunc) + func (track *VideoTrack) Unbind(ctx webrtc.TrackLocalContext) error + func (track VideoTrack) Kind() webrtc.RTPCodecType + func (track VideoTrack) OnEnded(handler func(error)) + func (track VideoTrack) RID() string + func (track VideoTrack) StreamID() string