Search code examples
javascriptfirefoxvimeovimeo-apivimeo-player

Vimeo doesn't show in Firefox 40: TypeError: e._video.currentFile is null


I embed vimeo video, and get this error in Firefox 40:

TypeError: e._video.currentFile is null

This is the code:

<script type="text/javascript" src="https://vimeo.com/api/oembed.json?url=https://vimeo.com/128202299&amp;api=true&amp;callback=embedVimeo"></script>
<script type="text/javascript" src="https://f.vimeocdn.com/js/froogaloop2.min.js"></script>

function embedVideo(data) {
  var iframe, player;
  $('#divVideo').html(data.html);
  iframe = $('iframe')[0];
  player = $f(iframe);
  player.api('play');
}

Solution

  • This error appears not to have the Flash plugin installed on Firefox because Vimeo only shows Flash Player on Linux and MacOS.