Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How play to video. Handheld?, and what format would I use?

Discussion in 'Windows' started by juliancruz, Feb 6, 2014.

  1. juliancruz

    juliancruz

    Joined:
    Feb 18, 2013
    Posts:
    25
    Hi, I try to use this method, because it works on same project for iOS and Android, but now en Windows Phone, nothing happens, and I don't understand if is a problem of the format or the execution the method.

    Handheld.PlayFullScreenMovie (path, Color.black, controlMode, FullScreenMovieScalingMode.AspectFit);
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Hi,

    this function is not implemented on WP8 yet. Until then, you'll have to use a plugin to replay video - either through XAML or Windows Media Foundation.
     
  3. juliancruz

    juliancruz

    Joined:
    Feb 18, 2013
    Posts:
    25
    ok thanks other question, do you know, which format should I use?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Standard formats should work: .mp4, .wmv, etc.
     
  5. musikit

    musikit

    Joined:
    Jan 30, 2012
    Posts:
    160
    Tautvydas Zilys,

    This may be thread hijacking and if it is i do appologize. Was there a technical reason that Handheld movie player and the movie texture were given back seat on windows phone 8 and on windows store?

    I understand that this function may not be a high priority for your team however when you are a developer that has made ios/android games and are now porting to windows store and windows phone, this drasically slows down your port time. When if ever can we expect Unity to port the handheld movie player to windows store and windows phone 8?
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Movie texture was never given a backseat. Actually, Windows Phone 8 is the only phone that supports it - neither Android nor iOS does it AFAIK. However, since it's very resource intensive, it's not really a suitable way to replay high resolution videos, since phones do not have powerful enough CPUs.

    As for Handheld.PlayFullScreenMovie() - I understand that can be frustrating, and we're working towards fixing it, but I can't give you concrete time of when it will be available. After all it comes down to priorities and up until very recently, there were things that had higher priority.
     
  7. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    So you gave up on the Fix, dont understand what you mean?
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Handheld.PlayFullscreenMovie() will work on Windows Phone and Windows Store Apps in Unity 5. Until then, you'll have to implement the functionality yourself.
     
    sadegh93 likes this.
  9. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Great thank you for making this clear - I have Unity 5b11 now, but its useless to me until the Beta 4.6 GUI features are all added to the next beta.
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    One correction: that changeset didn't make it to 5.0b11. It will be present from 5.0b12 onwards :).
     
    MrEsquire likes this.
  11. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Hi Tautvydas,

    Currently I'm using Unity 4.6 and trying to make a build for Windows Phone 8 (not 8.1)

    What is the best option to do or asset to use, I do not wish to manually edit code within Visual Studio but would prefer within Unity and Mono.

    Any advice as this one is still annoying me :)