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

New Video Player on Android problem (Black screen)

Discussion in '5.6 Beta' started by Yode_group, Jan 17, 2017.

  1. Yode_group

    Yode_group

    Joined:
    Apr 5, 2016
    Posts:
    14
    We have problems while playing video, with new Video Player (Unity 5.6.0b3).

    We don't have any problems with video player in editor or standalon application for Windows, but when we try to play video, on android device we see black screen. We test it on Galaxy S7 and Sony Z3 with Android 6.0.
    We trying to play reference video (http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4) from related topic (https://forum.unity3d.com/threads/correct-video-format-for-video-playback.446011/). Video encoded with H264 AVC codec, audio encoded with AAC.

    We want to play video without transcode. We try to play video from assets as Video Clip, and try to stream video by URL from StreamingAssets folder. It doesn't metter. On Windows it work, but on Android it doesn't.

    We found that, if we remove audio from video clip, with external software, video start playing on android. It looks like problem related with audio. We try different audio output mode, but it doesnt help. Always black screen.
     
    gthiruna likes this.
  2. gthiruna

    gthiruna

    Joined:
    Jan 15, 2017
    Posts:
    1
    Hi paskhalov,

    This might not be the exact solution towards what you are eying on, But when I tried the video mentioned above with out transcode and android overwrite options enabled it does not work in Android. But at the same time when we have a transcode and the android overwrite enabled it works for the Codec of VP8 and not for H264.
    Also, The windows version might have an impact as some video files doesnot get the frame height and width properties which leads to an error in unity when it tries to import that particular video file.

    I just thought sharing my progress in displaying a video in transcode mode might help you to proceed on your debug.

    Regards,
    Gokul
     
    nomadic and Yode_group like this.
  3. Yode_group

    Yode_group

    Joined:
    Apr 5, 2016
    Posts:
    14
    Hi, gthiruna! Thx for sharing your progress. But our workflow excludes transcode in Unity. We want to download video in runtime, to sdcard and then play it. We will try to manual transcode out video files to VP8, maybe that workaround will help.
     
    gthiruna likes this.