In my app videos are stored as series of encrypted SQLite BLOBs.
In order to play video directly from those SQLite I need to write my own custom ContentProvider
. I know how to implement basic ContentProvider
over SQL queries, but in this case I have no idea how to do this.
How VideoView.setVideoURI()
utilize supplied URI? Either it read is as Cursor
or ParcelFileDescriptor
or somehow as kind of stream?
Any ideas, clues, hints?
Update
Basically question is not only about ContentProvider
, but about streaming/playing video directly from SQLite blobs. It doesn't really matter how to play this video - only precondition: creating of intermediate/temporary video file is prohibited (due to security concerns).