feat: add screenshare

feat: add camera selector

desc: 增加屏幕分享和摄像头选择功能
This commit is contained in:
langhuihui
2023-06-16 12:56:48 +08:00
parent 038e46e4b7
commit f238d63dd3
8 changed files with 151 additions and 86 deletions

View File

@@ -230,6 +230,9 @@ func (conf *WebRTCConfig) Push_(w http.ResponseWriter, r *http.Request) {
func (conf *WebRTCConfig) Test_Publish(w http.ResponseWriter, r *http.Request) {
w.Write(publishHTML)
}
func (conf *WebRTCConfig) Test_ScreenShare(w http.ResponseWriter, r *http.Request) {
w.Write(publishHTML)
}
func (conf *WebRTCConfig) Test_Subscribe(w http.ResponseWriter, r *http.Request) {
w.Write(subscribeHTML)
}