videojs / videojs-vr

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

undefined - player.vr().cameraVector; #150

Open atgillette opened 5 years ago

atgillette commented 5 years ago

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.

  1. var player = videojs('my-video');
  2. player.vr().cameraVector;

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.

sarthak-chakraborty commented 4 years ago

I am having the same issue. Any updates?

bunday commented 3 years ago

So far, I figured that as you initialize the videojs these objects might be unavailable.

Here is what I did:

filakhtov commented 2 years ago

A correct way to do this these days would be https://github.com/videojs/videojs-vr/issues/139#issuecomment-1028703034