Switch/Close stream

Issues when playing live broadcasts with Unreal HTML5 MSE player on a web page

Re: Switch/Close stream

Postby mirek » Sat Jan 06, 2018 4:18 am

If there is no way to run mixed content, would you be so kind to send me steps to create valid PEM files for UMS?
I have CRT, PFX and KEY files of certificate I am using for this domain.
Thank you
Mirek
mirek
 
Posts: 0
Joined: Thu Jan 04, 2018 11:28 am

Re: Switch/Close stream

Postby admin » Sat Jan 06, 2018 10:00 am

In the address bar of Chrome, on the right side, you will see a small shield sign, and in case of https webpage, it will tell you that mixed content wasn't allowed and will offer you to run "unsecure scripts". Once you do that, the webpage will play unsecure websocket streaming just fine. However, you will need to tell all users to do it and there is no way you can automate it.
More info here: https://productforums.google.com/forum/ ... owusOzFs_A
So upgrading to secure websockets seems the best solution.

Creating .PEM files: you can do it youself with OpenSSL and also with some online services:
https://www.sslshopper.com/ssl-converter.html
https://knowledge.geotrust.com/support/ ... cale=en_US

One more thing: the player on your webpage shows timestamps in incorrect places; as per our FAQ, you need to host it in iframe:
http://www.umediaserver.net/umediaserver/faq.html
"Unreal HTML5 player embedded in my webpage shows elements in wrong places.
If your webpage defines styles with css style sheets then the Unreal HTML5 player element will inherit these styles and may not display certain items correctly. In this case you need to embed the Unreal HTML5 player in iframe. So your webpage will have an iframe that refers to another webpage running the player, for example: <iframe src="http://mywebsite/player1.html" frameborder="0" scrolling="no" width="900" height="700"></iframe>"
admin
Site Admin
 
Posts: 1039
Joined: Fri Aug 21, 2009 10:13 am

Re: Switch/Close stream

Postby mirek » Sat Jan 06, 2018 11:11 am

You are right - using button to allow mixed content causes stream to run.
So I need to create valid PEM files - will use your recommendations.

What do you mean by "timestamps in incorrect places"?
I don't see anything wrong. May I ask you to take screenshot and mark wrong placing?

Thank you
Mirek
mirek
 
Posts: 0
Joined: Thu Jan 04, 2018 11:28 am

Re: Switch/Close stream

Postby admin » Sat Jan 06, 2018 1:17 pm

I mean the time marks when you hover the mouse over the timeline (slider), in Chrome, with
http://www.multimedia-software.cz/cs/kamery
admin
Site Admin
 
Posts: 1039
Joined: Fri Aug 21, 2009 10:13 am

Re: Switch/Close stream

Postby mirek » Sun Jan 07, 2018 4:39 am

I have troubles with creating valid PEM files.
I understand you cannot help me with with it.
It would be great if you can give us simple step by step documentation for creating valid PEM files from standard web server certificates - e.g. LetsEncrypt.
As more and more web sites move to HTTPS, I think more a more developers meet this problem.
Just for sure: What port should I call for secure web socket connection? 5119 or 443?
Mirek
mirek
 
Posts: 0
Joined: Thu Jan 04, 2018 11:28 am

Re: Switch/Close stream

Postby admin » Sun Jan 07, 2018 1:32 pm

For secure web socket connections you should use the port that is configured on the Media Server for secure connections, by default it is 443.
You have mentioned before that you have changed that port to 445, so it is 445 for you.
admin
Site Admin
 
Posts: 1039
Joined: Fri Aug 21, 2009 10:13 am

Re: Switch/Close stream

Postby mirek » Sun Jan 07, 2018 2:05 pm

Hello,
on port 5119 i get: unreal_html5_player_script_v2.js:1 WebSocket connection to 'wss://ca.mmsw.cz:5119/mmsw_rozhledna_milir' failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR

on port 445(changed from 443 and allowed in firewall) I get: unreal_html5_player_script_v2.js:1 WebSocket connection to 'wss://ca.mmsw.cz:445/mmsw_rozhledna_milir' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

Mirek
mirek
 
Posts: 0
Joined: Thu Jan 04, 2018 11:28 am

Re: Switch/Close stream

Postby admin » Sun Jan 07, 2018 2:56 pm

Why are you trying port 5119? It's the port 445, if you changed it from 443 to 445.
Do you have anything in the application event log on the server computer?
This error, however, simply indicates that browser cannot connect to port 445.
So if the certificate was incorrect, the Media Server will not listen on port 445 and application event log entry will be logged;
otherwise it will listen on port 445, and it's simply a firewall issue so that external browser cannot connect to port 445.
admin
Site Admin
 
Posts: 1039
Joined: Fri Aug 21, 2009 10:13 am

Re: Switch/Close stream

Postby mirek » Sun Jan 07, 2018 3:13 pm

I am trying everything :-)

I cannot find any record in windows log as well as in UMS log.

The firewall should be correct - all ports (445, 5119 and 5130) for both TCP and UDP are allowed in two records.

Thanks
Mirek
mirek
 
Posts: 0
Joined: Thu Jan 04, 2018 11:28 am

Re: Switch/Close stream

Postby admin » Sun Jan 07, 2018 5:10 pm

1. Check application event log.
2. Can you telnet from outside to port 445?
3. Does webpage with secure sockets work on the server itself, so no firewalls are involved?
admin
Site Admin
 
Posts: 1039
Joined: Fri Aug 21, 2009 10:13 am

PreviousNext

Return to Playing with HTML5 MSE Player

Who is online

Users browsing this forum: No registered users and 1 guest

cron