如何通过adb shell循环播放vlc上的视频

问题描述 投票:0回答:1

我正在尝试通过 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

有谁知道如何做到吗?

android adb vlc
1个回答
0
投票
创建播放列表,将“bbb_sunflower_native_60fps_normal.mp4”放入其中两次或多次,然后通过VLC循环播放

© www.soinside.com 2019 - 2024. All rights reserved.