# pisamusic **Repository Path**: partialy/pisamusic ## Basic Information - **Project Name**: pisamusic - **Description**: pisamusic。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-27 - **Last Updated**: 2026-11-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PISA Music An Android multi-source music player for learning and communication purposes, supporting song search, online playback, lyrics display, download management, and playlist management. ## Features ### Core Features - **Multi-source Music Search**: Search songs across multiple compatible audio sources - **Online Playback**: Smooth playback from multiple audio sources with quality selection options - **Lyrics Display**: Scrolling lyrics with customizable color themes - **Song Download**: Download high-quality music to your device - **Playlist Management**: Favorite playlists and manage local playback lists ### My Music - **Favorite Songs**: One-tap favorite songs - **Local Music**: Scan and manage audio files stored on your device - **Download Management**: View and manage downloaded music ### Playback Features - **Playback Modes**: Sequential, shuffle, and single-loop playback - **Quality Selection**: Automatically select optimal audio quality based on network conditions - **Mini Player**: Persistent mini player at the bottom of the screen ### Listen Together - **Create a Room**: Custom room name (2–16 chars), 6-digit random room ID (editable 4–8 digits), max 2–8 members, member-control switch - **Real-time Sync**: Socket.IO long connection — host's song change, pause, and seek propagate to members in < 200ms - **Room Panel**: Synced song card with latency badge; member chips with gold host badge and self highlight; copy invite / share / QR shortcuts - **Permission Toggle**: Host can grant or revoke "members can change songs" anytime ### Other Features - **Theme Switching**: Support for light, dark, and system-following themes - **Playlist Import**: Import playlists from compatible audio sources ## Project Structure ``` pisamusic/ ├── pm/ # Android main application │ ├── app/src/main/ │ │ ├── java/cn/partialy/pm/ │ │ │ ├── activity/ # Activity screens │ │ │ ├── di/ # Dependency injection modules │ │ │ ├── model/ # Data models │ │ │ ├── network/ # Network layer │ │ │ ├── player/ # Player core │ │ │ ├── ui/ # UI components │ │ │ └── utils/ # Utility classes │ │ └── assets/ # Static resources │ └── build.gradle.kts ├── server/ # Backend service │ ├── admin/ # Admin panel │ ├── frontend/ # Official homepage │ └── src/ # Server-side code └── yixi/ # Desktop app (Electron) ├── electron/ # Electron main process └── src/ # Vue render process ``` ## Technology Stack ### Android - **Language**: Kotlin - **Architecture**: MVVM + Clean Architecture - **Dependency Injection**: Hilt - **Networking**: Retrofit + OkHttp - **Database**: Room + SQLite - **Player**: ExoPlayer (Media3) - **Asynchronous Operations**: Kotlin Coroutines + Flow ### Backend - **Runtime**: Node.js - **Framework**: Express - **Database**: better-sqlite3 ### Desktop - **Framework**: Electron + Vue 3 - **Build Tool**: electron-vite ## Build and Run ### Android App ```bash # Navigate to project directory cd pm # View available tasks ./gradlew tasks # Debug build ./gradlew assembleDebug # Release build ./gradlew assembleRelease ``` ### Backend Service ```bash cd server # Install dependencies npm install # Start server npm run start ``` ### Desktop App ```bash cd yixi # Install dependencies npm install # Development mode npm run dev # Build npm run build ``` ## Network APIs The project uses a multi-source aggregation architecture that modularizes search, playback, lyrics, playlists, and related capabilities for learning, communication, and feature validation. ## License This project is intended solely for learning and communication purposes. Please respect the terms of service of each platform and do not use it for commercial purposes.