Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mycrl/hylarana
A cross-platform screen casting library implemented by Rust.
https://github.com/mycrl/hylarana
airplay android casting miracast mirroring screen
Last synced: 6 days ago
JSON representation
A cross-platform screen casting library implemented by Rust.
- Host: GitHub
- URL: https://github.com/mycrl/hylarana
- Owner: mycrl
- License: lgpl-2.1
- Created: 2024-02-22T03:25:02.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-02T15:49:30.000Z (10 days ago)
- Last Synced: 2024-11-02T15:49:49.006Z (10 days ago)
- Topics: airplay, android, casting, miracast, mirroring, screen
- Language: Rust
- Homepage:
- Size: 14.7 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Hylarana
A cross-platform screen casting library implemented by rust.
Pure software screen projection is different from Miracast, AirPlay, etc., which need to rely on hardware support. This project was not designed to work on a wide area network, but works well in a local area network environment.
The project is cross-platform, but the priority platforms supported are Windows and Android, Unlike a solution like DLAN, this project is more akin to airplay, so low latency is the main goal, currently the latency is controlled at around 150-250ms (with some variations on different platforms with different codecs), and maintains a highly easy to use API and very few external dependencies.
## Documentation
- Rust: [hylarana crate document](https://mycrl.github.io/hylarana/hylarana/index.html)
- C/C++: This project also compiles dynamic link libraries, so for C/C++ projects, use this header file [hylarana.h](./ffi/include/hylarana.h)## Examples
> Automated builds can be downloaded from the github release page.
- [Android](./examples/android) - this is an android studio project.
- [C++](./examples/cpp) - the build product is `example-cpp`.
- [Rust](./examples/rust) - the build product is `example`.## Build Instructions
#### Requirements
- [Git](https://git-scm.com/downloads)
- [Rust](https://www.rust-lang.org/tools/install): Rust stable toolchain.
- C++20 or above compliant compiler. (G++/Clang/MSVC)
- [CMake](https://cmake.org/download/): CMake 3.16 or above as a build system.
- [Node.js](https://nodejs.org/en/download): Node.js 16 or above as a auto build script.
- [Cargo NDK](https://github.com/willir/cargo-ndk-android-gradle): Cargo NDK is optional and required for Android Studio projects.##### Linux (Ubuntu/Debian)
> For Linux, you need to install additional dependencies to build SRT and other.
```sh
sudo apt-get update
sudo apt-get install tclsh pkg-config cmake libssl-dev build-essential libasound2-dev libsdl2-dev libva-dev v4l-utils
```##### Macos
```sh
brew install cmake ffmpeg@7
```---
#### Build
Examples and SDK library files can be automatically packaged by running an automatic compilation script.
```sh
npm run build:release
```The Release version is compiled by default. If you need the Debug version, just run `npm run build:debug`.
For android, there is no need to manually call compilation. You can directly use Android Studio to open [android](./examples/android).## License
[LGPL](./LICENSE) Copyright (c) 2024 mycrl.