直播:后台 JWT 推流、前台画中画;WebRTC 服务与 Nginx WebSocket 代理
Made-with: Cursor
This commit is contained in:
18
server/vendor/github.com/pion/webrtc/v3/oauthcredential.go
generated
vendored
Normal file
18
server/vendor/github.com/pion/webrtc/v3/oauthcredential.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package webrtc
|
||||
|
||||
// OAuthCredential represents OAuth credential information which is used by
|
||||
// the STUN/TURN client to connect to an ICE server as defined in
|
||||
// https://tools.ietf.org/html/rfc7635. Note that the kid parameter is not
|
||||
// located in OAuthCredential, but in ICEServer's username member.
|
||||
type OAuthCredential struct {
|
||||
// MACKey is a base64-url encoded format. It is used in STUN message
|
||||
// integrity hash calculation.
|
||||
MACKey string
|
||||
|
||||
// AccessToken is a base64-encoded format. This is an encrypted
|
||||
// self-contained token that is opaque to the application.
|
||||
AccessToken string
|
||||
}
|
||||
Reference in New Issue
Block a user