Jump to content
 
HonYa_fd

Focus not acceptnig the file path on adb video play request

Recommended Posts

did not run the Focus ROM on emulator (will try)

 

i am trying to start the video on Focus

what is the reason, when i sent over command line
adb shell am start -a android.intent.action.VIEW -t video/mp4 -d file:///storage/emulated/0/Movies/WORLD.mp4

i get response:
Starting: Intent { act=android.intent.action.VIEW dat=file: typ=video/mp4 }

 

what should i do differently....the file is there

Share this post


Link to post
Share on other sites

Didn't you and I get the same response?

Starting: Intent { act=android.intent.action.VIEW dat=file: typ=video/mp4 }

 

Sorry, I still don't quite get where is your problem.

Share this post


Link to post
Share on other sites

yes it the same response...which is weird, becaue it starts the player, but it does not load the file (nor it says, that the file does not exits)...

the problem is, why in the response is empty path to the file

 

the proper response should look like this:
Starting: Intent { act=android.intent.action.VIEW dat=file:///storage/emulated/0/Movies/WORLD.mp4 typ=video/mp4 }

Share this post


Link to post
Share on other sites

Figured it out....

adb shell am start -a android.intent.action.VIEW  -t video/mp4 -d  content://com.android.externalstorage.documents/document/primary%3AMovies%2Fxxxxx.mp4
 
takes couple of seconds after the app is started to start the video (my video has 4 and 8gb).... @chengnay
  • Like 2

Share this post


Link to post
Share on other sites

Great to hear that! 👍

EDIT: I tried your method and it works, thanks for sharing!

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...