Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

RTMP Embedding Issues


Hello, I am having issues embedding my rtmp livestream into a local html file.

I've tried embedding just local video and the video plays back fine and I tried using the embedding code wizard and it connects and previews the stream fine but as soon as I copy that same code into my html file it just says

"Error Loading Player: Could not load player configuration"

If I change the code to file: 'test.mp4' the video I have plays fine and if I try the rtmp address on the websites code builder the preview of the live stream loads fine.

Here is a sample of my basic code.

<!DOCTYPE html>
<head>
<script src="http://jwpsrv.com/library/xxxxxxxxxxx.js"></script>
<script type="text/javascript" src="jwplayer.js"></script>
</head>
<body>
<div id='playerWkcbfuPLTkRO'></div>
<script type='text/javascript'>
jwplayer('playerWkcbfuPLTkRO').setup({
file: 'rtmp://192.168.0.18/live/test',
width: '1280',
height: '720',
autostart: 'true'
});
</script>
</body>
</html>

Any help would be greatly appreciated

8 Community Answers

Andrew

JW Player Support Agent  
0 rated :

If this is currently unconnected to the internet, this setup will not work. We do require an internet connection to properly use the player.

theinzane

User  
0 rated :

I am connected to the internet I just have the html file on my desktop containing all the jwplayer files and the html file.

I have people stream to my rtmp server and would like to be able to place all of their different streams all into one html page to be viewed simultaneously.

I figured I should just begin with one rtmp stream and get that working first before I begin adding multiple to the html file.

theinzane

User  
0 rated :

I would like to reiterate that I am able to play video's no problem with the code if I substitute the file name but as soon as I add the rtmp live stream I get the error.

Andrew

JW Player Support Agent  
0 rated :

Are all of your jwplayer files located in the same directory? (jwplayer.js, html5, and flash) If you could put a web page out there for me to look at, I can assist further.

jherrieven

User  
0 rated :

@theinzane

What Andrew is failing to point out is that you will also need to be running on a webserver if you are rendering the Flash player - which you will be given it is an "rtmp" source.

Whilst loading the player from the file system does work if rendering the html5 player, you need to modify the Flash security settings in order to get this to work with Flash - and only if you are hosting ALL the files locally.

Given you are initiating a cloud hosted player, you'll also need a "crossdomain.xml" configured allowing "jwpcdn.com" access to your server.

James Herrieven

Andrew

JW Player Support Agent  
0 rated :

Indeed. If you’re setting this up on a local server, you’ll need to use a local host of some sort.

theinzane

User  
0 rated :

thanks, I have the html file on the same pc as the server that is hosting the rtmp server but unfortunately the rtmp server is running on a virtualization of ubuntu.

Thanks for your help.

Any chance there is a crash course link you can provide me on how to modify the flash security settings?

Chris

Andrew

JW Player Support Agent  
0 rated :

Hi Chris,

Please take a look here:
support.jwplayer.com/customer/portal/articles/1403679-crossdomain-file-loading

This question has received the maximum number of answers.