Can I cast a local media file using Fling from Android device? Should I just post a URI like that file:///mnt/sdcard/example.mp4 ?
The URI must be HTTP and the Fire TV must be able to access this URI. Since the actual media is on your mobile device, one possible approach is to integrate HTTP server libraries such as https://github.com/NanoHttpd/nanohttpd in your application and expose the media files in /mnt/sdcard on some HTTP service port.
WhisperLink ServerTransport error 4 Answers
Fling works but with exceptions 0 Answers
Does Fling support DRM? 1 Answer