mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 07:37:10 +08:00
New Track API
The Pion WebRTC API has been dramatically redesigned. The design docs are located here [0] You can also read the release notes [1] on how to migrate your application. [0] https://github.com/pion/webrtc-v3-design [1] https://github.com/pion/webrtc/wiki/Release-WebRTC@v3.0.0
This commit is contained in:
@@ -17,7 +17,9 @@ func doSignaling(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if peerConnection == nil {
|
||||
m := webrtc.MediaEngine{}
|
||||
m.RegisterDefaultCodecs()
|
||||
if err = m.RegisterDefaultCodecs(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
settingEngine := webrtc.SettingEngine{}
|
||||
|
||||
|
Reference in New Issue
Block a user