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

Video Videoplayer not working in android (opengl error)

Discussion in 'Audio & Video' started by mgear, Nov 27, 2018.

  1. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,988
    testing simple scene with videoplayer and url:
    http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_640x360.m4v
    tried also https://raw.githubusercontent.com/mediaelement/mediaelement-files/master/big_buck_bunny.mp4


    unity:
    2017.4.1f1
    and 2017.4.16f1

    error in device log:
    OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_ENUM: enum argument out of range
    (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 335)


    settings
    upload_2018-11-27_18-22-47.png

    Phone:
    (Xiaomi) Redmi 6


    Others:

    Tried opengl 3.0, 2.0, automatic. Disabled multithread rendering..
     
    Last edited: Nov 27, 2018
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,988
    huh.. error was caused by having rawimage in the UI.

    Default rawimage (100x100) works,
    but if you scale it then you get opengl error in video player..
    (maybe it happens if rawimage covers video)
     
    Last edited: Nov 28, 2018
  3. vikingsc2007

    vikingsc2007

    Joined:
    Aug 30, 2017
    Posts:
    2
    Same Issues on some Meizu devices
    Unity 2018.4.23
     
  4. FurionTheGreatest

    FurionTheGreatest

    Joined:
    Jun 12, 2017
    Posts:
    9
    same
    and default raw image dont solve problem