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 /
  • Help Room /
avatar image
0
Question by gss214 · Sep 06, 2015 at 04:40 PM · androidmovie

Simple script to play movie in android

already tried and tested a few scripts with Handheld.PlayFullScreenMovie but without success): someone has some functional script for this.

I have already created empty scene where the logo will play the game and then go to the menu, already have the logo in mp4!

I would be very grateful for the help!

Comment
Add comment · Show 2
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 iluqmansharif · Sep 18, 2017 at 11:30 AM 0
Share

@hexagonius How can I add UI button such as Skip button while playing the video on Android?

avatar image hexagonius iluqmansharif · Sep 18, 2017 at 11:54 AM 0
Share

That wasn't an answer and please ask a seperate question.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by hexagonius · Sep 06, 2015 at 05:11 PM

just the call should work. have you put the mp4 into StreamingAssets? Have you tried using the example code from the docs exactly as provided?

http://docs.unity3d.com/ScriptReference/Handheld.PlayFullScreenMovie.html

Comment
Add comment · Show 5 · 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 gss214 · Sep 06, 2015 at 05:29 PM 0
Share

no, how put in s$$anonymous$$$$anonymous$$gAssets? sorry, this is the first game for android I do!

avatar image hexagonius · Sep 06, 2015 at 06:24 PM 0
Share

all explained in the link ;)

avatar image gss214 · Sep 06, 2015 at 06:58 PM 0
Share

im create folder Strea$$anonymous$$gAssets and put my movie there. and this script

 using UnityEngine;
 using System.Collections;
  
 public class Intro$$anonymous$$ovie : $$anonymous$$onoBehaviour {
  
 void Start() {
 StartCoroutine(CoroutinePlay$$anonymous$$ovie());
     }  
  
 protected IEnumerator CoroutinePlay$$anonymous$$ovie() {
   Handheld.PlayFullScreen$$anonymous$$ovie ("finalandroid.mp4", Color.black, FullScreen$$anonymous$$ovieControl$$anonymous$$ode.CancelOnInput);
   yield return new WaitForSeconds(6.0f); //Allow time for Unity to pause execution while the movie plays.
   Application.LoadLevel("main$$anonymous$$enu");
     }
 }  

but my movie dont play ): what could it be?

thanks for help (:

avatar image hexagonius · Sep 06, 2015 at 08:09 PM 0
Share

only part I found was about the format.you sure one of these matches? :

H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. Note that B frames are not supported in the Baseline profile. $$anonymous$$PEG-4 Part 2 video (Simple Profile).

avatar image gss214 · Sep 06, 2015 at 08:18 PM 0
Share

the movie was exported using adobe premier as an h.264 format, 640x480 29.9 fps movie file. (i used a preset for android tablets phone devices 480p)

I looked if the video was playing on android, it seems that it appears but it goes very fast. $$anonymous$$y Video has 6 seconds duration

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

30 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

Related Questions

How can we add movie as a background for Android 0 Answers

Can i use Everyplay to record without upload 2 Answers

Load video from folder in VideoPlayer on Android 1 Answer

How to apply GStreamer Movie Texture 0 Answers

Handheld.PlayFullScreenMovie dont work, help 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