pion / example-webrtc-applications

Examples of WebRTC applications that are large, or use 3rd party libraries
https://pion.ly/
MIT License
1.03k stars 244 forks source link

added payloadType parameter to CreatePipeline #107

Closed longlonghands closed 3 years ago

longlonghands commented 3 years ago

Description

When I tried to run gstreamer-receive example, Gstreamer pipeline couldn't start the stream. so I checked out the generated sdp from my browser (chrome) and I saw the Payload Type for codecs are not matching with the one provided for gstreamer pipeline. In order to know the payload type for the pipeline, it's better to get it from the SDP. So I added payload type as a parameter to CreatePipeline function in gstreamer-sink and injected it using track.PayloadType()

Reference issue

Sean-Der commented 3 years ago

Great work @longlonghands!

Thank you so much for the contribution. I hope you stay involved, any way I can improve Pion to make it easier/better?