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

self.play is not a function


I want to embed the JWplayer with vimeo. I know that JWplayer does not officially support Vimeo. There is extra libs which allow to use the vimeo, jwplayer.vimeo-3.0, it is working find in my localhost, but it breakes in the website.I am getting thsi error from VM 'self.play is not a function'.

Do you know what can be the problem?

Here is the code I am using.

in the head block
<script type='text/javascript' src='jwplayer.js'></script>
<script>jwplayer.key="my-key==";</script>

in body(also tried to put in the head)
<script type="text/javascript" src="jwplayer.vimeo-3.0.js"></script>

jwplayer("basic").setup({
flashplayer: "jwplayer.flash.swf",
width: 760,
height: 350,
primary: "flash",
html5player: "jwplayer.api.html5.js",
'playlist.position': 'right',
'playlist.size': '250',
listbar: {
position: 'right',
size: 250
},
/* advertising: {
client: 'vast',
tag: 'http://des.smartclip.net/ads?t=de&p=9372&pl=testc&test=ms_vast2&sz=400x320&rnd=[random]'
},*/
playlist: [
{ start: 0, file: "http://www.w3schools.com/html/movie.mp4", },
{ file:'http://dl.dropboxusercontent.com/s/mbzd7oe5yl11jjb/turcon.mp4', image: 'http://img22.myimg.de/tssbgc4e50.png', title: 'Turcon', width: '100%', aspectratio: '16:9'},
{ file: "http://vimeo.com/1132937.mp4", provider: "vimeo-3.0.swf", title: "Elephants Dream", author: "Blender Foundation", videoDuration: "10.54", image: "http://b.vimeocdn.com/ts/209/725/20972598_640.jpg" },
{ file: "http://vimeo.com/28103524.mp4", provider: "vimeo-3.0.swf", title: "Les chiens isolés", author: "CRCR", videoDuration: "6.32", image: "http://b.vimeocdn.com/ts/205/905/205905221_640.jpg" },
{ file: "http://vimeo.com/17922322.mp4", provider: "vimeo-3.0.swf", title: "Junkspace", author: "CRCR", videoDuration: 0.55, image: "http://b.vimeocdn.com/ts/130/627/130627553_640.jpg" },
{ file: "http://vimeo.com/16051959.mp4", provider: "vimeo-3.0.swf", title: "TODOR and PETRU", author: "CRCR", videoDuration: "2.45", image: "http://b.vimeocdn.com/ts/205/911/205911527_640.jpg" },
{ file: "http://vimeo.com/15160326.mp4", provider: "vimeo-3.0.swf", title: "Red River Bay", author: "CRCR", videoDuration: "1.07", image: "http://b.vimeocdn.com/ts/130/627/130627947_640.jpg" },

],
vimeo: {
//this is not needed for the javascript version
enableApiData: true
}
});

3 Community Answers

MisterNeutron

User  
0 rated :

Well, no one here has access to jwplayer.vimeo-3.0.js, or to jwplayer.api.html5.js, or vimeo-3.0.swf. In short, you've given us absolutely nothing to go on.

My crystal ball tells me that it's a Javascript problem. Or maybe a Flash problem. Or maybe the moon is in the seventh house.

jherrieven

User  
0 rated :

Firstly I'd say this is a question for "Electroteque Media" - the guys who produced this 3rd party plugin for JW Player.

Secondly I'd question whether you're using a paid version of the plugin or the demo version?

I suspect its the demo version, and I suspect you've not taken the time to read the documentation - otherwise you might have noticed the following at the bottom of the supporting page:

"This is a non expiring demo version of the plugin. Works only on your local machine on localhost or 127.0.0.1."

Todd

JW Player Support Agent  
0 rated :

I’ve seen videos hosted by Vimeo working in our player, but I guess it depends on the URL to your content. I tried loading one of your MP4 URLs (http://vimeo.com/28103524.mp4) in a browser but I’m not getting a video.

Do you have any Vimeo URLs that do load content?

This question has received the maximum number of answers.