having a trouble to 8443 WebSocket connection

Jieun

New Member
Hello,
I bought a monthly license of WCS and installed it running in cent OS.
I want to embed a player using RTSP stream to my website.

After the installation, I checked the admin page using 8444 port is normally opened,
but i can't play a video and found out an error message in console like this
when I clicked the play button:
1618228729407.png


i also checked
https://211.253.24.136:8443
is not normally opened with 'ERR_EMPTY_RESPONSE'

how can i solve this?
Your help will be appreciated.
 

Jieun

New Member
Hi, I already have SSL certifiacation so I have assigned certified domain to my server,
and the admin page (mystream.mycompany.com:8444) is normally opened.

But I failed importing my SSL certification (*.jks file format) in admin page,
with an error message "No certificate data found".
and 'admin/upload_public_certificates' request responses a message "No Body to decode".

What am i missing? I can't find a next step to solve this problem.
Thanks in advance!
 
Last edited:

Max

Administrator
Staff member
But I failed importing my SSL certification (*.jks file format) in admin page,
You should import SSL certificate and key file in PEM format. Certificate file should look like plain text file containing
Code:
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
and key file sholud look like plain text file containing
Code:
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
 

Jieun

New Member
Thanks! your advice saved me!
I imported my SSL certification as you mentioned, then creation web socket has no problem.
But I have another issue...
I played my video but flashphoner.js constantly occured an error
which is
"Uncaught (in promise) TypeError: Cannot set property 'muted' of null
at flashphoner.js:13198".

I tried Demo version of embed player using https://demo.flashphoner.com:8888/,
and it worked well.

What do i have to check or do something? Please help me
Thanks!
 

Max

Administrator
Staff member
I played my video but flashphoner.js constantly occured an error
which is
"Uncaught (in promise) TypeError: Cannot set property 'muted' of null
at flashphoner.js:13198".
If you're trying to play WebRTC stream in Safari browser, use the workaround described here
 

Jieun

New Member
Please read this step by step instruction. Is the problem reproducing in player-min example?
Good morning!
Thanks! I followed the instruction you gave,
and Yes here is the error log on chrome developer tools.

1618446910766.png


Please let me know what I need to do next.
Thanks!
 

Attachments

Max

Administrator
Staff member
Please make sure you're opening example page via HTTPS, not HTTP. WebRTC will not work in browser via HTTP.
Also, seems like player-min.js is not available by URL you're using to open it (error 404 means object to download is not found). Please check if the script is downloadable.
 

Jieun

New Member
Please read this step by step instruction. Is the problem reproducing in player-min example?
Hello,

I tried both
https://flashphoner.com/embedding-html5-rtsp-player-into-a-web-page/
and https://flashphoner.com/webrtc-ip-camera-rtsp-demo/,

But nothing works. (with no error message.)

I tested the demo player before purchasing monthly subscription like this:

https://demo.flashphoner.com:8888/embed_player?urlServer=wss://demo.flashphoner.com:8443&streamName=rtsp://'myStream url' &mediaProviders=WebRTC,Flash,MSE,WSPlayer

and it works well till now like this:
1618476658645.png




After the purchase & installation on server, I expected that I can replace the your demo url with mine like this:
https://mydomain:8888/embed_player?urlServer=wss://mydomain:8443&streamName=rtsp://'myStream url' &mediaProviders=WebRTC,Flash,MSE,WSPlayer

but it never worked.
"Uncaught (in promise) TypeError: Cannot set property 'muted' of null
at flashphoner.js:13198"
this script error,
OR
Just "FAILED" message at the bottom of the player
OR loading bar never disappear.

1618476823869.png



I checked browser opened via HTTPS, ports opening on installed server, etc.
What am i missing? I expect the exactly same result with demo version but it doesn't work.

Please give me your advice then I'll try on it.
Thanks.
 
Last edited:

Max

Administrator
Staff member
Make sure SSL certificates has been imported properly for your domain name. Security tab should be green. You can also send ssh access to server via this private form. We will check.

1618479490928.png
 

Jieun

New Member
Good morning!
I confirmed that the SSL certificates has been imported.

1618533079939.png



You can also send ssh access to server via this private form. We will check.
About this, I can't directly send you a access info because of the security policy of my company.
Instead I can give you a remote access to my laptop through Team Viewer. Is it available?
If it's ok with you, Please let me know when you're available.
My working time is 0:00 ~ 09:00 GMT 0

Thank you!
 

Max

Administrator
Staff member
Seems like WebRTC connection is not establishing to your server
1618539002535.png

Please check if media ports (30000-31000/udp by default) is opened on firewall/router and are available to connect from outside.
Look at the example of typical security group configuration working out of the box on AWS instance:
1618539238172.png
 

Max

Administrator
Staff member
The message in logs Stream name is already in use shows that stream is already published on server. Please check the server statistics page http://wcs:8081/?action=stat. If there is the stream with the same name, just restart WCS to stop publishing.
 

Jieun

New Member
THANKS!!!! now it works!
I have checked all the things from this page then reinstalled the WCS,
Now it works really well!

Appreciate for your support, it really helped me a lot.
Good day!
 
Top