Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time to access to three.js objects #157

Open
yichunk opened this issue Nov 23, 2018 · 0 comments
Open

Time to access to three.js objects #157

yichunk opened this issue Nov 23, 2018 · 0 comments

Comments

@yichunk
Copy link
Contributor

yichunk commented Nov 23, 2018

Hi, thanks for the plugin!

I would like to add some objects into my pano video through vr-player's three.js objects

I did this, and the console output is undefined.

<script>
var player = videojs('my-player');
player.vr({projection: 'equirectangular'});
player.ready(function(){
  console.log(this.vr().camera);
})
</script> 

However, if I access the player through inspection tool after the player is rendered in the browser, player.vr().camera is defined.

My question is, when can one assure the three.js scene is rendered by vr-player?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant