-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reusing ExoPlayer with Rtmp streams is crashing the app #2
Comments
I think the problem may be about closing the rtmp connection, if you want On Sun, Feb 21, 2016 at 7:26 PM, Bikrant Tripathi notifications@github.com
|
@mekya Thanks for replying back. I thought closing the rtmp connection was supposed to be ExoPlayer's task, meaning when I call Although, as you said because I was not closing the previous rtmp connection myself assuming that ExoPlayer would do that for me lead to the instant crash when trying to switch to another video. I made one change on the I'm calling the Renderer's
|
Could you please send the logcat output and paste your code? On Mon, Feb 22, 2016 at 5:14 PM, Bikrant Tripathi notifications@github.com
|
I've come across this problem with read error that seems to happen all the time with rtmp: Full logs below: 02-22 20:05:52.979 17056-17672/com.exoplayer.videoplayer A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 17672 (Loader:Extracto) |
So the error from above happens when switching video streams. I found that the RtmpClient takes too long to close down (and seems to be doing so asynchronously) when the ExoPlayer releases. I have to put in a multiple-second delay between releasing the ExoPlayer (and closing the RtmpClient) and re-launching the ExoPlayer. Otherwise, it seems that the RtmpClient is "corrupted" some how on the ExoPlayer re-initialization and the read errors from above show up reliably to kill the app. |
Hi, I take a look at the logcat output and read your last comments. It seems On Tue, Feb 23, 2016 at 5:43 PM, Shaun Gerner notifications@github.com
|
Hi Mekya,
That problem and solution (back down to API 19) is explained here: |
I got the github invite. thank you. yeah you are right about the rtmp-client build.gradle. Yesterday, one guy new version is 0.2.1 compile 'net.butterflytv.utils:rtmp-client:0.2.1' On Wed, Feb 24, 2016 at 4:46 PM, Shaun Gerner notifications@github.com
|
I am closing this issue. Native library is compiled with sdk level16 with 0.2.1 version |
I have come across the exact same problem. I am using Toro Library. Whenever I put a few seconds delay between the initialising and the playing it works, however very unstable. The error from logcat is the same as the one from @shroge . Toro: 3.1.0 ExoPlayer 2.5.1 |
Is it possible to share some source code for me in order to create the test environment quickly? |
It actually works with the newest version of Exoplayer. Thanks anyway |
Yeah we have fixed a bug about this issue and afaik exoplayer uses that version in the new release. |
I have an ExoPlayer with Surface view on my MainActivity and I'm trying to switch between multiple Rtmp Stream directly from the MainActivity.
The initial Rtmp Stream works as expected but whenever I try to switch to a new Rtmp Stream it crashes on me.
This is the code used for both playing the first stream/video & switching to different stream/video.
getRenderer()
provides meExtractorRendererBuilder
class that you modified on the integration of this Library and ExoPlayer if I'm passing in a link forrtmp stream
.I tested switching between normal videos (mp4, webM, mkv) and hls stream videos they work as expected no crashes so far.
Could you help me find a solution for this issue ?
The text was updated successfully, but these errors were encountered: