Code Monkey home page Code Monkey logo

rowdy's Introduction

Rowdy

Pure Rust based Dart/Flutter audio playback library

Installation

$ flutter pub add rowdy

Configuration

You'll need the Rust toolchain installed in your system

Create a file named rowdy.cmake in both windows & linux directory of the project with following content:

include(FetchContent)

FetchContent_Declare(
    Corrosion
    GIT_REPOSITORY https://github.com/AndrewGaspar/corrosion.git
    GIT_TAG origin/master # Optionally specify a version tag or branch here
)

FetchContent_MakeAvailable(Corrosion)

corrosion_import_crate(MANIFEST_PATH flutter/ephemeral/.plugin_symlinks/rowdy/rustee_rowdy/Cargo.toml)

set(CRATE_NAME "rustee_rowdy")

cmake_policy(SET CMP0079 NEW)

target_link_libraries(${BINARY_NAME} PRIVATE ${CRATE_NAME})

list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${CRATE_NAME}-shared>)

Add the highlighted line in that place in both windows/CMakeLists.txt & linux/CMakeLists.txt

# Generated plugin build rules, which manage building the plugins and adding
# them to the application.
include(flutter/generated_plugins.cmake)

+ include(./rowdy.cmake)


# === Installation ===
# Support files are copied into place next to the executable, so that it can
# run in place. This is done instead of making a separate bundle (as on Linux)
# so that building and running from within Visual Studio will work.
set(BUILD_BUNDLE_DIR "$<TARGET_FILE_DIR:${BINARY_NAME}>")

Impletmented Features set (Things that works)

  • Local Audio file
  • Formats: mp3, flac, wav & ogg. (acc is supported but the decoder is failing for some reason)
  • Play, Pause/Resume, Toggle Playback, Stop
  • Volume (in percentage)
  • Speed
  • Seek
  • Position (Steaming too)
  • On Change Event subscription:
    • Duration
    • PlayerState (TrackChange/Play/Pause/Resume)
    • Speed
    • Volume
    • Playing
  • Network Audio File
  • Audio File Stream

rowdy's People

Contributors

krtirtho avatar

Stargazers

Michael Corrado avatar  avatar  avatar Yesterday17 avatar

Watchers

Blake Leonard avatar  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.