videojs / videojs-vr

A plugin to add 360 and VR video support to video.js.
https://videojs-vr.netlify.com/
MIT License
543 stars 145 forks source link

Uncaught TypeError: player.vr is not a function #223

Closed EtherLoda closed 4 years ago

EtherLoda commented 4 years ago

I use electron with react. And get Uncaught TypeError: player.vr is not a function.Anyone who solve it please help

componentDidMount() { // instantiate Video.js this.player = videojs(this.videoNode, { sources: [{ type: "video/mp4", src: "/video/silk.mp4", }], preload: "auto", // controls: true, autoplay: true, fluid: true, }, function onPlayerReady() { console.log('onPlayerReady', this) const player = this player.mediainfo = player.mediainfo || {} player.mediainfo.projection = '360' player.vr({ projection: 'AUTO', debug: true, forceCardboard: false }) }); }

VrPlayer.jsx:29 Uncaught TypeError: player.vr is not a function at l.onPlayerReady (VrPlayer.jsx:29) at l. (video.min.js:12) at Array.forEach () at l. (video.min.js:12) at video.min.js:12

EtherLoda commented 4 years ago

use the newest edition solve the problem

naren0021 commented 3 years ago

@ChenJanson can you let me know in which version this issue is resolved because facing this same issue and i am having 1.7.2 version installed

aaronpk commented 2 years ago

I just installed 1.8.0 and am also getting this error