sampotts/plyr

The cdn version of Vimeo's player.js is not appropriate for a <script> tag on a require.js-using site

Open

#420 opened on Nov 10, 2016

View on GitHub
 (6 comments) (0 reactions) (0 assignees)JavaScript (2,856 forks)batch import
Help Wanted

Repository metrics

Stars
 (25,318 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Expected behaviour

Vimeo videos should play correctly

Actual behaviour

A Mismatched Anonymous Define Modules error fires. More info on that error: http://requirejs.org/docs/errors.html#mismatch

Basically, the UMD in player.js is simply not necessary for embedding via a script tag.

Environment

  • Browser: Chrome
  • Version: 54
  • Operating System: OSX
  • Version: 10.11.16

Steps to reproduce

  • Use Plyr.js on a site which uses require.js and load a Vimeo video.

Contributor guide