
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
}
});