to play the rtsp link you should use sdrPlayer.prepareAsync();instead
sdrPlayer.prepare();
as the documentation states
It prepares the player for playback asynchronously. After installing the data source and display surface, you need to either call prepare()or prepareAsync(). For threads, you must callprepareAsync() that immediately returns, and does not block until enough data has been buffered.
source
share