As from sample google casting-app we can cast video to Android TV via URL. I want to cast video from local storage. I have not found any solution yet.
Let me know if anyone have implemented it.
https://github.com/googlecast/CastVideos-android (Sample casting app by google)
MediaStore API your problem solved
https://developer.android.com/training/data-storage/shared/media
used it