Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
2
Question by amr nasr · Jul 26, 2010 at 09:28 PM · videoplaying

Playing a Video Trailer introduction for a Game

Can someone explain in detail how to make a video file to play in the begining of the game and after it finishes playing it will load the next level which is probably the Main Menu?

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by jashan · Jul 27, 2010 at 09:49 AM

This forum posting should help you get started: video intro

From the documentation: MovieTexture

Another forum posting that should help: Loading Level After Video Played

If you're using Application.CanStreamedLevelBeLoaded you need to be careful to have the scene you're checking (your main scene) also available in the build settings (otherwise this will always fail).

The solution with checking if the video is still playing should work fine ;-)

So, to sum it up (and add some detail):

  1. In your "trailer scene"; have a game object with a script attached that starts playing the video in the Start() method
  2. After the video has started, check whether it is still playing - when it's no longer playing, use Application.LoadLevel to load your main menu
  3. Display the video using UnityGUI (as in the above mentioned forum posting)

That should be it ;-)

Other relevant postings that might be helpful: Playing videos in the GUI, How do I play a full screen video? ... for any iPhone users that run into this question - on Unity iPhone, things work a little differently: how integrate video before menu in unity iphone game

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
avatar image
1

Answer by psykojello2 · Nov 13, 2015 at 12:10 PM

I know this was asked in 2010, but for anyone searching in 2015, you can use : Handheld.PlayFullScreenMovie() to play a video file on mobile.

Comment
Add comment · Show 3 · 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 thehobbit123 · Mar 26, 2016 at 06:26 AM 0
Share

@psykojello2 please help me in play an alpha channel video. i am just beginner and played a normal video on target.

avatar image psykojello2 · Mar 26, 2016 at 09:35 AM 0
Share

Unfortunately I know nothing about playing an alpha channel video. It would be better to ask a question directly on the answers forum. Good luck!

P.S. I'm not sure if you can play alpha video on mobile, but I could be wrong.

avatar image Yuzuke · Jun 22, 2017 at 01:14 AM 0
Share

sadly that doesn't work for me anymore... http://answers.unity3d.com/questions/1368774/handheldplayfullscreenmovie-wont-work.html

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How to play video on Windows without Pro version 0 Answers

WebGL VideoPlayer only Plays Once 0 Answers

Video Ads not showing correctly on IOS 1 Answer

Flip UV x for renderer _MainTex that video player plays to 0 Answers

VideoPlayer ios StreamingAssets black render 1 Answer


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