Source File
rtpreceiver_go.go
Belonging Package
github.com/pion/webrtc/v4
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MIT//go:build !js// +build !jspackage webrtcimport// SetRTPParameters applies provided RTPParameters the RTPReceiver's tracks.//// This method is part of the ORTC API. It is not// meant to be used together with the basic WebRTC API.//// The amount of provided codecs must match the number of tracks on the receiver.func ( *RTPReceiver) ( RTPParameters) {:= make([]interceptor.RTPHeaderExtension, 0, len(.HeaderExtensions))for , := range .HeaderExtensions {= append(, interceptor.RTPHeaderExtension{ID: .ID, URI: .URI})}.mu.Lock()defer .mu.Unlock()for , := range .Codecs {:= .tracks[].track.tracks[].streamInfo.RTPHeaderExtensions =.mu.Lock().codec =.params =.mu.Unlock()}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |