mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 17:47:11 +00:00
remove api
This commit is contained in:
parent
d9db0cc58a
commit
d0981dfbf3
1 changed files with 1 additions and 6 deletions
|
|
@ -113,12 +113,7 @@ func (w *WebRTC) StartClient(remoteSession string, iceCandidates []string, width
|
|||
w.encoder = encoder
|
||||
|
||||
log.Println("=== StartClient ===")
|
||||
m := webrtc.MediaEngine{}
|
||||
m.RegisterCodec(webrtc.NewRTPOpusCodec(webrtc.DefaultPayloadTypeOpus, 48000))
|
||||
m.RegisterCodec(webrtc.NewRTPVP8Codec(webrtc.DefaultPayloadTypeVP8, 90000))
|
||||
api := webrtc.NewAPI(webrtc.WithMediaEngine(m))
|
||||
|
||||
w.connection, err = api.NewPeerConnection(webrtcconfig)
|
||||
w.connection, err = webrtc.NewPeerConnection(webrtcconfig)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue