AWS Signaling Channel: thread 'tokio-runtime-worker' panicked
Description When using the AwsKvsWebRTCSink element in the GStreamer pipeline and connecting to a AWS signaling channel everything works fine. But when I try to connecting to the channel as a viewer by using the test page: test page I get an error:
thread 'tokio-runtime-worker' panicked at 'Signal 'request-aux-sender' of type 'GstWebRTCBin' not found', /root/.cargo/git/checkouts/gtk-rs-core-7be42ca38bd6361c/4b17e9a/glib/src/object.rs:2642:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', net/webrtc/src/webrtcsink/imp.rs:2968:47
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason error (-5)
Execution ended after 0:02:14.058589145
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
Freeing pipeline ...
I used the following command:
AWS_DEFAULT_REGION="eu-central-1" AWS_ACCESS_KEY_ID="XXX" AWS_SECRET_ACCESS_KEY="XXX" gst-launch-1.0 videotestsrc pattern=ball ! video/x-raw, width=1280, height=720 ! videoconvert ! awskvswebrtcsink name=ws signaller::channel-name="testchannel"
If I execute the command everything works:
AWS_DEFAULT_REGION="eu-central-1" AWS_ACCESS_KEY_ID="XXX" AWS_SECRET_ACCESS_KEY="XXX" gst-launch-1.0 videotestsrc pattern=ball ! video/x-raw, width=1280, height=720 ! videoconvert ! awskvswebrtcsink name=ws signaller::channel-name="testchannel"
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
0:00:04.5 / 99:99:99.
But as soon as I connect as viewer I get an error:
AWS_DEFAULT_REGION="eu-central-1" AWS_ACCESS_KEY_ID="AKIAWX3UAGZM7FWQQRZZ" AWS_SECRET_ACCESS_KEY="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" gst-launch-1.0 videotestsrc pattern=ball ! video/x-raw, width=1280, height=720 ! videoconvert ! awskvswebrtcsink name=ws signaller::channel-name="testchannel"
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
thread 'tokio-runtime-worker' panicked at 'Signal 'request-aux-sender' of type 'GstWebRTCBin' not found', /root/.cargo/git/checkouts/gtk-rs-core-7be42ca38bd6361c/4b17e9a/glib/src/object.rs:2642:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', net/webrtc/src/webrtcsink/imp.rs:2968:47
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
Execution ended after 0:00:37.895718435
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
ERROR: from element /GstPipeline:pipeline0/GstAwsKvsWebRTCSink:ws: Panicked
Freeing pipeline ...
Steps to Reproduce Set up a GStreamer pipeline using the AwsKvsWebRTCSink element and the lines of code provided above. Run the pipeline. Connect via Website: KVS WebRTC Test Page
Expected Behavior The pipeline should run without any errors and properly configure the output state.
Actual Behavior The pipeline encounters an error