Janusz Chmiel
Member
Dear specialists, I want to detect if phone state has changed to The ringing state. If this event will occur, I want to release Exoplayer so this library will stop live stream playback. Please, how to write a short code which will react on The PhoneStateChanged on The state ringing. Because if The PhoneStateChanged status is RINGING, it means, that somebody is calling on my number. So I want to stop The Internet radio playback.
Thank you for The code. Pause, release functions work even on Android 4.1, so Exoplayer library is compatible even with so old version. There is An deep problem between click and playback. But on Android 6.0 and newer, everything work much more smoother.
Thank you for The code. Pause, release functions work even on Android 4.1, so Exoplayer library is compatible even with so old version. There is An deep problem between click and playback. But on Android 6.0 and newer, everything work much more smoother.