Coder Social home page Coder Social logo

ken-u / lanplay_embedded Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.96 MB

Provide a lanplay service for embedded devices. This includes buildroot compilation and the provision of a web management UI of managing server lists and enabling/disabling lanplay services.

License: GNU General Public License v3.0

Shell 1.97% Makefile 5.16% HTML 18.31% CSS 30.44% JavaScript 44.13%

lanplay_embedded's Introduction

lanplay_embedded

Provide a lanplay service for embedded devices. This includes buildroot compilation and the provision of a web management UI of managing server lists and enabling/disabling lanplay services.

Web UI

image image image image image

Manual

Files

Files Details
/usr/bin/lanplay-server-mgr Simple server manager binary
/usr/webfiles/tools/LanPlay.html Web management UI is used for simple server management. It also supports querying the corresponding room information from the server and communicating with the lanplay service through RPC.
/usr/lanplay_server/server_list.txt Local server list

How to use Web UI

Add/Remove server with Web UI

  • Click Add/Remove server in sidebar.

Start/Stop lanplay with Web UI

  • Build or copy lanplay binary to your device.
  • Start lanplay with RPC. e.g.
local_ip=`ip addr show | awk '/inet / {print $2}' | cut -d/ -f1`
lanplay --rpc $local_ip:8001 --rpc-token cxz-switch &
  • Open LanPlay.html in your browser. e.g. http://192.168.31.188:8091/tools/LanPlay.html
  • With LanPlay Service management, you can start/stop the relay server via websocket.
  • Use DEBUG -> WS Commands to communicate with lanplay via RPC.

Build (for buildroot)

  • Clone this repository into your buildroot directory.
cd buildroot/package
git clone [email protected]:Ken-u/lanplay_embedded.git
  • Include this module.
diff --git a/package/Config.in b/package/Config.in
index 81464d0d..355bddf6 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1486,6 +1486,7 @@ menu "Other"
        source "package/clang/Config.in"
        source "package/clapack/Config.in"
        source "package/classpath/Config.in"
+       source "package/lanplay-server-mgr/Config.in"
        source "package/cppcms/Config.in"
        source "package/cracklib/Config.in"
        source "package/dawgdic/Config.in"
  • Enable this module for your build.
git diff configs/
diff --git a/configs/rockchip_rk3288_defconfig b/configs/rockchip_rk3288_defconfig
index bcb0995b..8832c868 100644
--- a/configs/rockchip_rk3288_defconfig
+++ b/configs/rockchip_rk3288_defconfig
@@ -36,6 +35,8 @@ BR2_PACKAGE_LIBCURL_CURL=y
 BR2_PACKAGE_LIBNDP=y
 BR2_PACKAGE_KENJC=y
 BR2_PACKAGE_ARIA2=y
+BR2_PACKAGE_LANPLAY=y
+BR2_PACKAGE_LANPLAY_SERVER_MGR=y
 BR2_PACKAGE_PROTOBUF=y
 BR2_PACKAGE_NEWT=y
 BR2_PACKAGE_OPENSSH=y
  • Build this module.
make lanplay-server-mgr-reconfigure

lanplay_embedded's People

Contributors

ken-u avatar

Watchers

 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.