Can i use remote Track that is received from peer-1 and set my localTrack from remote Track and send to peer-1 back? #2560
-
I am trying to understand PION implementation where remote peer can be achieved by peerconnection.onTrack() .so is there any way we can convert the remote track to my local track and addTrack peerconnection.addTrack(remoteTrack)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Nothing exists that can do that automatically (maybe we should provide that as a helper?) examples/broadcast does exactly what you are describing though! It reads from a Another project I worked on recently does this Broadcast Box. If you want to work on a re-usable helper that would be very useful! |
Beta Was this translation helpful? Give feedback.
Hi @ManivishalBurra
Nothing exists that can do that automatically (maybe we should provide that as a helper?)
examples/broadcast does exactly what you are describing though! It reads from a
TrackRemote
and then writes to aTrackLocal
Another project I worked on recently does this Broadcast Box. If you want to work on a re-usable helper that would be very useful!