sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.63k stars 2.93k forks source link

Vimeo stops loading. #474

Closed Parkseokje closed 6 years ago

Parkseokje commented 7 years ago

Youtube works well, but Vimeo stops on setup.

layout.hbs :

  <script src="/vendor/plugins/requirejs/require.2.3.2.js"></script>  
  <script src="/javascripts/app.js"></script> <!-- requirejs config file -->

  {{#if (isEquals current_path 'video')}}
  <script src="{{host}}/javascripts/video.js"></script>
  {{/if}}

app.js :

'use strict';
requirejs.config({
    paths: {
        jquery : ['/vendor/plugins/jQuery/jquery-2.2.3.min'],
        jqueryCookie : '/vendor/plugins/jquery_cookie/jquery.cookie.1.4.1',
                plyr: '/vendor/plugins/plyr/src/js/plyr' // v2.0.11

video.js :

'use strict';

requirejs(
    [
      'jquery',
      'plyr'
    ],
    function (jQuery, plyr) {
        var $ = jQuery,
            player_options = {
              autoplay: false,
              debug: true
            },
            player = plyr.setup($('.js-player'), player_options);  
..

last console message : [Plyr] event: setup Object {}

please help. thanks.

sampotts commented 6 years ago

Closing this one as I think it's fixed but feel free to re-open if not solved in v3 👍