launch mpv android application from termux

has anyone successfully input a command to launch an mpv android application using termux with a MP4 file in termux directory? I tried 'am start --user 0 -a android.intent.action.VIEW -d "file://$PWD/big_buck_bunny.mp4" -n is.xyz.mpv/.MPVActivity >/dev/null 2>&1' and it launches mpvbut it closes suddenly with no error from mpv or termux. Did I do something wrong with the command that was inputted?
2 Replies
Dr. Jaska
Dr. Jaska6mo ago
@Foxtelemetry try termux-open - if you're in Termux's own files then mpv can't read those - >/dev/null 2>&1 "with no errors" ... You just yeeted all the errors
tathastu871
tathastu8716mo ago
mpv expect stream rather than data uri so it requires content provider for tht and thus termux-open will aork Still want to use am try am start -a android.intent.action.VIEW -d "content://com.android.externalstorage.documents/root/primary" and select file even from termux dir and ot will open app hooser
Want results from more Discord servers?
Add your server