I can confirm that I am facing a similar problem.
In my case, I use an RTSP server on my LAN to serve the camera.ts
file with the following RTSP URL:
rtsp://macpro.local:8554/camera.ts
Throws an error " Can't play this video
:
I wanted to see if there was a permission issue or something else, so I tried checking the RTSP URL.
rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
Works great.
So this means that this is not a permissions issue. Perhaps this is a network problem, so let's see if I can get the same BigBuckBunny movie file that plays through my RTSP server.
I downloaded this BigBuckBunny movie, converted it to .mkv
and tried it.
rtsp://macpro.local:8554/big_buck_bunny.mkv
Works great.
So this kind of eliminates the problem with permissions and eliminates the problem with the network or the problem with my server.
I suggest starting to hone on file type. Perhaps .ts
causing problems.
.ts
file .ts
.
This is the error message that I see in the logs:
D/MediaPlayer: setDataSource IOException happened : java.io.FileNotFoundException: No content provider: rtsp://macpro.local/camera.ts
But it could be Red Herring, because if I look at the logs when I try to play a test file that works, I get the same thing:
D/MediaPlayer: setDataSource IOException happend : java.io.FileNotFoundException: No content provider: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
So let's rule it out and keep looking ....
source share