Code Monkey home page Code Monkey logo

Comments (10)

MasayukiSuda avatar MasayukiSuda commented on May 20, 2024 1

Fixed.

from exoplayerfilter.

yangcheng avatar yangcheng commented on May 20, 2024

I have the same issue.

from exoplayerfilter.

ParthP-7 avatar ParthP-7 commented on May 20, 2024

I am facing the same issue. Did you find any solution?

from exoplayerfilter.

nbourdin avatar nbourdin commented on May 20, 2024

No sorry

from exoplayerfilter.

sebdomdev avatar sebdomdev commented on May 20, 2024

Seems like something changed in the newer exoplayer library versions. If you use 2.10.5, it actually works (that's the version that the library is using). I assume it has to do with exo player being accessed from the open gl thread instead of the main thread but I'm not sure.

from exoplayerfilter.

saptan avatar saptan commented on May 20, 2024

I have the same issue.

from exoplayerfilter.

saptan avatar saptan commented on May 20, 2024
    implementation 'com.google.android.exoplayer:exoplayer-core:2.13.2'
    implementation 'com.google.android.exoplayer:exoplayer-hls:2.13.2'
    implementation 'com.google.android.exoplayer:exoplayer-ui:2.13.2'
    implementation 'com.google.android.exoplayer:extension-rtmp:2.13.2'

from exoplayerfilter.

saptan avatar saptan commented on May 20, 2024

Need replace this code:

        Surface surface = new Surface(previewTexture.getSurfaceTexture());
        this.simpleExoPlayer.setVideoSurface(surface);

with:

new Handler(Looper.getMainLooper()).post(() -> {
            Surface surface = new Surface(previewTexture.getSurfaceTexture());
            simpleExoPlayer.setVideoSurface(surface);
        });

https://github.com/MasayukiSuda/ExoPlayerFilter/blob/master/epf/src/main/java/com/daasuu/epf/EPlayerRenderer.java#L102-L103

from exoplayerfilter.

yangcheng avatar yangcheng commented on May 20, 2024

Need replace this code:

        Surface surface = new Surface(previewTexture.getSurfaceTexture());
        this.simpleExoPlayer.setVideoSurface(surface);

with:

new Handler(Looper.getMainLooper()).post(() -> {
            Surface surface = new Surface(previewTexture.getSurfaceTexture());
            simpleExoPlayer.setVideoSurface(surface);
        });

https://github.com/MasayukiSuda/ExoPlayerFilter/blob/master/epf/src/main/java/com/daasuu/epf/EPlayerRenderer.java#L102-L103

I added a PR based on the suggestion, #58

from exoplayerfilter.

vaibhavpandeyvpz avatar vaibhavpandeyvpz commented on May 20, 2024

@MasayukiSuda Thanks for fixing this long-term incompatibility with recent ExoPlayer version. Please close and lock this thread.

from exoplayerfilter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.