Description
I'm trying to use the rtsp extension in an android app but I have a problem and I get a black screen without an explicit error.
My video url is rtsp://myserver:port/live/test?t=pippo
Watching streaming server's logs I see that, during the SETUP phase, the exoplayer client send this url rtsp://myserver:port/live/test/trackID=1?t=pippo while trying the same url with VLC during the same phase the streaming server logs rtsp://myserver:port/live/test/trackID=1 (whitout query parameter of the original url)
Is it possible to remove the query parameter in the url sent by exoplayer client for the SETUP session with the streaming server?
I'm using this code
val mediaitem = MediaItem.fromUri(Uri.parse(videoUrl))
val mediaSource = RtspMediaSource.Factory().setForceUseRtpTcp(true).setTimeoutMs(10000)
.createMediaSource(mediaItem)
mediaSource.addEventListener(mainHandler, mediaSourceEventListener)
player?.repeatMode = repatMode
player?.setMediaSource(mediaSource ,true)
player?.prepare()
Thanks for the response