
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