pion / example-webrtc-applications

Examples of WebRTC applications that are large, or use 3rd party libraries

Home Page:https://pion.ly/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicated code on gstreamer-receive

PhVHoang opened this issue · comments

I see those lines of code (from line 38 to line 42) have duplicated code. I don't understand whether the duplicated part serves for a specific purpose but it seems that this is not necessary.

https://github.com/pion/example-webrtc-applications/blob/master/gstreamer-receive/main.go#L38

@PhVHoang If you want to make a PR, those lines can be deleted!

In early versions of Pion you needed to explicitly create a transceiver for everything you were willing to receive. In newer versions answerers accept all the offered tracks.

Fixed with 8ce7885

Thank you so much @PhVHoang !