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

Is there anyway to preload the video? #30

Open
Fire1nWork opened this issue May 29, 2019 · 6 comments
Open

Is there anyway to preload the video? #30

Fire1nWork opened this issue May 29, 2019 · 6 comments

Comments

@Fire1nWork
Copy link

Hi, We are using the this package in Unity to play some big videos for a university experiment. The issue we have is that, since the videos are really big(8k, uncompressed), there usually are several seconds for blackscreen before the video actually plays. We are trying to find a way, in Unity, to "pre-load" the video, but can't find any. We also tried to add a "Loading..." text to the camera (so that the text always follows the head movement), but it seems to be covered by the 360 video.
Can anyone help us on the "pre-load" issue? Or is there a way to bring the "Loading..." text to foreground?
We are quiet new to Unity and VR, so I'm very sorry if these questions sounds stupid....

@kyo8568131
Copy link
Contributor

Hi Fire1nWork,
I am not sure how you display 360 video, but there is a simple method: use the UVSphere.cs to generate a large inward sphere and display the video on it. So you could make sure the video is behind all the things in front of you.
For video part, 8K uncompressed video is quite large. If you would like to increase performance, I think you could profile first to find out the performance bottleneck. It could be decode, memory copy or Unity life cycle. If decode and memory copy take too much time, you could try to modify native decoder to use GPU decode.
Thanks.

@Fire1nWork
Copy link
Author

Fire1nWork commented May 30, 2019 via email

@kyo8568131
Copy link
Contributor

If your text is on a mesh, like quad, cube or something, it should not be blocked by the sphere(unless the sphere is too small). Or do you render text on a layer which would be blocked? Or do you use multiple cameras with incorrect order? Please check the text using. Thanks.

@chandanadittyo
Copy link

@Fire1nWork Have you solved the problem? I am working on the same issue but failed to solve the problem

@lockbox23
Copy link

I'm using the official VLC for Unity plug-in to play local and streaming video in the Vive Pro.

@chandanadittyo
Copy link

@lockbox23 are you using this for 360 videos?? and does it take time to load the video from URL??

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

4 participants