So I'm watching a video talk in VLC on my Samsung I9305 rooted stock 4.4.4 with Xposed Framework, and I want to lock the screen and put the phone in my pocket, but still continue listening to the audio of the talk. Is it possible to do this with VLC, or do I have to switch to another media player?
It turns out this is actually a native function of VLC 1.7.4 (and probably previous versions too) for Android.
- Click the three horizontal lines in the top left corner (on the file selection screen, not while a video is playing).
- Click on "Preferences".
- Tick the "Play videos in background" box.
- Play a video.
- Lock the screen.
- Keep listening to the audio from that video!
I had the same problem on a Samsung Note 8, even with "Play videos in background" setting turned on. In the latest version of VLC (v3.3.4), the "Play videos in the background" option is a little different, it's actually "Background/PiP mode" with 3 options:
- Play videos in background
- Play videos in Piciture-in-picture mode
The issue for me was the power saving setting, similar to THE PATHAN's answer for their Huawei Mate 9.
Here's how to fix it on a Samsung:
- Open Settings
- Open Apps
- Find and open VLC
- Click "Battery"
- Toggle "Allow background activity" to on
Without this setting, audio playback will be stopped about 30 seconds after locking the phone regardless of the "Background/PiP mode". However, with "Allow background activity" turned on, audio playback will continue even with the "Background/PiP mode" set to "Stop".
Would something like this work for you? YouTube player That is a YouTube player that plays after the screen is locked.