Coder Social home page Coder Social logo

fillip1984 / locutus Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 21.82 MB

React native audiobook player. Learning how to use drizzle for persistence, Zustand for state, NativeWind for UI, and react-native-track-player for playback. Uses AudioBookshelf as backend for meta-data and audiobooks

JavaScript 1.86% TypeScript 98.07% CSS 0.08%
drizzle expo nativewind react-native react-native-track-player zustand

locutus's Introduction

locutus

My mad dash to creating an Audiobook player built with react native. This is an expo project written in Typescript, using drizzle for persistence, zustand for state, and NativeWind for UI. I've built an audiobook player that uses AudioBookShelf as it's backend to fetch metadata and also the audiobooks themselves.

React-native-track-player is used for audio playback. I started with expo-av but switched to react-native-track-player to gain lock screen, carplay, now playing, and apple watch integration.

UI

Sample project gif

Current state

Other than UI imperfections (marked with TODO: tags), playback works and progress is being tracked and resumed on audiobook files. Audiobooks play in the background and also appear (can be controlled) from lock screen, carplay, and applewatch.

TODO

  • Enhance drizzle to simplify data queries (right now app doesn't pull in relationships)
  • Resolve remaining UI issues, they're marked in some files
  • Figure out security (face id)
  • Switch over audio player: https://medium.com/@gionata.brunel/implementing-react-native-track-player-with-expo-including-lock-screen-part-1-ios-9552fea5178c
  • Enhance UI for download experience
  • Finish out pushing the mini-player to the bottom when switching between player and library
  • Finish out flow from playlist to player (expo-router)
  • Figure out tabs (expo-router)
  • Figure out how to store files locally (expo-filesystem)
  • Figure out how to import files from elsewhere (AudioBookShelf Apis to the rescue)
  • Figure out how to distribute without app store (--local and internal/ad hoc distribution, apple developer subscription required)
  • Figure out how to get it to play in the background (plist permission)
  • Figure out how to integrate into Apple now playing experiences (react-native-track-player solved this)
  • Figure out how to integrate into Apple lock screen (react-native-track-player solved this)
  • Figure out how to integrate with Apple Carplay (react-native-track-player solved this)
  • Figure out how to integrate with Apple watch (react-native-track-player solved this)

locutus's People

Contributors

fillip1984 avatar

Stargazers

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