Playing Stream URL from Specific Network Interface on Android
Posted: 06 Nov 2024 15:16
Hello,
I'm developing an IPTV Android application that utilizes LibVLC for media playback. In this app, users can specify the specific network interface that connects to their isolated IPTV network, as they may use a different interface for internet access. When users configure the network interface setting, we bind the entire application process to the selected network interface using the ConnectivityManager class, as shown here:
However, LibVLC does not seem to follow this binding. It appears that VLC traffic bypasses the ConnectivityManager API, likely because LibVLC is a low-level library that interacts directly with Linux system APIs.
Is there a way to force LibVLC to use a specific network interface to play video streams?
I'm developing an IPTV Android application that utilizes LibVLC for media playback. In this app, users can specify the specific network interface that connects to their isolated IPTV network, as they may use a different interface for internet access. When users configure the network interface setting, we bind the entire application process to the selected network interface using the ConnectivityManager class, as shown here:
Code: Select all
connectivityManager.bindProcessToNetwork(network)
Is there a way to force LibVLC to use a specific network interface to play video streams?