Fix bitrate not set for external player profile (#1073)

This commit is contained in:
Niels van Velzen authored and GitHub committed 2023-05-17 21:50:22 +02:00
1 parent 275812704d
commit 1b640f34fd
2 files changed
+2

No files matched your search

@@ -101,6 +101,7 @@ class ExternalPlayer(
startTimeTicks = playOptions.startPositionTicks,
audioStreamIndex = playOptions.audioStreamIndex,
subtitleStreamIndex = playOptions.subtitleStreamIndex,
maxStreamingBitrate = playOptions.maxBitrate,
).onSuccess { jellyfinMediaSource ->
playMediaSource(playOptions, jellyfinMediaSource)
}.onFailure { error ->
@@ -203,6 +203,7 @@ class DeviceProfileBuilder(
containerProfiles = emptyList(),
codecProfiles = emptyList(),
subtitleProfiles = getSubtitleProfiles(EXTERNAL_PLAYER_SUBTITLES, EXTERNAL_PLAYER_SUBTITLES),
maxStreamingBitrate = MAX_STREAMING_BITRATE,
// TODO: remove redundant defaults after API/SDK is fixed
timelineOffsetSeconds = 0,