During RTSP streaming with Android MediaPlayer, neither pause nor stop work

I am encountering an unusual error on Samsung devices that, when streaming RTSP using MediaPlayer work neither pause() nor stop() , but work well on Nexus S and Nexus 4 when I want to stop streaming.

When I change the link to another direct streaming URL, pause() and stop() work on all devices; but when I use the RTSP url, pause() and stop() do not work and logcat does not show any errors, just "pause JNI stop pause JNI pause"

Does anyone face the same problem? Is it possible that the RTSP link does not respond to pause and stop methods, because other direct streaming links work with the same code!

+4
source share

Source: https://habr.com/ru/post/1487765/


All Articles