Back to All Guides
codeAugust 14, 2026•6 min read•RTSPLink Dev Team

Android Java & Kotlin RTSP Video Player with ExoPlayer

Stream live RTSP surveillance feeds natively in Android mobile applications using Media3 ExoPlayer RTSP extension.

#Android#Kotlin#ExoPlayer#Mobile App#Java
Live RTSP Test Feed

Need an active live RTSP stream to test this integration?

Generate a free 20-minute authenticated live H.264 video feed with frame counters to test in VLC, OpenCV, or NVR software.

#1Kotlin ExoPlayer RTSP Initialization

Configure RtspMediaSource in Android Media3 ExoPlayer:

Kotlin ExoPlayer RTSP Source
val player = ExoPlayer.Builder(context).build()
val mediaItem = MediaItem.fromUri("rtsp://rtsplink.com/live/test?token=demo")
val mediaSource = RtspMediaSource.Factory()
    .setForceUseRtpTcp(true)
    .createMediaSource(mediaItem)

player.setMediaSource(mediaSource)
player.prepare()
player.play()

Ready to test your live RTSP video stream?

Generate free authenticated 20-minute RTSP links with unlimited bandwidth and inspect frame timestamps in seconds.

Related Tutorials & Setup Guides

View all 100+ guides