Update streamer NewTrack function
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
// Package streamer
|
||||
//
|
||||
// 1. Consumer.GetMedias - return list of Media, that Consumer can play/load/consume:
|
||||
// - Media with DirectionRecvonly for audio/video
|
||||
// - Media with DirectionSendonly for backchannel
|
||||
//
|
||||
// 2. Producer.GetMedias - return list of Media, that Producer can generate/create/produce
|
||||
// - Media with DirectionSendonly for audio/video
|
||||
// - Media with DirectionRecvonly for backchannel
|
||||
//
|
||||
// 3. Producer.GetTrack - get Media from Producer and Codec from that Media return Track from Producer:
|
||||
// - Media with DirectionSendonly should Track.WriteRTP after Producer.Start
|
||||
// - Media with DirectionRecvonly should Track.Bind and wait Track.WriteRTP from Consumer
|
||||
//
|
||||
// 4. Consumer.AddTrack - takes Media from Consumer and Track from Producer:
|
||||
// - Media with DirectionRecvonly should Track.WriteRTP
|
||||
// - Media with DirectionSendonly should Track.Bind
|
||||
//
|
||||
// 5. Producer.Start - run loop with reading rtp.Packet from source
|
||||
package streamer
|
||||
|
||||
// States, Queries and Events
|
||||
|
||||
Reference in New Issue
Block a user