Search Unity

  1. Megacity Metro Demo now available. Download now.
    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:
    9,401
    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:
    9,401
    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
     
  5. MatosEncoreMatos

    MatosEncoreMatos

    Joined:
    Mar 5, 2022
    Posts:
    5
    Hey. Have this exact issue, on unity 2022.19 (latest lts)
    Did you manage to fix it?