我正在尝试通过 vlc 上的 adb shell 在 Android 上连续播放视频几次。 播放视频一次时,以下命令就足够了:
adb shell am start -a android.intent.action.VIEW -d file:////storage/emulated/0/Download/bbb_sunflower_native_60fps_normal.mp4
但现在我想多次/无限地播放视频。基于:
如何将参数传递给使用 adb shell am Instrumentation 命令启动的测试函数、使用额外的命令行启动 Android 活动和https://wiki.videolan.org/VLC_command-line_help/ 我试过:
adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -e input-repeat 3 -a android.intent.action.VIEW -d file:////storage/emulated/0/Download/bbb_sunflower_native_60fps_normal.mp4
有各种组合,包括通过
--input-repeat 3
和
"input-repeat" 3
但没有成功。例如:视频只会播放一次。 也没有帮助:
adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -e PlaybackMode 1 -d file:////storage/emulated/0/Download/bbb_sunflower_native_60fps_normal.mp4
有谁知道如何做到吗?