Skip to content

video_player plugin video not playing with some Samsungs #17252

Closed

Description

@miguelpruivo

There seem to be an issue with the skia rendering the images and some Samsungs. I'm trying with the S5. Tried with iPhone and it works great, however in Samsung this is the stack trace when the video kicks in (I get this stack exception on loop as the video goes on, since I can still listen to the sound).

D/skia ( 2422): GLSL compilation error
D/skia ( 2422): ----------------------
D/skia ( 2422): GLSL:
D/skia ( 2422): 1 #version 310 es
D/skia ( 2422): 2
D/skia ( 2422): 3 #extension GL_OES_EGL_image_external : require
D/skia ( 2422): 4 #extension GL_OES_EGL_image_external_essl3 : require
D/skia ( 2422): 5 precision mediump float;
D/skia ( 2422): 6 out mediump vec4 sk_FragColor;
D/skia ( 2422): 7 uniform lowp samplerExternalOES uTextureSampler_0_Stage0;
D/skia ( 2422): 8 uniform lowp sampler2D uTextureSampler_1_Stage0;
D/skia ( 2422): 9 uniform lowp sampler2D uTextureSampler_2_Stage0;
D/skia ( 2422): 10 uniform lowp sampler2D uTextureSampler_3_Stage0;
D/skia ( 2422): 11 flat in mediump vec4 vcolor_Stage0;
D/skia ( 2422): 12 in highp vec2 vtextureCoords_Stage0;
D/skia ( 2422): 13 flat in highp int vtextureIdx_Stage0;
D/skia ( 2422): 14 void main() {
D/skia ( 2422): 15 mediump vec4 outputColor_Stage0;
D/skia ( 2422): 16 {
D/skia ( 2422): 17 outputColor_Stage0 = vcolor_Stage0;
D/skia ( 2422): 18 highp vec2 texCoord;
D/skia ( 2422): 19 texCoord = vtextureCoords_Stage0;
D/skia ( 2422): 20 highp int texIdx;
D/skia ( 2422): 21 texIdx = vtextureIdx_Stage0;
D/skia ( 2422): 22 switch (texIdx) {
D/skia ( 2422): 23 case 0:
D/skia ( 2422): 24 outputColor_Stage0 = outputColor_Stage0 * texture(uTextureSampler_0_Stage0, texCoord);
D/skia ( 2422): 25 break;
D/skia ( 2422): 26 case 1:
D/skia ( 2422): 27 outputColor_Stage0 = outputColor_Stage0 * texture(uTextureSampler_1_Stage0, texCoord);
D/skia ( 2422): 28 break;
D/skia ( 2422): 29 case 2:
D/skia ( 2422): 30 outputColor_Stage0 = outputColor_Stage0 * texture(uTextureSampler_2_Stage0, texCoord);
D/skia ( 2422): 31 break;
D/skia ( 2422): 32 case 3:
D/skia ( 2422): 33 outputColor_Stage0 = outputColor_Stage0 * texture(uTextureSampler_3_Stage0, texCoord);
D/skia ( 2422): 34 break;
D/skia ( 2422): 35 }
D/skia ( 2422): 36 }
D/skia ( 2422): 37 {
D/skia ( 2422): 38 sk_FragColor = outputColor_Stage0;
D/skia ( 2422): 39 }
D/skia ( 2422): 40 }
D/skia ( 2422): 41
D/skia ( 2422): Errors:
D/skia ( 2422): 0:4: P0003: Extension 'GL_OES_EGL_image_external_essl3' not supported
D/skia ( 2422): 0:1: Warning: GL_OES_EGL_image_external is deprecated in ESSL 3 and later versions

Activity

  1. changed the title [-]video_player plugin video not playing on some Samsungs[/-] [+]video_player plugin video not playing with some Samsungs[/+] on May 3, 2018
  2. zoechi commented on May 4, 2018

    @zoechi
    Contributor

    please add the output of flutter doctor

  3. miguelpruivo commented on May 4, 2018

    @miguelpruivo
    Author

    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, v0.3.1, on Mac OS X 10.13.4 17E199, locale pt-PT)
    [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    [✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
    [✓] Android Studio (version 3.1)
    [✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
    [!] VS Code (version 1.22.2)
    [✓] Connected devices (1 available)

    ! Doctor found issues in 1 category.

    However after some researching I found the issue #16178 which seems to be directly related.

  4. miguelpruivo commented on May 4, 2018

    @miguelpruivo
    Author

    Fixed by following these @zoechi steps, since it's fixed on the revision e976be1 engine:

    @miguelpruivo flutter channel master
    if that doesn't work run git clean -xffd in the Flutter install directory and then flutter doctor

  5. github-actions commented on Sep 3, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions