Open atgillette opened 6 years ago
I am having the same issue. Any updates?
So far, I figured that as you initialize the videojs
these objects might be unavailable.
Here is what I did:
player
variablethis.player = videojs('my-video-id');
in a functionthis.player.vr({ debug: true, projection: '360' });
console.log('cameraVector', this.player.vr().cameraVector);
A correct way to do this these days would be https://github.com/videojs/videojs-vr/issues/139#issuecomment-1028703034
Description
Briefly describe the issue. Include a reduced test case.
I'm not able to get the camerVector object from player.vr();
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Results
Expected
Please describe what you expected to see.
cameraVector object
Actual
Please describe what actually happened.
undefined
Error output
If there are any errors at all, please include them here.
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
what version of videojs does this occur with? videojs - 1.0.0 videojs-vr - 1.5.0
browsers
what browser are affected?
OSes
what platforms (operating systems and devices) are affected?
plugins
are any videojs plugins being used on the page? If so, please list them below.