-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache computed PlayableMediaStream in QueueEntry element
- Loading branch information
1 parent
01642e6
commit de04539
Showing
2 changed files
with
24 additions
and
7 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
12 changes: 12 additions & 0 deletions
12
playback/core/src/main/kotlin/mediastream/QueueEntryMediaStream.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.jellyfin.playback.core.mediastream | ||
|
||
import org.jellyfin.playback.core.element.ElementKey | ||
import org.jellyfin.playback.core.element.element | ||
import org.jellyfin.playback.core.queue.QueueEntry | ||
|
||
private val mediaStreamKey = ElementKey<PlayableMediaStream>("MediaStream") | ||
|
||
/** | ||
* Get or set the [MediaStream] for this [QueueEntry]. | ||
*/ | ||
var QueueEntry.mediaStream by element(mediaStreamKey) |