how to play video on vlc in a loop via adb shell
Asked Answered
B

2

7

I'm trying to play a video on android via adb shell on vlc several times in a row. When playing the video once the following command was sufficient:

adb shell am start -a android.intent.action.VIEW  -d  file:////storage/emulated/0/Download/bbb_sunflower_native_60fps_normal.mp4

But now I want to play the video several times/infinitely. Based on: How can I deliver parameters to a test function, that launched using adb shell am Instrumentation command , Start Android activity from command line with extra and https://wiki.videolan.org/VLC_command-line_help/ I tried:

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 

with various combinations including passing --input-repeat 3 and "input-repeat" 3 without success. E.g: the video would play but only once.

Also didn't help:

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

Does anyone know how it can be done?

Blinni answered 12/4, 2018 at 9:29 Comment(1)
try to make android app with LibVLC, so you can have VLC based player. using putExtra on start you can read passed param.Spoiler
Q
0

Create playlist, place "bbb_sunflower_native_60fps_normal.mp4" twice or more inside and loop it by VLC

Quinonez answered 26/8, 2023 at 22:36 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Graiggrail
D
0

Here's how I managed to play video in infinite loop:

adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -d file:///sdcard/DCIM/Camera/file.MOV

My environment:

  • VLC-Android-3.5.4-armeabi-v7a.apk
  • Android 8.1
  • Phone: Soyes Xs11
Damal answered 9/8, 2024 at 19:6 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.