My AndroidTV has recorded a TV show from Digital Broadcasting Input. The output are the following files inside a storage directory's subfolder:
20200127_220000.cfg
20200127_220000.pvr
20200127_220000.rfi
CH21_20200127_220000_0000.bin
How can I play the above encrypted video (on the same device) from the shell? I assume it should be something like
adb shell am start -n com.sony.dtv.rcplayer -a android.intent.action.VIEW -d /storage/CE9D41C72C471962/pvr/CH21/CH21_20200127_220000_0000.bin
There's no way of doing it unless the app(in this case com.sony.dtv.rcplayer ) is programmed to know how to parse an intent with action VIEW and data_uri /storage/CE9D41C72C471962/pvr/CH21/CH21_20200127_220000_0000.bin . If the developer did not gave the app this capability, it is not possible.
If you know the basics of Android development, you could make your own app that launches the player