Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[url]www.movie[/url] Texture Controls (Pause and Play)

Discussion in 'Editor & General Support' started by mercuryplutus, Jul 4, 2010.

  1. mercuryplutus

    mercuryplutus

    Joined:
    Jun 27, 2010
    Posts:
    158
    How would i go about creating some controls for streaming movie files so that the user can pause the movie and wait for it to buffer or in case they need to pause it for another reason.

    I want the controls to be on the 3d texture not the gui.
     
  2. mercuryplutus

    mercuryplutus

    Joined:
    Jun 27, 2010
    Posts:
    158
    Anybody have any advice on where to start?
    I'm thinking that i will have to overlay multiple planes 1 millimeter above the flat movie object.

    One plane each for the play, pause, current position and buffered position.

    Is there a better or easier way?
     
  3. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    There is an important thing to note: You can't get / set the position within the movie, you can play, pause and stop it basically and as you load it from WWW, ask for the www download progress for the stream preload progress ...

    but otherwise, I would likely use real 3D objects with box colliders for the fictive UI if it is true 3D, if it is always perpendicular to your view (so parallel the view plane) then GUITexture and the hittest
     
  4. mercuryplutus

    mercuryplutus

    Joined:
    Jun 27, 2010
    Posts:
    158
    bugger.

    Is it possible to get the total duration for a www.movie texture? I can calculate the basic position with a timer if i know this.

    3D objects sounds like a better idea.[/quote]
     
unityunity