Documentation
¶
Index ¶
- func ValidateVPFile(name string) (string, bool)
- type WebMProducer
- func (t *WebMProducer) AddTrack(pc *webrtc.PeerConnection, kind string) (*webrtc.TrackLocalStaticSample, error)
- func (t *WebMProducer) AudioTrack() *webrtc.TrackLocalStaticSample
- func (t *WebMProducer) GetSendBandwidth(cycle int) int
- func (t *WebMProducer) Pause(pause bool)
- func (t *WebMProducer) SeekP(ts int)
- func (t *WebMProducer) Start()
- func (t *WebMProducer) Stop()
- func (t *WebMProducer) VideoCodec() string
- func (t *WebMProducer) VideoTrack() *webrtc.TrackLocalStaticSample
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateVPFile ¶
Types ¶
type WebMProducer ¶
type WebMProducer struct {
// contains filtered or unexported fields
}
WebMProducer support streaming by webm which encode with vp8 and opus
func NewWebMProducer ¶
func NewWebMProducer(id, name string, offset int) *WebMProducer
NewWebMProducer new a WebMProducer
func (*WebMProducer) AddTrack ¶
func (t *WebMProducer) AddTrack(pc *webrtc.PeerConnection, kind string) (*webrtc.TrackLocalStaticSample, error)
AddTrack will add new track to pc
func (*WebMProducer) AudioTrack ¶
func (t *WebMProducer) AudioTrack() *webrtc.TrackLocalStaticSample
func (*WebMProducer) GetSendBandwidth ¶
func (t *WebMProducer) GetSendBandwidth(cycle int) int
GetSendBandwidth calc the sending bandwidth with cycle(s)
func (*WebMProducer) Pause ¶
func (t *WebMProducer) Pause(pause bool)
func (*WebMProducer) SeekP ¶
func (t *WebMProducer) SeekP(ts int)
func (*WebMProducer) Start ¶
func (t *WebMProducer) Start()
func (*WebMProducer) Stop ¶
func (t *WebMProducer) Stop()
func (*WebMProducer) VideoCodec ¶
func (t *WebMProducer) VideoCodec() string
func (*WebMProducer) VideoTrack ¶
func (t *WebMProducer) VideoTrack() *webrtc.TrackLocalStaticSample
Click to show internal directories.
Click to hide internal directories.