mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Revert exoplayer upgrade
This commit is contained in:
parent
308ddf6c7c
commit
862ea71b11
3 changed files with 2 additions and 7 deletions
|
|
@ -78,7 +78,7 @@ dependencies {
|
||||||
implementation "com.github.woltapp:blurhash:f41a23cc50"
|
implementation "com.github.woltapp:blurhash:f41a23cc50"
|
||||||
|
|
||||||
// Exoplayer
|
// Exoplayer
|
||||||
implementation 'com.google.android.exoplayer:exoplayer:2.13.3'
|
implementation 'com.google.android.exoplayer:exoplayer:2.12.2'
|
||||||
|
|
||||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
||||||
annotationProcessor "androidx.room:room-compiler:2.2.6"
|
annotationProcessor "androidx.room:room-compiler:2.2.6"
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ public class MultiPlayer implements Playback {
|
||||||
MediaSourceFactory mediaSourceFactory = new UnknownMediaSourceFactory(buildDataSourceFactory());
|
MediaSourceFactory mediaSourceFactory = new UnknownMediaSourceFactory(buildDataSourceFactory());
|
||||||
exoPlayer = new SimpleExoPlayer.Builder(context).setMediaSourceFactory(mediaSourceFactory).build();
|
exoPlayer = new SimpleExoPlayer.Builder(context).setMediaSourceFactory(mediaSourceFactory).build();
|
||||||
// TODO: “Player is accessed on the wrong thread” suppressed
|
// TODO: “Player is accessed on the wrong thread” suppressed
|
||||||
exoPlayer.setThrowsWhenUsingWrongThread(false);
|
// exoPlayer.setThrowsWhenUsingWrongThread(false);
|
||||||
|
|
||||||
exoPlayer.addListener(eventListener);
|
exoPlayer.addListener(eventListener);
|
||||||
exoPlayer.prepare();
|
exoPlayer.prepare();
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ package com.cappielloantonio.play.service
|
||||||
|
|
||||||
import com.google.android.exoplayer2.MediaItem
|
import com.google.android.exoplayer2.MediaItem
|
||||||
import com.google.android.exoplayer2.drm.DrmSessionManager
|
import com.google.android.exoplayer2.drm.DrmSessionManager
|
||||||
import com.google.android.exoplayer2.drm.DrmSessionManagerProvider
|
|
||||||
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
|
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory
|
||||||
import com.google.android.exoplayer2.source.MediaSource
|
import com.google.android.exoplayer2.source.MediaSource
|
||||||
import com.google.android.exoplayer2.source.MediaSourceFactory
|
import com.google.android.exoplayer2.source.MediaSourceFactory
|
||||||
|
|
@ -55,10 +54,6 @@ class UnknownMediaSourceFactory(dataSourceFactory: DataSource.Factory) : MediaSo
|
||||||
return sourceFactory.createMediaSource(mediaItem)
|
return sourceFactory.createMediaSource(mediaItem)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun setDrmSessionManagerProvider(drmSessionManagerProvider: DrmSessionManagerProvider?): MediaSourceFactory {
|
|
||||||
TODO("Not yet implemented")
|
|
||||||
}
|
|
||||||
|
|
||||||
private suspend fun httpGet(url: String?): String? {
|
private suspend fun httpGet(url: String?): String? {
|
||||||
return withContext(Dispatchers.IO) {
|
return withContext(Dispatchers.IO) {
|
||||||
val request = URL(url)
|
val request = URL(url)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue