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

ViroSpinner w/Viro360Video #4

Closed
ashtonlance opened this issue Mar 27, 2017 · 2 comments
Closed

ViroSpinner w/Viro360Video #4

ashtonlance opened this issue Mar 27, 2017 · 2 comments

Comments

@ashtonlance
Copy link

With the 360Video, there are only a few callbacks. I really wanna use the ViroSpinner, to showing that the video is loading when changing scenes but there's not a callback method that seems to be very useful. For instance, the Viro360Image has callbacks for onLoadStart and onLoadHide. Unless there's another way you'd suggest hiding the Spinner once the video begins to play?

Thanks!

@radvani
Copy link
Contributor

radvani commented Mar 27, 2017

Hi! For the time being, you can try using the onUpdateTime callback on Viro360Video. This callback is invoked each time the video progresses one second. You can use it to hide your spinner when the video playback reaches 1 second in. Let us know if this works for you; we'll evaluate adding some more callbacks to make this easier.

@ashtonlance
Copy link
Author

@radvani
This worked pretty well - I ended up having to put a delay timer on the Update callback because it was still being called immediately. Thanks!

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

2 participants