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

livestream not working on LAN


This question is closed some where else on the forum, but there was no real answer in that dialog. I am using the embeded JW-Player and it works fine on the internet. I wrote a different web page with LAN address of the rtmp server, it comes up with the message that server cannot be found.
Below is the code for the page that works from the internet. How would I edit that so it would work on the LAN?
<DOCTYPE html>
<head>
</head>
<html>
<body>
<script src="//content.jwplatform.com/players/PK3gEjNI-2lz77Kxo.js"></script>
<div id=cover></div>
<script>
$(document).ready(function() {
jwplayer("cover").setup({
file: "rtmp://mydomain.com/live/stream", I have tried changing this to ('rtmp://LAN_HOST_IP/live/stream') but it does not work.
image: "/steve/images/sophisticated.gif",
height: 360,
width: 640
});
});
</script>

</body>
:</html>

1 Community Answers

Todd

JW Player Support Agent  
0 rated :

I would expect that to work as long as both your JW single-line embed and RTMP stream are accessible on the LAN. But why are you first using a single-line embed code for a video and player and then calling setup() again? Is the goal to have two videos and two players on the page?

Another suggestion would be to self-host the player library and any video source you want to load so the player does not need to make any network requests to the outside world.

This question has received the maximum number of answers.