InnovateAsterisk / Browser-Phone

A fully featured browser based WebRTC SIP phone for Asterisk
https://www.innovateasterisk.com
GNU Affero General Public License v3.0
516 stars 256 forks source link

Audio and video codec #356

Open changcheng-shen opened 2 years ago

changcheng-shen commented 2 years ago

How to configure the default audio (eg. PCMA OPUS) and video (VP8 or H264) codec for webrtc video calls and the sending frequency (5s or 10s or 60s) of IDR key frames in video streams

InnovateAsterisk commented 2 years ago

Codec details and selection should be done on the Asterisk side allow=!all,opus,VP8 also for ptime: allow=!all,opus:20,VP8

You can also apply the Media Track Constraints here: https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints

At the time of capturing the device - there are no settable options at the moment, except sampleRate is applied to video channels. It's set as exact.

changcheng-shen commented 2 years ago

ok, Thank you for your review