Page 1 of 1
SMB streaming stops after switching focus
Posted: 11 Jun 2018 15:42
by cfbob
I'm on a Windows Phone, VLC set on ''always allowed'' on the OS battery management. I can connect and browse my network share alright, but whenever i switch app or turn off the screen, VLC stops streaming the song/movie. The instant i bring VLC back to focus it continues normally. Android VLC behaves normally under the exact same situation.
Any ideas on what is going wrong?
Re: SMB streaming stops after switching focus
Posted: 12 Jun 2018 05:23
by mfkl
Hi cfbob,
Which Windows Mobile OS are you running, 8.1 or 10?
What's your app version?
Re: SMB streaming stops after switching focus
Posted: 15 Jun 2018 01:31
by cfbob
Hi! it's the latest in both, Vlc 3.0.3 and Windows Mobile 10 (15254.489 version from 3-4 days ago). The exact same behavior was present in all previous app and OS version though. I also had a hard reset done at some point - and reinstalled everything from scratch: no difference.
Re: SMB streaming stops after switching focus
Posted: 21 Jun 2018 07:08
by mfkl
Hi cfbob,
Yes I can reproduce. But weirdly it's fine with the debugger attached.
Anyhow, the thing is that the UWP (Windows 10) platform blocks network communication by default when backgrounding/switching apps/locking the screen.
I could work around that with a regular app with networking code written in C#, but UWP does not offer a way to allow native C (libvlc) code in the background so I'm out of luck, as far as I can tell.
The chromecast feature suffers from the same issue, I'm afraid.
I don't know how to fix this right now.