Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDiagoWebrtc = NewDiagoWebrtc()
View Source
var (
RecordingFlushSize = 1024 * 4000
)
Functions ¶
func AnswerWebrtc ¶
func AnswerWebrtc(d *diago.DialogServerSession, opts AnswerWebrtcOptions) error
Types ¶
type AnswerWebrtcOptions ¶
type DiagoWebrtc ¶
type DiagoWebrtc struct {
*webrtc.API
}
func NewDiagoWebrtc ¶
func NewDiagoWebrtc() DiagoWebrtc
func (*DiagoWebrtc) AnswerWebrtc ¶
func (api *DiagoWebrtc) AnswerWebrtc(d *diago.DialogServerSession, opts AnswerWebrtcOptions) error
type RTPNilReader ¶
type Recording ¶
type Recording struct { // Is id of recording ID string // Writer is our store // It will be closed toggether when recording is closed. Should be rare case // to keep writer open after recording // In some cases this is needed where for example WavWriter will update headers on close Writer io.WriteSeeker BitDepth int // contains filtered or unexported fields }
func NewRecordingWav ¶
func NewRecordingWav(id string, w io.WriteSeeker) *Recording
NewRecordingWav constructs recording for storing WAV
type RecordingStreamReader ¶
type WebrtcTrackRTPReader ¶
type WebrtcTrackRTPReader struct {
// contains filtered or unexported fields
}
func (*WebrtcTrackRTPReader) ReadRTCPRaw ¶
func (r *WebrtcTrackRTPReader) ReadRTCPRaw(buf []byte) (int, error)
func (*WebrtcTrackRTPReader) ReadRTP ¶
func (r *WebrtcTrackRTPReader) ReadRTP(buf []byte, p *rtp.Packet) error
func (*WebrtcTrackRTPReader) ReadRTPRaw ¶
func (r *WebrtcTrackRTPReader) ReadRTPRaw(buf []byte) (int, error)
type WebrtcTrackRTPWriter ¶
type WebrtcTrackRTPWriter struct {
// contains filtered or unexported fields
}
func (*WebrtcTrackRTPWriter) WriteRTCP ¶
func (r *WebrtcTrackRTPWriter) WriteRTCP(p rtcp.Packet) error
func (*WebrtcTrackRTPWriter) WriteRTCPRaw ¶
func (r *WebrtcTrackRTPWriter) WriteRTCPRaw(buf []byte) (int, error)
func (*WebrtcTrackRTPWriter) WriteRTP ¶
func (r *WebrtcTrackRTPWriter) WriteRTP(p *rtp.Packet) error
func (*WebrtcTrackRTPWriter) WriteRTPRaw ¶
func (r *WebrtcTrackRTPWriter) WriteRTPRaw(buf []byte) (int, error)
Click to show internal directories.
Click to hide internal directories.