• 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
Question by missingno · Mar 18, 2014 at 07:59 PM · androidaudiovideoplayfullscreenmovie

Play audio during fullscreen movie playback

Hi,

I'm using Handheld.PlayFullScreenMovie to play a video file in my game, and I need to be able to play music in the background while the video is playing. I tried just playing the music before starting the video but it doesn't keep playing and I can't find any information about doing this.

Will this even work ? or is there a different way ? (short of re-encoding all the videos with the music added)

Thanks.

Comment

People who like this

0 Show 0
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

1 Reply

  • Sort: 
avatar image
Best Answer

Answer by eightbitstev · Mar 18, 2014 at 10:34 PM

Straight from the documentation...

Calling this function will pause Unity during movie playback. When playback finishes Unity will resume.

I had a problem with this as well. The only way around this I could see would be to use a movie texture on a 3D plane in your scene so you can handle playing back the movie and the audio clip simultaneously. If you're going super serious mode, I suggest using a plugin like the AVPro plugins from RenderHeads. They've worked great for me in the past and they offer wonderful support.

EDIT: Alternatively, you could re-encode your videos with the audio you want. It sounds like you're trying to avoid that though. :)

Comment
missingno

People who like this

1 Show 1 · 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
avatar image missingno · Mar 19, 2014 at 01:57 PM 0
Share

I figured as much. I knew that Unity paused, but I was hoping there was some way to start audio and keep it going even after pausing or something.

I'm having the videos re-encoded this morning, it seems like the only (and easiest) way, oh well. Thanks.

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

21 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

Related Questions

video-audio not playing in build (i tried webgl and android) 0 Answers

Playing video from Streaming Assets folder is choppy (android) 1 Answer

Download while playing video on android/ios 0 Answers

Handheld.PlayFullScreenMovie doesn't work 0 Answers

How to get full audio sample data from the VideoClip 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