notedit / gstreamer-webrtc

webrtc streamer based on gstreamer
75 stars 19 forks source link

fingerprint is null #4

Closed xl736592857 closed 5 years ago

xl736592857 commented 5 years ago

I installed gstreamer 1.14.4.when open test.html, I received the error. this is received remote sdp: v=0 o=- 5964978430099094417 0 IN IP4 0.0.0.0 s=- t=0 0 a=ice-options:trickle a=msid-semantic:WMS webrtcbin1 m=audio 9 UDP/TLS/RTP/SAVPF 100 c=IN IP4 0.0.0.0 a=setup:actpass a=ice-ufrag:+KgsA73MAsZ47AuOSNyvBTnXHmtjzN2z a=ice-pwd:Erz7UeJqKkr0ZWqPxnS0DVAOe4Ni6ls8 a=sendrecv a=rtcp-mux a=rtcp-rsize a=rtpmap:100 OPUS/48000/2 a=rtcp-fb:100 nack pli a=fmtp:100 sprop-maxcapturerate=48000;sprop-stereo=0 a=ssrc:188064153 msid:user4228366586@host-63a3f01 webrtctransceiver2 a=ssrc:188064153 cname:user4228366586@host-63a3f01 a=mid:audio0 a=fingerprint:sha-256 (null) m=video 9 UDP/TLS/RTP/SAVPF 97 c=IN IP4 0.0.0.0 a=setup:actpass a=ice-ufrag:m4ToU3UfP1FpRJYSlus8CF7taHDgvsMW a=ice-pwd:DYPaB8tEZN6kt2wtCq7QaxoNY3ph4sno a=sendrecv a=rtcp-mux a=rtcp-rsize a=rtpmap:97 VP8/90000 a=rtcp-fb:97 nack pli a=framerate:30 a=ssrc:3231859295 msid:user4228366586@host-63a3f01 webrtctransceiver3 a=ssrc:3231859295 cname:user4228366586@host-63a3f01 a=mid:video1 a=fingerprint:sha-256 (null)

server.py log: (:91129): WARNING : 23:02:57.182: tried to set connection-id after disabling DTLS

(:91129): WARNING : 23:02:57.182: tried to set connection-id after disabling DTLS

(:91129): WARNING : 23:02:57.182: tried to set connection-id after disabling DTLS

(:91129): WARNING : 23:02:57.182: tried to set connection-id after disabling DTLS

(:91129): WARNING : 23:02:57.183: (transportsendbin.c:387):tsb_setup_ctx: code should not be reached

(:91129): CRITICAL : 23:02:57.183: gst_dtls_srtp_enc_request_new_pad: assertion 'self->srtp_enc' failed

(:91129): CRITICAL : 23:02:57.183: gst_dtls_srtp_enc_request_new_pad: assertion 'self->srtp_enc' failed

(:91129): WARNING : 23:02:57.183: (transportsendbin.c:419):transport_send_bin_constructed: code should not be reached

(:91129): GStreamer-CRITICAL **: 23:02:57.183: gst_ghost_pad_new: assertion 'GST_IS_PAD (target)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.183: gst_element_add_pad: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.183: gst_object_unref: assertion 'object != NULL' failed

(:91129): WARNING : 23:02:57.183: (transportsendbin.c:387):tsb_setup_ctx: code should not be reached

(:91129): CRITICAL : 23:02:57.184: gst_dtls_srtp_enc_request_new_pad: assertion 'self->srtp_enc' failed

(:91129): WARNING : 23:02:57.184: (transportsendbin.c:434):transport_send_bin_constructed: code should not be reached

(:91129): WARNING : 23:02:57.184: (transportreceivebin.c:271):transport_receive_bin_constructed: code should not be reached

(:91129): WARNING : 23:02:57.184: (transportreceivebin.c:291):transport_receive_bin_constructed: code should not be reached

(:91129): WARNING : 23:02:57.184: (transportreceivebin.c:304):transport_receive_bin_constructed: code should not be reached

(:91129): WARNING : 23:02:57.184: (transportreceivebin.c:307):transport_receive_bin_constructed: code should not be reached

(:91129): WARNING : 23:02:57.184: (transportreceivebin.c:329):transport_receive_bin_constructed: code should not be reached

(:91129): WARNING : 23:02:57.184: (transportreceivebin.c:332):transport_receive_bin_constructed: code should not be reached

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_pad_get_peer: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_ref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_pad_add_probe: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_unref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_unref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_pad_get_peer: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_ref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_pad_add_probe: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_unref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_unref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_ref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_pad_add_probe: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_unref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_pad_get_peer: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_object_ref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.185: gst_pad_add_probe: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.186: gst_object_unref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.186: gst_object_unref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.186: gst_object_ref: assertion 'object != NULL' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.186: gst_pad_add_probe: assertion 'GST_IS_PAD (pad)' failed

(:91129): GStreamer-CRITICAL **: 23:02:57.186: gst_object_unref: assertion 'object != NULL' failed

(:91129): CRITICAL : 23:02:57.186: _generate_fingerprint_from_certificate: assertion 'certificate != NULL' failed

Can you help me solve it? Thank you!

xl736592857 commented 5 years ago

I have solved it. I installing gst-plugins-bad miss srtp.