Convert Figma logo to code with AI

Moriafly logoSaltPlayerSource

Salt Player for Android Release, Feedback

3,947
114
3,947
285

Top Related Projects

A material designed music player for Android

6,990

Material Design Music Player

🎶🎼 Very slim music player 👨‍🎤 100% made in Italy 🍕🌳🌞🍝🌄

Quick Overview

SaltPlayerSource is an open-source music player application for Android devices. It is designed to provide a clean, intuitive interface for playing local music files, with a focus on simplicity and performance.

Pros

  • Clean and modern user interface
  • Support for various audio formats
  • Customizable themes and appearance
  • Lightweight and efficient performance

Cons

  • Limited online streaming capabilities
  • Fewer advanced features compared to some commercial music players
  • May not support all Android devices or versions

Code Examples

As SaltPlayerSource is an Android application project rather than a code library, code examples are not applicable in this context.

Getting Started

Since SaltPlayerSource is an Android application and not a code library, there are no specific code-based getting started instructions. However, users can follow these steps to use the application:

  1. Visit the project's GitHub repository: Moriafly/SaltPlayerSource
  2. Download the latest release APK file from the Releases section
  3. Install the APK on your Android device
  4. Grant necessary permissions for the app to access your device's storage
  5. Open the app and start enjoying your local music collection

Competitor Comparisons

A material designed music player for Android

Pros of Phonograph

  • More mature and established project with a larger user base
  • Extensive feature set including album artist support and tag editing
  • Well-documented codebase with clear architecture

Cons of Phonograph

  • Less frequent updates and maintenance
  • Heavier resource usage due to more complex features
  • Steeper learning curve for new contributors

Code Comparison

SaltPlayerSource (Kotlin):

class PlaylistAdapter(
    private val context: Context,
    private val playlists: List<Playlist>,
    private val onItemClickListener: OnItemClickListener
) : RecyclerView.Adapter<PlaylistAdapter.ViewHolder>() {
    // Implementation details
}

Phonograph (Java):

public class PlaylistAdapter extends RecyclerView.Adapter<PlaylistAdapter.ViewHolder> {
    private final AppCompatActivity activity;
    private List<Playlist> dataSet;
    private int itemLayoutRes;

    public PlaylistAdapter(AppCompatActivity activity, List<Playlist> dataSet, int itemLayoutRes) {
        // Constructor implementation
    }
}

Both projects use similar adapter patterns for playlists, but SaltPlayerSource utilizes Kotlin's concise syntax, while Phonograph uses Java. The Phonograph implementation includes an additional parameter for layout resource, potentially offering more flexibility in UI customization.

6,990

Material Design Music Player

Pros of Timber

  • More mature project with a larger user base and longer development history
  • Extensive feature set including equalizer, tag editor, and playlist management
  • Better documented codebase with clear contribution guidelines

Cons of Timber

  • Less active development in recent years compared to SaltPlayerSource
  • Larger codebase may be more complex to navigate for new contributors
  • Some reported issues with performance on newer Android versions

Code Comparison

SaltPlayerSource (Kotlin):

override fun onPlayFromMediaId(mediaId: String?, extras: Bundle?) {
    mediaId?.let {
        val songId = it.toLong()
        viewModelScope.launch {
            playSong(songId)
        }
    }
}

Timber (Java):

@Override
public void onPlayFromMediaId(String mediaId, Bundle extras) {
    long songId = Long.parseLong(mediaId);
    MusicPlayer.playAll(Collections.singletonList(songId), 0, false);
}

Both repositories implement similar functionality for playing media from a media ID, but SaltPlayerSource uses Kotlin coroutines for asynchronous execution, while Timber uses a more traditional Java approach.

🎶🎼 Very slim music player 👨‍🎤 100% made in Italy 🍕🌳🌞🍝🌄

Pros of Music-Player-GO

  • Lightweight and minimalist design, focusing on simplicity and ease of use
  • Open-source with a more active community and frequent updates
  • Supports Android 5.0 and above, offering wider device compatibility

Cons of Music-Player-GO

  • Limited advanced features compared to SaltPlayerSource
  • Lacks some customization options available in SaltPlayerSource
  • Does not support as many audio formats as SaltPlayerSource

Code Comparison

SaltPlayerSource (Kotlin):

override fun onPlaybackStateChanged(state: Int) {
    super.onPlaybackStateChanged(state)
    when (state) {
        PlaybackStateCompat.STATE_PLAYING -> startForeground()
        PlaybackStateCompat.STATE_PAUSED -> stopForeground(false)
    }
}

Music-Player-GO (Java):

@Override
public void onPlaybackStateChanged(PlaybackStateCompat state) {
    super.onPlaybackStateChanged(state);
    switch (state.getState()) {
        case PlaybackStateCompat.STATE_PLAYING:
            startForeground(NOTIFICATION_ID, buildNotification());
            break;
        case PlaybackStateCompat.STATE_PAUSED:
            stopForeground(false);
            break;
    }
}

Both repositories handle playback state changes similarly, but SaltPlayerSource uses Kotlin's more concise syntax, while Music-Player-GO uses Java. The core functionality remains the same, with both implementing foreground service management based on playback state.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Salt Player 数十万用户选择的本地音乐播放器

本页翻译:Русский,Indonesia

Salt Player 是一款本地音乐播放软件,本仓库用来发布新版本、收集反馈和发布通知

下载渠道

Android

Salt Player for Android 需要 Android 6.0 及以上系统,支持 arm-v8a 以及 armeabi-v7a 架构

渠道介绍发布
Moriafly标准包Github Release
酷安(仅 arm-v8a 架构)
Google PlayPlay 商店渠道包Google Play(动态下发)

注意:

  1. 请在正确的渠道下载本应用,请勿使用未知签名来源的安装文件
  2. Google Play 版本由谷歌签名发布,与此仓库安装包不兼容

Windows

详见 SPW 说明文件

开源相关

Salt UI

本地化适配

详见 Translations 说明文件

系统适配

系统功能状态说明
小米 MIUI/Hyper OS小米妙播🟢 支持1. 调用小米妙播功能需要 MIUI 12 及以上版本,点击 Salt Player 播放界面右上角按钮自动跳转
2. 此功能基于小米投屏相关系统组件,若无效请检测是否禁用了相关组件
外屏显示(如 Mix Flip)🟢 支持
MIUI/Hyper OS 小部件🟠 跟进中等待上架以及上架后审核
华为鸿蒙音乐控制中心🔴 不支持白名单控制以及未发现适配文档
vivo OriginOS/Funtouch OSjoviincar 智能车载🟢 支持1. 2024 年 8 月 29 日 vivo 智能车载 V4.0.7.3 版本添加了对 Salt Player 的支持,感谢向 vivo 反馈的用户和 vivo 的官方支持
2. 体验版,暂时不支持 joviincar 的歌词显示(不清楚适配方法),可通过车载蓝牙歌词模拟
Hi-Fi🔵 手动1. 通过 adb 的方式输入 settings put global game_support_hifi_list com.salt.music 添加
2. 添加 Salt Player 进入 Hi-Fi 列表后,进入系统设置 > 声音与振动 > Hi-Fi 页面启用
3. 设备是否支持 Hi-Fi 功能,请前往 vivo 官网产品页面了解
原子随身听🔴 不支持疑似白名单,未找到适配文档
#749
OPPO ColorOS流体云🟠 跟进中需要企业资格审核后进行特殊适配开发,请等待
魅族 Flyme状态栏歌词🟢 支持
灵动环🔴 不支持疑似白名单,未找到适配文档

不再维护或支持的功能

功能废弃时间说明
DSD 音频(.dsf/.dff)2024 年视为过时格式,推荐更换为 FLAC
详见 Salt Player 终止对 DSD 格式的维护和支持

法律信息

Android 是 Google LLC 的商标

Android 机器人是在 Google 原创及共享成果的基础上再创作或修改而成,须遵照知识共享署名 3.0 许可所述条款付诸应用

Salt Player 是寻浔科技(上海)有限公司在中华人民共和国的注册商标

更多相关法律信息请在软件内部以及相关网站查询