You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, we're trying to set video.js and player.js on our WordPress install so we can meet requirements for being a embed.ly provider.
I have all of the sciprts correctly loaded, and I've added the simple adapter code:
videojs("#video_kgvid_0", {}, () => {
const adapter = new playerjs.VideoJSAdapter(this);
// ... Do other things to initialize your video.
// Start accepting events
adapter.ready();
});
Notice the #video_kgvid_0 tag is from a wordpress plugin that adds support to video.js, and also adds the scripts to the oembed page.
The full error:
Uncaught TypeError: a.on is not a function
at d.VideoJSAdapter.init (player-0.1.0.min.js:1)
at new d.VideoJSAdapter (player-0.1.0.min.js:1)
at b.videojs (oembed.js?ver=0.3.0:1)
at b.<anonymous> (video.js?ver=5.20.2:1)
at Array.forEach (<anonymous>)
at b.<anonymous> (video.js?ver=5.20.2:1)
at e (video.js?ver=5.20.2:1)
Hello, we're trying to set video.js and player.js on our WordPress install so we can meet requirements for being a embed.ly provider.
I have all of the sciprts correctly loaded, and I've added the simple adapter code:
Notice the
#video_kgvid_0
tag is from a wordpress plugin that adds support to video.js, and also adds the scripts to the oembed page.The full error:
And here you can see the page live.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: