Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Play Video (.flv) in Unity 3D...

Discussion in 'Android' started by CingCpirit, Sep 23, 2011.

  1. CingCpirit

    CingCpirit

    Joined:
    Sep 21, 2011
    Posts:
    6
    hiii....
    Can Unity 3D embed and play a video (.flv)..?
    and how to do that...??

    please help me...:confused:
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    No you can not play flash movies. Flash is not supported in any form
     
  3. CingCpirit

    CingCpirit

    Joined:
    Sep 21, 2011
    Posts:
    6
    ouhh....hmmm,,,how about with another video format like .mp4 or .3gp...??
     
  4. _Petroz

    _Petroz

    Joined:
    May 13, 2010
    Posts:
    730
  5. CingCpirit

    CingCpirit

    Joined:
    Sep 21, 2011
    Posts:
    6
    thank u....
    hmm....how about streaming video from youtube via Unity3d...? can do that...?? #In Android
     
  6. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    No you can not do that in unity, on none of the platforms.

    You would need to use native platform movie playback capabilities for that when you are on mobile (on desktop you are completely out of luck)
     
  7. justinlloyd

    justinlloyd

    Joined:
    Aug 5, 2010
    Posts:
    1,680
    Create a DLL on top of OpenCV to read the video file and convert each frame to a texture that Unity can use. There are about a half-dozen ways to skin this cat using just OpenCV alone if you want to go all the way to creating your own video player inside of Unity3d. I believe there is an OpenCV addon (it may already now be part of OpenCV 2) that will decode FLV so pulling YouTube videos directly in to Unity3D should be a trivial matter. There are plenty of other video playback libraries out there you can make use of, just OpenCV comes to mind because we are using it for handling videos on a medical simulation project.
     
  8. CingCpirit

    CingCpirit

    Joined:
    Sep 21, 2011
    Posts:
    6
    What is OpenCV..?? can you explain more..?
    Really i need the way how to play an video in unity3d for android...i want to complete my project "augmented book". it's look awesome if can play video...
    please help me what i should to do...
     
  9. justinlloyd

    justinlloyd

    Joined:
    Aug 5, 2010
    Posts:
    1,680
    Yeah, sure, let me go to Google and type in "OpenCV" for you and then write up a report on what it does.
     
  10. Tseng

    Tseng

    Joined:
    Nov 29, 2010
    Posts:
    1,217
    What you were looking for is this :p

    http://lmgtfy.com/?q=OpenCV
     
  11. justinlloyd

    justinlloyd

    Joined:
    Aug 5, 2010
    Posts:
    1,680
  12. ashishpatel2448

    ashishpatel2448

    Joined:
    Jul 31, 2013
    Posts:
    3
    i m converted my flv video in .asf,.mp4 but its not show in unity for movietexture i'm using any video convertor for video convert.also im using unity3d pro 4.1.3 plz any body help.thank u
     
  13. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    Movie Textures are not supported on Android. Instead, full-screen streaming playback is provided using Handheld.PlayFullScreenMovie
    http://docs.unity3d.com/Documentation/Manual/VideoFiles.html