Search code examples
androidandroid-file

Taking control of video sent to other android app


I want to send video files to other apps and take full control of it, i.e., I want to send a video file (stored in external storage in phone) in a way so that I can know if the User is watching that video and if he finished the video.?

For now What I have done is: I have sent the path of the video when the other apps ask for it. But by doing this I won't know if the user has watched the video fully.

What I want : I want to absolutely know that the user has watched the video in the other app.

Thanks for the help


Solution

  • I want to send a video file (stored in external storage in phone) in a way so that I can know if the User is watching that video and if he finished the video

    Sorry, that is not possible. What the user does with the video in the other app is up to the user and that other app. The other app might not be a video player, for example. And you cannot spy on the behavior of that other app, for obvious privacy reasons.

    If you need that degree of control, play the video back within your own app (e.g., use ExoPlayer).