Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken "publisher" example #7

Open
jaques-sam opened this issue Aug 30, 2023 · 5 comments
Open

Broken "publisher" example #7

jaques-sam opened this issue Aug 30, 2023 · 5 comments

Comments

@jaques-sam
Copy link

When running the publisher example, you'll see the following error: didn't accept URI

❯ GST_DEBUG=3 GST_PLUGIN_PATH=/gst-plugin-opentok/target/debug/ cargo run --example publisher -- --api-key $TOKBOX_API_KEY --session-id --remote
Finished dev [unoptimized + debuginfo] target(s) in 0.15s
Running target/debug/examples/publisher --api-key 47760411 --session-id <hided> --token <hided> --remote
***** OpenTok Linux SDK | Version/Revision: linux_llvm-2.25.0/d4431ca9bcd213d5f2faa19289fa919cfeac7e97 | Library built on: Apr 3 2023 | CA bundle version: Tue Jan 10 04:12:06 2023 GMT | Copyright 2023 Vonage | https://www.vonage.com/legal/communications-apis/terms-of-use/
***** OpenTok Linux SDK | Version/Revision: linux_llvm-2.25.0/d4431ca9bcd213d5f2faa19289fa919cfeac7e97 | Library built on: Apr 3 2023 | CA bundle version: Tue Jan 10 04:12:06 2023 GMT | Copyright 2023 Vonage | https://www.vonage.com/legal/communications-apis/terms-of-use/
0:00:00.189793458 111786 0x367e0048f800 WARN GST_URI gsturi.c:675:gst_element_make_from_uri: opentoksinkremote0 didn't accept URI 'opentok-remote://?key=&token=': OpenTokRemoteLaunchFailed
Error! Missing element opentoksink

Furthermore the last error is not really correct and is the only thing you'll see without setting GST_DEBUG.

@philn
Copy link
Member

philn commented Aug 30, 2023

As mentioned in the README of opentok-rs: For now the only supported platform is Linux and 2.19.1 is the only supported version.

You seem to use version 2.25?

@jaques-sam
Copy link
Author

Yeah, I updated to see if there is a difference. It's the same with 2.19.

 Running `target/debug/examples/publisher --api-key <hidden> --session-id <hidden> --token <hidden> --remote`

*********************** OpenTok Linux SDK ****************************
**** Version/Revision: linux_llvm-2.19.1/7b24b80eb36da92f16c39e3cfee55fd2b4eef6aa
**** Library built on: Apr 15 2021
**** Copyright 2021 TokBox, Inc.
**** Licensed under the Apache License, Version 2.0


0:00:00.120586159 64268 0x557ecc663b30 WARN adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.121416809 64268 0x557ecc663b30 WARN adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.122139761 64268 0x557ecc663b30 WARN adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.274008052 64268 0x557ecc663b30 WARN GST_REGISTRY gstregistrybinary.c:552:gst_registry_binary_check_magic: Binary registry magic version is different : 1.3.0 != 1.12.0
0:00:00.276342933 64268 0x557ecc663b30 WARN GST_URI gsturi.c:676:gst_element_make_from_uri: opentoksinkremote0 didn't accept URI 'opentok-remote://?key=&token=': OpenTokRemoteLaunchFailed
Error! Missing element opentoksink.

Maybe it's related to opentok-rust/opentok-rs#3.

@philn
Copy link
Member

philn commented Aug 30, 2023

Error! Missing element opentoksink.

did you build it? is GST_PLUGIN_PATH correctly set? when you run gst-inspect-1.0 opentoksink do you see anything? is ldd path/to/libgstopentok...so reporting not-found libraries?

@jaques-sam
Copy link
Author

gst-inspect-1.0 opentoksink works, it gives me the plugin details.
ldd shows all libs as existing.

But this is normal as you can see WARN GST_URI gsturi.c:676:gst_element_make_from_uri: opentoksinkremote0 didn't accept URI 'opentok-remote://?key=&token=': OpenTokRemoteLaunchFailed

Error! Missing element opentoksink. just seems like the wrong error message...
Can you try it out? Is fairly fast to see.

Could it be that the stream-id became necessary in the uri?
Another piste could be: opentok-rust/opentok-rs#3.

@philn
Copy link
Member

philn commented Aug 30, 2023

Sorry I'm not involved in this project anymore. Maybe @thiblahute can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants