All Projects → EspoirX → Starrysky

EspoirX / Starrysky

Licence: mit
🔥A Powerful and Streamline MusicLibrary(一个丰富的音乐播放封装库,支持多种音频格式,完美解决你的问题。)

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Starrysky

Tauonmusicbox
The Linux desktop music player from the future! 🌆
Stars: ✭ 494 (-51.66%)
Mutual labels:  music, music-player, flac, music-library
Jetpack Musicplayer
即使不用云音乐听曲儿,也请务必收藏好该库!🔥 一行代码即可接入,音乐播放控制组件 - Even if you don't listen to the music by Spotify, be sure to collect this library, please! 🔥 This music player component can be accessed by only one line of code. Supporting by LiveData & AndroidX.
Stars: ✭ 577 (-43.54%)
Mutual labels:  music, music-player, music-library, musicplayer
smart rtmpd
RTMP server, smart, compact, high performance(c, c++), high concurrency, easy to maintain, easy to deploy, (supports multiple operating systems Windows and Linux, ARM, FreeBSD)
Stars: ✭ 159 (-84.44%)
Mutual labels:  hls, rtmp, m3u8
p2p-cdn-sdk-android
Free p2p cdn android github sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀
Stars: ✭ 39 (-96.18%)
Mutual labels:  hls, m3u8, exoplayer
Simple Netease Cloud Music
🎵A simple netease music api lib. 简单、统一、轻巧的 Node.js 版网易云音乐 API
Stars: ✭ 268 (-73.78%)
Mutual labels:  music, music-player, music-library
Html5 Dash Hls Rtmp
🌻 HTML5播放器、M3U8直播/点播、RTMP直播、低延迟、推流/播流地址鉴权
Stars: ✭ 1,805 (+76.61%)
Mutual labels:  m3u8, hls, rtmp
Mediasdk
The library is working for downloading video while playing the video, the video contains M3U8/MP4
Stars: ✭ 164 (-83.95%)
Mutual labels:  m3u8, exoplayer, hls
Quodlibet
Music player and music library manager for Linux, Windows, and macOS
Stars: ✭ 918 (-10.18%)
Mutual labels:  music, music-player, music-library
Musicott
JavaFX application that manages and plays music files.
Stars: ✭ 97 (-90.51%)
Mutual labels:  music, music-player, music-library
Lal
🔥 Golang live stream lib/client/server. support RTMP/RTSP/HLS/HTTP[S]-FLV/HTTP-TS, H264/H265/AAC, relay, cluster, record, HTTP API/Notify, GOP cache. 官方文档见 https://pengrl.com/lal
Stars: ✭ 480 (-53.03%)
Mutual labels:  m3u8, hls, rtmp
Diffuse
A music player that connects to your cloud/distributed storage.
Stars: ✭ 517 (-49.41%)
Mutual labels:  music, music-player, music-library
Media Server
RTSP/RTP/RTMP/FLV/HLS/MPEG-TS/MPEG-PS/MPEG-DASH/MP4/fMP4/MKV/WebM
Stars: ✭ 1,363 (+33.37%)
Mutual labels:  m3u8, hls, rtmp
Android P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 70 (-93.15%)
Mutual labels:  m3u8, exoplayer, hls
Android-hls
最近公司产品需要,调研hls(m3u8) aes-128 解密播放 . 分析 51Cto, 慕课
Stars: ✭ 73 (-92.86%)
Mutual labels:  hls, m3u8, exoplayer
Nicemusic
A Nice MusicPlayer Powered by StarrySky
Stars: ✭ 107 (-89.53%)
Mutual labels:  music, music-player, music-library
cordova-plugin-tencent-liteav
A cordova plugin for video playing with Tencent's LiteAV SDK. Support RTMP/HLS/FLV/MP4.
Stars: ✭ 24 (-97.65%)
Mutual labels:  hls, rtmp, m3u8
Musicbox
😊 🎵 MusicPlayer 一站式收听多平台音乐(网易云, 虾米, QQ)的跨平台音乐播放器,尽情享受吧~✨
Stars: ✭ 1,130 (+10.57%)
Mutual labels:  music, music-player, musicplayer
Guayadeque
Guayadeque is a music management program designed for all music enthusiasts. It is Full Featured Linux media player that can easily manage large collections and uses the Gstreamer media framework.
Stars: ✭ 87 (-91.49%)
Mutual labels:  music, music-player, music-library
Hyperamp
🎛 Humble music player
Stars: ✭ 293 (-71.33%)
Mutual labels:  music, music-player, music-library
Fantasy
A music player based exoplayer. exquisite and fluent.
Stars: ✭ 23 (-97.75%)
Mutual labels:  music, exoplayer, musicplayer

A Powerful and Streamline MusicLibrary

Download

StarrySky

StarrySky MusicLibrary Music 音频集成

一个丰富,舒服的音乐播放封装库,针对快速集成音频播放功能,减少大家搬砖的时间,你值得拥有。

特点

  • 上百个 API,满足你一切播放欲望。
  • 只需要正确的播放地址,即可轻松播放本地和网络音频。
  • 集成和调用API非常简单,音频功能几乎可以集成到一个语句中。
  • 提供丰富的API方法来轻松实现各种功能。
  • 一句话集成自定义通知栏和系统通知栏,支持通知栏自由切换。
  • 使用 ExoPlayer 作为默认底层播放器,但支持自定义实现。
  • 基于 ExoPlayer 支持多种普通音频格式并支持多种流式音频格式(DASH, SmoothStreaming, HLS,rtmp,flac)。
  • 支持边播边存功能,没网也能播。支持自定义缓存实现。
  • 通知栏,缓存,播放器等都支持自定义实现,高度的扩展性。
  • 支持 SoundPool 使用,支持均衡器音效,操作简单。
  • 等等等等

若在使用中发现 Bug 或者有什么建议问题的可以在 issues 中提出或者添加 QQ 群交流,欢迎反馈。

集成

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.lzx:StarrySkyX:x.x.x'
}

x.x.x 填的是当前的版本号。(有些人反馈说看不到版本号,版本号在 Readme 一开始就有标明,若看不到可以查看代码 gradle 文件或者加群咨询)

请使用 Java8。此为 androidx 版本,请支持 androidx。 (如果不是 androidx,可以通过下载源码的方式拷贝到自己项目中使用,然后自己修改,只有几个类要改而已,很简单)

如果导入不了可以试试加上这个:

maven{
    url "https://dl.bintray.com/lizixian/StarrySky/"
}

按需导入

因为目前默认播放器 ExoPlayer 使用的是 2.12.0 版本,所以以下依赖都使用相同版本

若要支持 dash 类流音频,请另外导入

dependencies {
   implementation 'com.google.android.exoplayer:exoplayer-dash:2.12.0'
}

若要支持 hls 类流音频,请另外导入

dependencies {
    implementation 'com.google.android.exoplayer:exoplayer-hls:2.12.0'
}

若要支持 smoothstreaming 类流音频,请另外导入

dependencies {
    implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.12.0'
}

若要支持 rtmp 类流音频,请另外导入

dependencies {
    implementation 'com.google.android.exoplayer:extension-rtmp:2.12.0'
}

若需支持 flac 无损音频,请另外导入

dependencies {
    implementation 'com.lzx:StarrySkyFlacExt:1.0.0'
}

flac 音频特别说明:
ExoPlayer 要播放 flac 音频,是需要自己编译 so 的,具体怎么操作可以看 ExoPlayer 的 github,本项目已经把编译好的代码放在了 extension-flac2120 这个 module 里面,2120 代表 版本号是 2.12.0。大家可以通过上面说明添加依赖即可轻松使用。

若不知道要导入哪一种,可以在播放时抛出的异常崩溃中根据异常信息提示导入。

初始化

下面是最简单的初始化以及播放音频代码,更多功能请阅读使用文档或者查看项目demo。

open class TestApplication : Application() {

    @Override
    override fun onCreate() {
        super.onCreate()
        StarrySky.init(this).apply()
    }
}

//简单播放一首歌曲
val info = SongInfo()
info.songId = "111" 
info.songUrl = "http://music.163.com/song/media/outer/url?id=317151.mp3"
StarrySky.with().playMusicByInfo(info)

SongInfo 是 StarrySky 播放信息的载体,至少要配置 songId 和 songUrl 才能播放一首音频,其中 songId 是该音频的唯一标识。

几乎所有 API 都是通过 StarrySky.with() 方法去调用,API 本身也会有注释。

使用文档

PS:

  • 如果有兴趣,建议稍微阅读一下源码,这样对使用或者解决问题有很大帮助。
  • 如果发现库中功能满足不了你的需求,建议通过下载源码修改成你要的样子来使用。
  • 如果该项目对你有所帮助,欢迎 star 或 fork,谢谢各位。

成功案例

StarrySky 目前为止有 17000+ 的下载量,感谢各位开发者的支持,下面是部分 app 成功案例。

(还有很多 App,只不过没要到 😂 。如有违法或者侵权行为请联系我删除!)

QQ群(929420228)


StarrySky交流和反馈

你的打赏是我改 Bug 的动力

关于我

An android developer in GuangZhou

掘金:https://juejin.im/user/5861c3bb128fe10069e69f0a

语雀:https://www.yuque.com/espoir

Email:[email protected]

If you want to make friends with me, You can give me a Email and follow me。

License

MIT License

Copyright (c) [2018] [lizixian]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].