Search Unity

Android apk don't play video from StreamingAssets

Discussion in 'Unity Build Automation' started by nicloay, Mar 30, 2015.

  1. nicloay

    nicloay

    Joined:
    Jul 11, 2012
    Posts:
    540
    I'm still trying to understand why cloud build don't play video using native player.
    If i build apk locally everything works. well.

    here is a log cat from device when error appears
    Code (CSharp):
    1. 03-30 11:49:01.583    129-27713/? E/DrmMtkPlugIn﹕ onOpenDecryptSession() : failed to parse dcf file.
    2. 03-30 11:49:01.606      130-130/? E/FlvExtractor﹕ [ERROR]:Not an FLV file!!!
    3. 03-30 11:49:01.606      130-130/? E/FlvExtractor﹕ [ERROR]:[FLV]mtk_flv_extractor_recognize OUT
    4. 03-30 11:49:01.607      130-130/? E/﹕ SniffFLV return 0
    5. 03-30 11:49:01.607      130-130/? E/MediaPlayerService﹕ error: -2147483648
    6. 03-30 11:49:01.607  18709-18709/? E/MediaPlayer﹕ Unable to to create media player
    7. 03-30 11:49:01.614  18709-18709/? E/MediaPlayer﹕ pause called in state 1
    8. 03-30 11:49:01.614  18709-18709/? E/MediaPlayer﹕ error (-38, 0)
    9. 03-30 11:49:01.644  18709-18709/? W/MediaPlayer﹕ mediaplayer went away with unhandled events
    10. 03-30 11:49:02.426  18709-18726/? W/libc﹕ pthread_create sched_setscheduler call failed: Operation not permitted
    It's strange because i have mp4 file, but it show something about FLV

    Looks like i'm not alone. here is the same unsolved problem http://answers.unity3d.com/questions/921345/android-handheldplayfullscreenmovie-not-working-fr.html
     
    Last edited: Mar 30, 2015
  2. piacentini

    piacentini

    Joined:
    May 27, 2014
    Posts:
    28
    One more here, just to confirm it is a widespread issue, apparently. Building with latest 4.x stable on CloudBuild. Local builds all play video fine.
     
  3. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    We currently investigate this problem, stay tuned!
     
  4. Ing3nu

    Ing3nu

    Joined:
    Jul 21, 2012
    Posts:
    15
    David Berger
    David Berger
    David Berger

    Well, it was worth a shot!

    I am having this exact same issue with building to iOS. Has there been any resolution? All of our apps include video, so if this cannot be fixed, it renders this service pretty much useless for us :(
     
  5. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    heh :D (here I am)
    Sorry for the long dely :oops:
    The "good" news is I could finally reproduce it myself, however I have no solution yet. But we are on it, so we should have one soon! :cool:
     
    nicloay likes this.
  6. Ing3nu

    Ing3nu

    Joined:
    Jul 21, 2012
    Posts:
    15
    David,

    I know that playing video is only available in the "pro" versions of Unity (which I have). Could that be causing the issue somehow?
     
  7. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    I won't say no, as it might be possible, but we look currently into other directions. I hope we find a solution soon. We'll keep you up to date!
     
  8. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    We rolled out a fix for this problem! :cool: Could you please give it a go and build your projects again to see if it is fixed? Please let us know how it goes! :)
     
  9. Ing3nu

    Ing3nu

    Joined:
    Jul 21, 2012
    Posts:
    15
    You betcha! Stay tuned...
     
    hypeNate and David-Berger like this.
  10. Ing3nu

    Ing3nu

    Joined:
    Jul 21, 2012
    Posts:
    15
    Hi David! Still no love on building an app that runs video. It builds and runs fine locally, but not from here. It's also started missing 2d assets that I know are on the SVN, but never seem to make it into the app when built from here.
     
  11. David-Berger

    David-Berger

    Unity Technologies

    Joined:
    Jul 16, 2014
    Posts:
    745
    Which file types do you use for the video. Which 2d assets are gone missing? Have you made a proper checkout to see if the files are checked out properly?