直播:后台 JWT 推流、前台画中画;WebRTC 服务与 Nginx WebSocket 代理
Made-with: Cursor
This commit is contained in:
23
server/vendor/github.com/pion/webrtc/v3/settingengine_js.go
generated
vendored
Normal file
23
server/vendor/github.com/pion/webrtc/v3/settingengine_js.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
//go:build js && wasm
|
||||
// +build js,wasm
|
||||
|
||||
package webrtc
|
||||
|
||||
// SettingEngine allows influencing behavior in ways that are not
|
||||
// supported by the WebRTC API. This allows us to support additional
|
||||
// use-cases without deviating from the WebRTC API elsewhere.
|
||||
type SettingEngine struct {
|
||||
detach struct {
|
||||
DataChannels bool
|
||||
}
|
||||
}
|
||||
|
||||
// DetachDataChannels enables detaching data channels. When enabled
|
||||
// data channels have to be detached in the OnOpen callback using the
|
||||
// DataChannel.Detach method.
|
||||
func (e *SettingEngine) DetachDataChannels() {
|
||||
e.detach.DataChannels = true
|
||||
}
|
||||
Reference in New Issue
Block a user