Versions in this module Expand all Collapse all v0 v0.1.0 Sep 23, 2024 Changes in this version + var DefaultDiagoWebrtc = NewDiagoWebrtc() + var RecordingFlushSize = 1024 * 4000 + func AnswerWebrtc(d *diago.DialogServerSession, opts AnswerWebrtcOptions) error + type AnswerWebrtcOptions struct + Formats sdp.Formats + type DiagoWebrtc struct + func NewDiagoWebrtc() DiagoWebrtc + func (api *DiagoWebrtc) AnswerWebrtc(d *diago.DialogServerSession, opts AnswerWebrtcOptions) error + type RTPNilReader struct + func (r *RTPNilReader) ReadRTP(buf []byte, p *rtp.Packet) error + type Recording struct + BitDepth int + ID string + Writer io.WriteSeeker + func NewRecordingWav(id string, w io.WriteSeeker) *Recording + func (r *Recording) Attach(m *diago.DialogMedia) error + func (r *Recording) Close() error + func (r *Recording) Pause(toggle bool) + func (r *Recording) Read(b []byte) (int, error) + func (r *Recording) Write(b []byte) (int, error) + type RecordingStreamReader struct + MonitorReader io.Reader + Writer io.Writer + func (r *RecordingStreamReader) Read(b []byte) (int, error) + type WebrtcTrackRTPReader struct + func (r *WebrtcTrackRTPReader) ReadRTCP(buf []byte, rtcpBuf []rtcp.Packet) (int, error) + func (r *WebrtcTrackRTPReader) ReadRTCPRaw(buf []byte) (int, error) + func (r *WebrtcTrackRTPReader) ReadRTP(buf []byte, p *rtp.Packet) error + func (r *WebrtcTrackRTPReader) ReadRTPRaw(buf []byte) (int, error) + type WebrtcTrackRTPWriter struct + func (r *WebrtcTrackRTPWriter) WriteRTCP(p rtcp.Packet) error + func (r *WebrtcTrackRTPWriter) WriteRTCPRaw(buf []byte) (int, error) + func (r *WebrtcTrackRTPWriter) WriteRTP(p *rtp.Packet) error + func (r *WebrtcTrackRTPWriter) WriteRTPRaw(buf []byte) (int, error)