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

Loading a video on Click 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

3 Community Answers

dtrevino15

User  
0 rated :

Anybody have an idea?

Todd

JW Player Support Agent  
0 rated :

Haven’t tested this yet (since I am on the train at the moment) but try adding primary: ‘flash’ to your load() call. JW 7 does not load directly in Flash mode like JW 6 used to, so maybe this would help.

dtrevino15

User  
0 rated :

Todd, have tried everything I could think of but still not working.

Have you had a chance to test this?

This question has received the maximum number of answers.