-
-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support remux/transcode fallback in new music player
- Loading branch information
1 parent
d18922f
commit 655b9ce
Showing
13 changed files
with
194 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
playback/core/src/main/kotlin/backend/PlayerBackendEventListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package org.jellyfin.playback.core.backend | ||
|
||
import org.jellyfin.playback.core.mediastream.MediaStream | ||
import org.jellyfin.playback.core.mediastream.PlayableMediaStream | ||
import org.jellyfin.playback.core.model.PlayState | ||
|
||
interface PlayerBackendEventListener { | ||
fun onPlayStateChange(state: PlayState) | ||
fun onVideoSizeChange(width: Int, height: Int) | ||
fun onMediaStreamEnd(mediaStream: MediaStream) | ||
fun onMediaStreamEnd(mediaStream: PlayableMediaStream) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
playback/core/src/main/kotlin/mediastream/MediaStreamResolver.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
package org.jellyfin.playback.core.mediastream | ||
|
||
import org.jellyfin.playback.core.queue.item.QueueEntry | ||
import org.jellyfin.playback.core.support.PlaySupportReport | ||
|
||
/** | ||
* Determine the media stream for a given queue item. | ||
*/ | ||
interface MediaStreamResolver { | ||
/** | ||
* @return [MediaStream] or null if no stream can be determined by this resolver | ||
* @return [PlayableMediaStream] or null if no stream can be determined by this resolver | ||
*/ | ||
suspend fun getStream(queueEntry: QueueEntry): MediaStream? | ||
suspend fun getStream( | ||
queueEntry: QueueEntry, | ||
testStream: (stream: MediaStream) -> PlaySupportReport, | ||
): PlayableMediaStream? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.