Documentation
¶
Index ¶
- func NewH264LocalStaticSampleVideoTrack(videoFile string, fps int) (videoTrack *webrtc.TrackLocalStaticSample, err error)
- func NewRTCEngine(conf *RTCEngineConfiguration) (api *webrtc.API, err error)
- func NewVideoTrackPeerConnection(api *webrtc.API, videoTrack *webrtc.TrackLocalStaticSample) (peerConnection *webrtc.PeerConnection, err error)
- func OfferPublishToAnswer(api *webrtc.API, videoFile string, videoFps int, ...) (err error)
- type PROTOCOL
- type RTCEngineConfiguration
- type RTCEngine_NETWORKTYPE
- type RTCTYPE
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewH264LocalStaticSampleVideoTrack ¶
func NewH264LocalStaticSampleVideoTrack(videoFile string, fps int) (videoTrack *webrtc.TrackLocalStaticSample, err error)
loop
func NewRTCEngine ¶
func NewRTCEngine(conf *RTCEngineConfiguration) (api *webrtc.API, err error)
func NewVideoTrackPeerConnection ¶
func NewVideoTrackPeerConnection(api *webrtc.API, videoTrack *webrtc.TrackLocalStaticSample) (peerConnection *webrtc.PeerConnection, err error)
func OfferPublishToAnswer ¶
func OfferPublishToAnswer(api *webrtc.API, videoFile string, videoFps int, generateAnswerFunc func(webrtc.SessionDescription) (webrtc.SessionDescription, error)) (err error)
Types ¶
type RTCEngineConfiguration ¶
type RTCEngineConfiguration struct {
NetworkType RTCEngine_NETWORKTYPE
TCP *net.TCPAddr
UDP *net.UDPAddr
}
type RTCEngine_NETWORKTYPE ¶
type RTCEngine_NETWORKTYPE int
const ( RTCEngineNETWORKTYPE_TCP RTCEngine_NETWORKTYPE = iota + 1 RTCEngineNETWORKTYPE_UDP RTCEngineNETWORKTYPE_MIX )
Click to show internal directories.
Click to hide internal directories.