Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by VishnuAbhrapudi · Aug 02, 2017 at 07:53 PM · video streaming

Video Player Performance is poor on Hololens

I am trying to play a video on 3D plane. When tried to view the video on Hololens the video fame rate is inconsistent and the audio is not proper. Using Unity Version 5.6.2f1.

Repro steps: 1. Add Video Player to a 3D plane. 2. Attach VideoClip to the player. 3. Build the project and run in Hololens.

Is there any solution or fix for this issue?

  • Code:

IEnumerator playVideo() { videoPlayer = gameObject.AddComponent(); audioSource = gameObject.AddComponent();

     videoPlayer.playOnAwake = false;
     audioSource.playOnAwake = false;
     audioSource.Pause();

     videoPlayer.clip = VideoClipToPlay;
     videoPlayer.source = VideoSource.VideoClip;

     videoPlayer.audioOutputMode = VideoAudioOutputMode.AudioSource;

     videoPlayer.EnableAudioTrack(0, true);
     videoPlayer.SetTargetAudioSource(0, audioSource);

     videoPlayer.Prepare();

     //Wait until video is prepared
     WaitForSeconds waitTime = new WaitForSeconds(1);
     while (!videoPlayer.isPrepared)
     {
         Debug.Log("Preparing Video");
         yield return waitTime;
         break;
     }

     Debug.Log("Done Preparing Video");
    
     image.texture = videoPlayer.texture;

     //Play Video
     videoPlayer.Play();

     //Play Sound
     audioSource.Play();

     Debug.Log("Playing Video");
     while (videoPlayer.isPlaying)
     {
         Debug.LogWarning("Video Time: " + Mathf.FloorToInt((float)videoPlayer.time));
         yield return null;
     }
     Debug.Log("Done Playing Video"); 
 }




Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image PanBakos · Sep 13, 2017 at 10:40 AM 0
Share

I am also facing similar issues. The video seems to play fine but the audio is stuttering. Did you find a solution to this?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by cQuence · Oct 02, 2017 at 09:35 AM

I'm using almost the same algorithm and I dont have problems with video. So only thing that comes to mind is that you didn't set Quality settings to lowest for UWP. If that doesn't work try overwritting Quality settings on Video asset to even lower quality. Or try to use different video to see if problem is in video format or size. I hope this helps.

Regards, Erik

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

69 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to stream video from link for Standalone Windows build 0 Answers

Updating a texture with raw image data every frame 0 Answers

Not allowed to load local resource error while uploading a video from local file 0 Answers

How to view IP camera on HoloLens? 1 Answer

How do you let the player use their own videos? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges