Skip to content
Snippets Groups Projects
Unverified Commit 0fa0b5d2 authored by Antoine POPINEAU's avatar Antoine POPINEAU
Browse files

Added support for Flac.

parent e8445539
No related branches found
No related tags found
No related merge requests found
......@@ -100,9 +100,12 @@ dependencies {
implementation("com.google.android.material:material:1.1.0-beta01")
implementation("com.android.support.constraint:constraint-layout:1.1.3")
implementation("com.google.android.exoplayer:exoplayer:2.10.3")
implementation("com.google.android.exoplayer:exoplayer:2.10.5")
implementation("com.google.android.exoplayer:extension-mediasession:2.10.6")
implementation("com.google.android.exoplayer:extension-cast:2.10.6")
implementation("com.github.PaulWoitaschek.ExoPlayer-Extensions:extension-flac:2.10.5") {
isTransitive = false
}
implementation("com.aliassadi:power-preference-lib:1.4.1")
implementation("com.github.kittinunf.fuel:fuel:2.1.0")
implementation("com.github.kittinunf.fuel:fuel-coroutines:2.1.0")
......
......@@ -38,6 +38,11 @@ class LicencesActivity : AppCompatActivity() {
"Apache License 2.0",
"https://github.com/google/ExoPlayer/blob/release-v2/LICENSE"
),
Licence(
"ExoPlayer-Extensions",
"Apache License 2.0",
"https://github.com/PaulWoitaschek/ExoPlayer-Extensions/blob/master/LICENSE"
),
Licence(
"Fuel",
"MIT License",
......
......@@ -403,6 +403,7 @@ class PlayerService : Service() {
}
override fun onPlayerError(error: ExoPlaybackException?) {
log(error.toString())
EventBus.send(
Event.PlaybackError(
getString(R.string.error_playback)
......
......@@ -94,6 +94,8 @@ class QueueManager(val context: Context) {
val sources = tracks.map { track ->
val url = mustNormalizeUrl(track.bestUpload()?.listen_url ?: "")
log(url)
ProgressiveMediaSource.Factory(factory).createMediaSource(Uri.parse(url))
}
......
......@@ -14,6 +14,7 @@ allprojects {
repositories {
google()
jcenter()
maven(url = "https://jitpack.io")
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment