Closed ojw28 closed 4 years ago
Hi, Throwing an exception indicating connection with the server is dropped may help you for this issue?
Yes, if RtmpClient.read
were to throw an appropriate exception rather than returning -1 in this case, that would help.
Hi @mekya - could you please provide me an email adress to send the stream url I'm using.
Hi @mekya - Will the proposed solution will be implemented in the upcoming releases?
Reproduction steps:
RtmpClient.read
, as normal. @jinfanzon can provide you with such a stream via email.RtmpClient.read
call ends up returning -1, which is documented to mean that the stream is complete.It looks to me like returning -1 in this case is incorrect. In ExoPlayer, it causes us to assume the stream has ended and transition the player to its ended state. The
RtmpClient.read
call should either throw an exception (in which case the player will retry) or read some valid data (if possible, depending on when the method returns relative to when airplane mode is toggled off again). Please could you take a look?