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

[BUG: v4.6.4] Handheld.PlayFullScreenMovie doesn’t work on Android 4.1 and 4.3 OS

Discussion in 'Android' started by OnTopStudios, Feb 11, 2015.

  1. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    Since I’ve updated unity to 4.6.2, Handheld.PlayFullScreenMovie stopped working for Androids OS that are not 4.4 or 5.0.

    Try and play a mp4 file on mobile device with an Android 4.1 or 4.3 with a project build with Unity 4.6.2.
    I've tested with mobile devices with an Android 4.4 and it works fine (couldn't test other versions because I don't have devices running those versions). This happened right after I updated Unity to 4.6.2.

    Cheers
     
  2. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    Does anyone else have this problem?
    Is anyone from the Unity dev team able to tell me if this bug is fixed?
     
  3. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Try maybe 4.6.2 patch 2 ?
     
  4. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    Yes I did and no luck :(
    Does anyone got the same problem?
    Is anyone from unity confirm that this bug is fixed?
     
  5. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
    Which Unity version did you upgrade from? I don't think anything related to PlayFullScreenMovie was fixed recently. Did you file a bug report?
     
  6. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    Yes I filled a bug report a week ago but no reply yet. Report nº: 670850

    I’ve updated from 4.6.2 patch 1 to patch 2.
     
  7. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
    Can you please add a small Unity project to reproduce the problem with video file? Otherwise the case probably won't pass the initial filter.
    And please add as much information as possible (at which Unity version did it still work, which devices are you using etc.).
     
  8. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    I’ve added all the info in the report. But I’ll say it here too.

    Happened after updating to Unity 4.6.2. I’ve used various Android Devices (Samsungs, Xperias, Hawuaiii, LG) and happened if they were running Android 4.1 and 4.3 [probably doesn’t run before 4.4 version] and didn’t happened on Android 4.4 and 5.0 [probably runs OK after Android 4.4])

    Doesn’t need any special project. Just need to call Handheld.PlayFullScreenMovie nothing more.
     
  9. mr-gelmir

    mr-gelmir

    Joined:
    Dec 4, 2012
    Posts:
    4
    This might seem like a stupid question, but do you have an Android pro license? I recently ran into the same issue at work. If you only have an iOS pro licence, unity doesn't display any kind of warning concerning Handheld.PlayFullscreenMovie if you build for Android.
     
  10. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    Yes I have. If I hadn’t pro license for android I couldn’t have it work for Android 4.4+ versions.
     
  11. Orfen

    Orfen

    Joined:
    Aug 3, 2013
    Posts:
    8
    I think im in the same boat, using Unity 4.6.3p1 for Mac OSX 10.9. I have tried different devices, plugins that use the android mediaplayer, empty projects, about 15 different rtsp streams and still no luck. With Handheld class, the logcat throws an error like this
    then proceeds to display a black screen(playing no video/audio).The url doesn't seem to be very important, with every url i've tried the error is the same. After a touch input on the device, the logcat shows the following:


    The same error(-38,0) occurs even with Prime31's etcetera plugin.
    The devices i tested on run 4.1.2 and 4.4.2
     
    Last edited: Mar 13, 2015
  12. Orfen

    Orfen

    Joined:
    Aug 3, 2013
    Posts:
    8
    Just an update, i have made a mini movie player in Java so i can test the url i've been trying to open natively, and it works fine with the default android MediaPlayer class. This is clearly an issue in Unity implementation.
     
  13. cjrichards

    cjrichards

    Joined:
    Jun 28, 2012
    Posts:
    2
    I'm having the same issue. Any chance you could share the movie player you made? I don't have much experience in building plugins yet.
     
  14. Orfen

    Orfen

    Joined:
    Aug 3, 2013
    Posts:
    8

    I didn't make a plugin for Unity, i just made a very basic native java media player to test if the stream plays on the default media player class of android. We ended up using Application.OpenUrl and prompt the user to select an external video player.
     
  15. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    I only get this error on devices running Android OS 4.0, 4.1, 4.2, 4.3 (JellyBean). On devices running Android OS 4.4 and 5.0 (KitKat and Lollipop), the video works fine.

    Does anyone from unity can update us on this bug fix?

    Cheers,