Question about webrtc.NewTrackLocalStaticRTP #1547
-
Hi, Obviously doing something stupid, but if anybody can help me, it will be highly appreciated: Trying to compile the example rtp-to-webrtc as is, and get the following error: ./main.go:53:21: undefined: webrtc.NewTrackLocalStaticRTP The code is exactly as in the example but here is the relevant part: package main _import (
) func main() { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Also the last line videoTrack.Write fails too: The error is 'Unresolved reference' _if , writeErr := videoTrack.Write(inboundRTPPacket[:n]); writeErr != nil { |
Beta Was this translation helpful? Give feedback.
-
Hey @rwschnetler What version of pion/webrtc are you using? Older versions of v3.0.0 beta didnt have this function yet. Thanks! |
Beta Was this translation helpful? Give feedback.
Hey @rwschnetler
What version of pion/webrtc are you using? Older versions of v3.0.0 beta didnt have this function yet. Thanks!