Coder Social home page Coder Social logo

Comments (5)

borzh avatar borzh commented on July 20, 2024 2

I have fixed the issue... posting the solution here so if someone has the same issue, he could fix it.

Basically I had several SimpleExoPlayer's binded to several SimpleExoPlayerView's. Strangely enough, when I was pausing the player in one view and resumed the player in another one, this issue was easily reproduced.

Now, the fix is, before reproducing next video:

  • pause the player
  • unbind the player from the view: simpleExoPlayerView.setPlayer(null);
  • remove simpleExoPlayerView completely from the layout: simpleExoPlayerViewParent.removeAllViews();
  • create simpleExoPlayerView, layout and bind it to the player that will reproduce next video

Hope this helps.

from librtmp-client-for-android.

mekya avatar mekya commented on July 20, 2024 1

Thank you.

FYI, there is also a bug fix in the last release about opening multiple exoplayers that plays rtmp live streams.

from librtmp-client-for-android.

borzh avatar borzh commented on July 20, 2024

I have same issue when the network is slow. Having several players and reproducing one of them in loop, after some time the app crashes.

10-18 14:28:27.388 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): buffering
10-18 14:28:33.668 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): ready
10-18 14:28:48.978 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): buffering
10-18 14:29:10.518 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): ready
10-18 14:29:37.128 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): buffering
10-18 14:29:42.478 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): ready
10-18 14:30:10.538 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): buffering
10-18 14:30:15.078 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): ready
10-18 14:30:22.378 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): buffering
10-18 14:30:29.518 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): ready
10-18 14:30:48.748 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): buffering
10-18 14:30:53.918 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): ready
10-18 14:31:13.138 31003-31003/com.test.debug D/VideoLayout: 9 onStateChanged(): buffering
10-18 14:31:23.838 295-24335/? I/SecVideoCapture: SecVideoCapture destructor
10-18 14:31:23.838 295-24335/? I/SecVideoCapture: reset
10-18 14:31:23.908 984-1496/? W/ActivityManager: Force removing ActivityRecord{2f8ac2f2 u0 com.test.debug/com.test.view.VideoFeedActivity t26}: app died, no saved state
10-18 14:31:23.988 984-1322/? I/WindowState: WIN DEATH: Window{3017138 u0 com.test.debug/com.test.view.VideoFeedActivity}
10-18 14:31:23.988 259-438/? I/SurfaceFlinger: id=190 Removed com.test.debug/com.test.view.VideoFeedActivity (4/7)
10-18 14:31:23.988 259-1350/? I/SurfaceFlinger: id=190 Removed com.test.debug/com.test.view.VideoFeedActivity (-2/7)
10-18 14:31:23.998 259-438/? I/SurfaceFlinger: id=190 Removed com.test.debug/com.test.view.VideoFeedActivity (-2/7)

from librtmp-client-for-android.

mekya avatar mekya commented on July 20, 2024

Could you please give some more info so that I can reproduce this error in my test environment?

Do you play live stream or vod?
What is the network speed approximately?
Do you use the library in your own project or you get this error in demo app?

from librtmp-client-for-android.

borzh avatar borzh commented on July 20, 2024

Hi mekya, you can try having several SimpleExoPlayer's binded to several SimpleExoPlayerView's, at least 2, but if you use more (say 5), it will be easier to reproduce. 1 SimpleExoPlayerView should be visible while reproducing, and the others SimpleExoPlayerView's should be hidden. Using Android version of ExoPlayer r2.5.3

from librtmp-client-for-android.

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.