Documentation ¶
Index ¶
- Constants
- Variables
- func StartMainLoop()
- type Channel
- type Pipeline
- func (p *Pipeline) AddOutputTrack(newTrack *webrtc.Track)
- func (p *Pipeline) GetOutputTracks() []*webrtc.Track
- func (p *Pipeline) SettingOutputTracks(tracks []*webrtc.Track)
- func (p *Pipeline) Start()
- func (p *Pipeline) Stop()
- func (p *Pipeline) WriteSampleToInputSource(buffer []byte, sourceID string)
- func (p *Pipeline) WriteSampleToOutputTrack(buffer []byte, samples uint32) error
Constants ¶
View Source
const ( //VideoClockRate Default VideoClockRate = 90000 //AudioClockRate Default AudioClockRate = 48000 //PcmClockRate Default PcmClockRate = 8000 )
Variables ¶
View Source
var Logger *logrus.Logger
Logger is the Gst Logger Instance
Functions ¶
Types ¶
type Channel ¶
Channel in the Pipeline
func NewChannel ¶
NewChannel create a new Channel in the Pipeline
type Pipeline ¶
type Pipeline struct { Pipeline *C.GstElement // contains filtered or unexported fields }
Pipeline is a wrapper for a GStreamer Pipeline
func CreateAudioMixerPipeline ¶
CreateAudioMixerPipeline Creating a Pipeline for Composite Audio Mixing (n-1)
func CreatePipeline ¶
CreatePipeline creates a GStreamer Pipeline
func CreateVideoMixerPipeline ¶
CreateVideoMixerPipeline Creating a Pipeline for Composite Video Mixing
func (*Pipeline) AddOutputTrack ¶
func (p *Pipeline) AddOutputTrack(newTrack *webrtc.Track)
AddOutputTrack to the Track Stream
func (*Pipeline) GetOutputTracks ¶
func (p *Pipeline) GetOutputTracks() []*webrtc.Track
GetOutputTracks get the Tracks
func (*Pipeline) SettingOutputTracks ¶
func (p *Pipeline) SettingOutputTracks(tracks []*webrtc.Track)
SettingOutputTracks set the Tracks
func (*Pipeline) WriteSampleToInputSource ¶
WriteSampleToInputSource writes a Buffer to a appsrc of the GStreamer Pipeline
Click to show internal directories.
Click to hide internal directories.