mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-29 23:13:01 +02:00
Clear up some old unstable api tags
This commit is contained in:
@@ -34,7 +34,6 @@ object PlaybackClientController {
|
|||||||
var executorService = Executors.newCachedThreadPool()
|
var executorService = Executors.newCachedThreadPool()
|
||||||
val cache = LruCache<Int, SessionToken>(1)
|
val cache = LruCache<Int, SessionToken>(1)
|
||||||
|
|
||||||
@androidx.annotation.OptIn(androidx.media3.common.util.UnstableApi::class)
|
|
||||||
fun prepareController(
|
fun prepareController(
|
||||||
controllerID: String,
|
controllerID: String,
|
||||||
videoUri: String,
|
videoUri: String,
|
||||||
|
@@ -72,12 +72,12 @@ class WssOrHttpFactory(httpClient: OkHttpClient) : MediaSource.Factory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@UnstableApi // Extend MediaSessionService
|
|
||||||
class PlaybackService : MediaSessionService() {
|
class PlaybackService : MediaSessionService() {
|
||||||
private var videoViewedPositionCache = VideoViewedPositionCache()
|
private var videoViewedPositionCache = VideoViewedPositionCache()
|
||||||
|
|
||||||
private var managerAllInOne: MultiPlayerPlaybackManager? = null
|
private var managerAllInOne: MultiPlayerPlaybackManager? = null
|
||||||
|
|
||||||
|
@OptIn(UnstableApi::class)
|
||||||
fun newAllInOneDataSource(): MediaSource.Factory {
|
fun newAllInOneDataSource(): MediaSource.Factory {
|
||||||
// This might be needed for live kit.
|
// This might be needed for live kit.
|
||||||
// return WssOrHttpFactory(HttpClientManager.getHttpClient())
|
// return WssOrHttpFactory(HttpClientManager.getHttpClient())
|
||||||
|
Reference in New Issue
Block a user