Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1146 Discussions

Unable to publish localstream using owt-client-javascript on owt-server

Faheem
Beginner
2,802 Views

I have successfully installed intel owt-server on ubuntu 18.04 as described in https://github.com/open-webrtc-toolkit/owt-server.

Now I am using owt-client-javascript (https://github.com/open-webrtc-toolkit/owt-client-javascript) conference sample to initiate conference calls.

But the stream is not being published. it stuck's at the conference.publish() promise that has no response. browser only shows local-stream while remote-stream is undefined.

Server Side logs

3 rooms in this service.

sampleRoom Id: 60559c62eadc1f2b4ab9ba7c

GET / 304 10.831 ms - -

GET /scripts/index.js 304 2.627 ms - -

GET /scripts/rest-sample.js 304 2.136 ms - -

GET /scripts/owt.js 304 0.962 ms - -

POST /tokens/ 200 1642.836 ms - 256

client-side logs are

Streams in conference: 1

2 Participants in conference: 1

owt.js:9 2021-03-24T14:03:12.176Z Empty candidate.

owt.js:9 2021-03-24T14:03:13.144Z ICE connection state changed to checking

owt.js:9 2021-03-24T14:03:13.144Z Remote stream added.

owt.js:9 2021-03-24T14:03:13.145Z Remote stream added.

owt.js:9 2021-03-24T14:03:28.166Z ICE connection state changed to disconnected

0 Kudos
7 Replies
5hiva
Novice
2,767 Views

Hi, Faheem. I'm also stuck with the same problem. Have you been able to figure out a solution? Pls share any learnings you've. Thank you.

0 Kudos
Faheem
Beginner
2,758 Views

@5hiva Have you followed all steps mentioned in conference sample ReadMe file?

How to run conference sample

  1. Run `npm install`.
  2. Edit `samplertcservice.js`. Find `icsREST.API.init`, replace service ID, service key and REST server URL with the correct values.
  3. Copy your SSL server certificate to cert/certificate.pfx.
  4. Run `initcert.js` to generate a keystore file which contains encrypted SSL server's passphase.
  5. Run `node samplertcservice.js` to start conference sample. By default, it listens on port 3001(insecure) and 3004(secure).
  6. Open a browser and navigate to http://hostname:3001/ or https://hostname:3004/.

I am unable to figure out how to perform step 3 and 4. if you do plz let me know.

also share your email address with me plz.

0 Kudos
5hiva
Novice
2,751 Views

Hi, Faheem.

Yes, completed all the steps including 3 & 4. 

The problem I'm facing is when I got to my subdomain as in example: https://abc.hostname:3004/ I can see 1 of the 2 videos. If we do it correctly it should show 2 videos.

Sure, I'm happy to collaborate and see if we can help each other and fix this issue! pls share your email or skype, I'll ping you.

 

Regards!

 

Faheem
Beginner
2,747 Views

yes it only show local stream and local stream is not being published so it is unable to find remote stream at other end.

my email faheemshahiiui@gmail.com

0 Kudos
5hiva
Novice
2,733 Views

yes, that's the main issue.

I've sent you an invitation on hangout, pls add me.

0 Kudos
Faheem
Beginner
2,756 Views

@5hiva Not yet but I believe that if we work on it together we can do it.

Have you followed all steps mentioned in conference sample ReadMe file?

How to run conference sample

  1. Run `npm install`.
  2. Edit `samplertcservice.js`. Find `icsREST.API.init`, replace service ID, service key and REST server URL with the correct values.
  3. Copy your SSL server certificate to cert/certificate.pfx.
  4. Run `initcert.js` to generate a keystore file which contains encrypted SSL server's passphase.
  5. Run `node samplertcservice.js` to start conference sample. By default, it listens on port 3001(insecure) and 3004(secure).
  6. Open a browser and navigate to http://hostname:3001/ or https://hostname:3004/.

I am unable to figure out how to perform step 3 and 4. if you do plz let me know.

also share your email address with me plz.

0 Kudos
sKamesh
Beginner
2,116 Views

Hi Faheem/@5hiva, I am also facing same issue when i tried configuring the OWT 5.0 version.

Please share me the resolution steps

Thanks in Advance,

 

0 Kudos
Reply