
Streaming a video onClick JWPlayer 7
<a href="#" onclick="jwplayer('VideoPlayer').load({file:'video.mp4',provider: 'rtmp',streamer:'rtmp://10.10.1.1/vod'}).play();">Title</a>
This use to work on jwplayer 6 and every other version. Version 7 isnt working.
Ive tried
<a href="#" onclick="playerInstance.load({file:'video.mp4',provider: 'rtmp',streamer:'rtmp://10.10.1.1/vod'}).play();">Title</a>
and many other ways to load the video, Ive changed the video embed to
<div id='VideoPlayer'>Loading the player ...</div>
<script type='text/javascript'>
var playerInstance = jwplayer('VideoPlayer');
playerInstance.setup({
file: 'rtmp://10.10.1.1/vod/mp4:video.mp4',
image: 'http://10.10.1.1/jwplayer7/video.jpg',
});
</script>
The RTMP is working, the player loads the default video, but when I click my linked video I get: Error loading media: File could not be played.
<a href="#" onclick='playerInstance.play()'>Toggle playback</a> does work, it allows the player to play a video with an external link.
I know the player is setup correctly and that the external play button will work. I also know the RTMP streaming is working correctly. I just dont know if my video is being loaded, or do I need to change the provider terminology.
Any help would be greatly appreciated.
Thanks