pedroSG94 / vlc-example-streamplayer

Example code how to play a stream with VLC
GNU General Public License v3.0
229 stars 93 forks source link

Use vlc on a specific network #33

Open slobglob opened 5 years ago

slobglob commented 5 years ago

Hey,

I'm using this in-app and trying to connect to an RTSP wifi camera whilst being still connected to 4g/cellular network. If I run this by default it doesn't connect to the camera, if I use ConnectivityManager and call mConnectivityManager.bindProcessToNetwork(network); when network is the wifi network of the RTSP camera, I do get the stream but the rest of the app is not working (all transport goes through wifi) while it should use 4g. Any way to use VLC on a specific network? Maybe setting the socket itself, Tried looking into the lib code but ended up on a dead end when reached the JNI calls.

Any help with this? Much appreciated!

Update: Tried to use iface and iface-addr options but no luck for me, should it work?