mirror of
https://github.com/pion/webrtc.git
synced 2025-09-26 19:21:12 +08:00
20 lines
485 B
Go
20 lines
485 B
Go
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//go:build js && wasm
|
|
// +build js,wasm
|
|
|
|
package webrtc
|
|
|
|
import "syscall/js"
|
|
|
|
// RTPReceiver allows an application to inspect the receipt of a TrackRemote
|
|
type RTPReceiver struct {
|
|
// Pointer to the underlying JavaScript RTCRTPReceiver object.
|
|
underlying js.Value
|
|
}
|
|
|
|
// JSValue returns the underlying RTCRtpReceiver
|
|
func (r *RTPReceiver) JSValue() js.Value {
|
|
return r.underlying
|
|
} |