Documentation ¶
Index ¶
- Constants
- Variables
- type RTCRouter
- type RTCStreamer
- type RTCTransport
- func (self *RTCTransport) GetLocalSDP(sdpType webrtc.SDPType) (string, error)
- func (self *RTCTransport) ID() string
- func (self *RTCTransport) SetRemoteSDP(sdpstr string, sdpType webrtc.SDPType) error
- func (self *RTCTransport) Stop() (err error)
- func (self *RTCTransport) WriteRTP(packet *rtp.Packet) (err error)
- type RtmpStreamer
Constants ¶
View Source
const ( DefaultOpusSSRC = 111111111 DefaultH264SSRC = 333333333 OpusPayloadType = 111 H264PayloadTYpe = 127 )
Variables ¶
View Source
var NALUHeader = []byte{0, 0, 0, 1}
Functions ¶
This section is empty.
Types ¶
type RTCRouter ¶
func NewRTCRouter ¶
func (*RTCRouter) CreateSubscriber ¶
func (self *RTCRouter) CreateSubscriber() (*RTCTransport, error)
func (*RTCRouter) StopSubscriber ¶
func (self *RTCRouter) StopSubscriber(transport *RTCTransport)
type RTCStreamer ¶
type RTCStreamer struct { }
type RTCTransport ¶
func NewRTCTransport ¶
func NewRTCTransport(id string, endpoint string) (*RTCTransport, error)
func (*RTCTransport) GetLocalSDP ¶
func (self *RTCTransport) GetLocalSDP(sdpType webrtc.SDPType) (string, error)
func (*RTCTransport) ID ¶
func (self *RTCTransport) ID() string
func (*RTCTransport) SetRemoteSDP ¶
func (self *RTCTransport) SetRemoteSDP(sdpstr string, sdpType webrtc.SDPType) error
func (*RTCTransport) Stop ¶
func (self *RTCTransport) Stop() (err error)
type RtmpStreamer ¶
type RtmpStreamer struct {
// contains filtered or unexported fields
}
func NewRtmpStreamer ¶
func NewRtmpStreamer(streamURL string) (*RtmpStreamer, error)
func (*RtmpStreamer) Close ¶
func (r *RtmpStreamer) Close()
func (*RtmpStreamer) GetLocalSDP ¶
func (r *RtmpStreamer) GetLocalSDP(sdpType webrtc.SDPType) (string, error)
func (*RtmpStreamer) PullStream ¶
func (r *RtmpStreamer) PullStream()
func (*RtmpStreamer) SetRemoteSDP ¶
func (r *RtmpStreamer) SetRemoteSDP(sdpStr string, sdpType webrtc.SDPType) error
Click to show internal directories.
Click to hide internal directories.