Documentation
¶
Index ¶
- Variables
- type TaskCreator
- type TaskParam
- type TaskResponse
- type TrackLocalVideo
- func (t *TrackLocalVideo) Bind(c webrtc.TrackLocalContext) (webrtc.RTPCodecParameters, error)
- func (t *TrackLocalVideo) ID() string
- func (t *TrackLocalVideo) Kind() webrtc.RTPCodecType
- func (t *TrackLocalVideo) StreamID() string
- func (t *TrackLocalVideo) Unbind(c webrtc.TrackLocalContext) error
- func (t *TrackLocalVideo) Write(pkt base.AvPacket) error
- type WebRtcSender
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRtmp2WebRtc = errors.New("rtmp2webrtc: fxxk")
)
Functions ¶
This section is empty.
Types ¶
type TaskCreator ¶
type TaskCreator struct {
// contains filtered or unexported fields
}
func NewTaskCreator ¶
func NewTaskCreator(port int, hostIp string) (*TaskCreator, error)
func (*TaskCreator) StartTunnelTask ¶
func (t *TaskCreator) StartTunnelTask(rtmpUrl string, sessionDescription string, onLocalSessDesc func(sessDesc string)) error
type TaskResponse ¶
type TaskResponse struct {
SessionDescription string `json:"session_description"`
}
type TrackLocalVideo ¶
type TrackLocalVideo struct {
// contains filtered or unexported fields
}
func NewTrackLocalVideo ¶
func NewTrackLocalVideo(c webrtc.RTPCodecCapability, id, streamID string) (*TrackLocalVideo, error)
func (*TrackLocalVideo) Bind ¶
func (t *TrackLocalVideo) Bind(c webrtc.TrackLocalContext) (webrtc.RTPCodecParameters, error)
func (*TrackLocalVideo) ID ¶
func (t *TrackLocalVideo) ID() string
func (*TrackLocalVideo) Kind ¶
func (t *TrackLocalVideo) Kind() webrtc.RTPCodecType
func (*TrackLocalVideo) StreamID ¶
func (t *TrackLocalVideo) StreamID() string
func (*TrackLocalVideo) Unbind ¶
func (t *TrackLocalVideo) Unbind(c webrtc.TrackLocalContext) error
type WebRtcSender ¶
type WebRtcSender struct {
UdpMux ice.UDPMux
TcpMux ice.TCPMux
HostIp string
ICEConnectionStateCB func(connectionState webrtc.ICEConnectionState)
// contains filtered or unexported fields
}
func (*WebRtcSender) Init ¶
func (w *WebRtcSender) Init(offer webrtc.SessionDescription) (localDesc webrtc.SessionDescription, err error)
Click to show internal directories.
Click to hide internal directories.