This repository was archived by the owner on Apr 25, 2023. It is now read-only.
File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,7 @@ $ gcc webrtc-sendrecv.c $(pkg-config --cflags --libs gstreamer-webrtc-1.0 gstrea
74
74
* python3 -m pip install --user websockets
75
75
* run ` python3 sendrecv/gst/webrtc-sendrecv.py ID ` with the ` id ` from the browser. You will see state changes and an SDP exchange.
76
76
77
- > The python version currently requires the master branches from ` gst-plugins-bad ` and ` gst-plugins-base ` .
78
-
79
- <!-- -
80
- TODO: replace the note above when 1.16 is released
81
- -->
77
+ > The python version requires at least version 1.14.2 of gstreamer and its plugins.
82
78
83
79
With all versions, you will see a bouncing ball + hear red noise in the browser, and your browser's webcam + mic in the gst app.
84
80
Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ async def handle_sdp(self, message):
121
121
assert (sdp ['type' ] == 'answer' )
122
122
sdp = sdp ['sdp' ]
123
123
print ('Received answer:\n %s' % sdp )
124
- res , sdpmsg = GstSdp .SDPMessage .new_from_text (sdp )
124
+ res , sdpmsg = GstSdp .SDPMessage .new ()
125
+ GstSdp .sdp_message_parse_buffer (bytes (sdp .encode ()), sdpmsg )
125
126
answer = GstWebRTC .WebRTCSessionDescription .new (GstWebRTC .WebRTCSDPType .ANSWER , sdpmsg )
126
127
promise = Gst .Promise .new ()
127
128
self .webrtc .emit ('set-remote-description' , answer , promise )
You can’t perform that action at this time.
0 commit comments