plyr.js:376 Uncaught TypeError: Cannot read property 'play' of undefined

Created on 27 Mar 2016  路  2Comments  路  Source: sampotts/plyr

I'm Using plyr to embed a video from youtube but when I initialize using plyr.setup(); always get the same error, I want the player to show the controls, I already load the svg file as the documentation says, but the error is blocking the controls visibility, how can i fix de error?????

All 2 comments

Fixed in the latest build. Thanks for reporting :+1:

I'm still getting this error, but only when I use the source method.

var player = plyr.setup('.js-media-player', {
        controls: [
            'play'
        ],
        html: controlsHtml
    })[0];

    player.source({
      type:       'video',
      title:      'Example title',
      sources: [{
          src:    '143418951',
          type:   'vimeo'
      }]
    });

html

<div class="plyr js-media-player">
     <div></div>
</div>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Generalomosco picture Generalomosco  路  3Comments

frumbert picture frumbert  路  3Comments

MTyson picture MTyson  路  3Comments

Zsavajji picture Zsavajji  路  3Comments

muuvmuuv picture muuvmuuv  路  3Comments