Git Product home page Git Product logo

vlc-android-vpn-dlna's Introduction

This repository contains patches for VLC for Android which enable discovery of UPNP/DLNA servers over VPN.

These patches were tested on arm64 with some recent versions of VLC app (see below). They may not work with other versions or architectures.

Usage:

Manual patching

  1. Clone the official repository, checkout a compatible version
  2. Apply the first patch
  3. Build the application (with libvlc) OR build a compatible version of libvlc and replace the libvlc.so in the original APK (e.g. using Apktool)
  4. Add --miface=tun0 (real interface name may be different) in Advanced settings -> custom libVLC options
  5. Restart the application

To use another interface (e.g. a wireless adapter) for DLNA discovery, remove the --miface option and restart the app

Automatic interface selection:

You may apply the second patch after step 2. With this patch applied, libupnp will use the default interface which is used to send packets to 239.255.255.250 (i.e. $(ip route get 239.255.255.250)). You should still be able to overwrite the interface for libupnp via the --miface option

Build with Docker (applies both patches)

# build the APK (unsigned release version)
./build.sh
# build only libvlc
./build.sh -l

You can use ARCH (default is arm64) and VERSION (default 3.5.0) environment variables to select a different architecture or VLC version. Use DOCKER_IMAGE_TAG environment variable to select which version of registry.videolan.org/vlc-debian-android image will be used for build.

Generated files are saved to ./out.

Tested builds

# NOTE doesn't work anymore (git clone fails due to certificate error). May still be possible to build with a newer docker image
DOCKER_IMAGE_TAG=20200529135226 VERSION=3.3.4 ./build.sh -l

DOCKER_IMAGE_TAG=20210915065913 VERSION=3.4.1 ./build.sh -l
DOCKER_IMAGE_TAG=20210915065913 VERSION=3.4.4 ./build.sh -l

DOCKER_IMAGE_TAG=20220224093321 VERSION=3.5.0 ./build.sh -l

vlc-android-vpn-dlna's People

Contributors

vvd170501 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.