Documentation ¶
Index ¶
- type FactoryImpl
- type LocalStream
- type LocalStreamParams
- type RemoteStream
- type RemoteStreamParams
- type StreamFactory
- type TrackLocl
- type TrackRemote
- func (t *TrackRemote) IsAudio() bool
- func (t *TrackRemote) IsVideo() bool
- func (t *TrackRemote) Kind() webrtc.RTPCodecType
- func (t *TrackRemote) ReadRTCP(buf []byte) (n int, a interceptor.Attributes, err error)
- func (t *TrackRemote) ReadRTP() (*rtp.Packet, error)
- func (t *TrackRemote) SSRC() webrtc.SSRC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FactoryImpl ¶
type FactoryImpl struct {
// contains filtered or unexported fields
}
func (*FactoryImpl) NewLocalStream ¶
func (f *FactoryImpl) NewLocalStream(params LocalStreamParams) (*LocalStream, error)
func (*FactoryImpl) NewRemoteStream ¶
func (f *FactoryImpl) NewRemoteStream(params RemoteStreamParams) (*RemoteStream, error)
type LocalStream ¶
func NewLocalStream ¶
func NewLocalStream(transport *transport.Transport) (*LocalStream, error)
func (*LocalStream) Close ¶
func (ls *LocalStream) Close()
type LocalStreamParams ¶
type RemoteStream ¶
func NewRemoteStream ¶
func NewRemoteStream(transport *transport.Transport) (*RemoteStream, error)
func (*RemoteStream) Close ¶
func (rs *RemoteStream) Close()
func (*RemoteStream) GatheringTracks ¶
func (rs *RemoteStream) GatheringTracks(gatherAudioTrack, gatherVideoTrack bool, timeout time.Duration) ([]*TrackRemote, error)
type RemoteStreamParams ¶
type StreamFactory ¶
type StreamFactory interface { NewRemoteStream(params RemoteStreamParams) (*RemoteStream, error) NewLocalStream(params LocalStreamParams) (*LocalStream, error) }
func NewTransportFactory ¶
func NewTransportFactory(settings config.Settings) StreamFactory
type TrackLocl ¶
type TrackLocl struct {
// contains filtered or unexported fields
}
func NewTrackLocl ¶
func (*TrackLocl) ReadRTCP ¶
func (t *TrackLocl) ReadRTCP(buf []byte) (n int, a interceptor.Attributes, err error)
type TrackRemote ¶
type TrackRemote struct {
// contains filtered or unexported fields
}
func NewTrackRemote ¶
func (*TrackRemote) IsAudio ¶
func (t *TrackRemote) IsAudio() bool
func (*TrackRemote) IsVideo ¶
func (t *TrackRemote) IsVideo() bool
func (*TrackRemote) Kind ¶
func (t *TrackRemote) Kind() webrtc.RTPCodecType
func (*TrackRemote) ReadRTCP ¶
func (t *TrackRemote) ReadRTCP(buf []byte) (n int, a interceptor.Attributes, err error)
func (*TrackRemote) SSRC ¶
func (t *TrackRemote) SSRC() webrtc.SSRC
Source Files ¶
Click to show internal directories.
Click to hide internal directories.