Skip to content

Commit

Permalink
Update BaseItemDto+VideoPlayerViewModel.swift
Browse files Browse the repository at this point in the history
Review suggestions
  • Loading branch information
holow29 authored Jan 12, 2024
1 parent e7ecd34 commit 8b94bdf
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2023 Jellyfin & Jellyfin Contributors
// Copyright (c) 2024 Jellyfin & Jellyfin Contributors
//

import Combine
Expand All @@ -17,11 +17,10 @@ extension BaseItemDto {

func videoPlayerViewModel(with mediaSource: MediaSourceInfo) async throws -> VideoPlayerViewModel {

let builder = DeviceProfileBuilder()
let currentVideoPlayerType = Defaults[.VideoPlayer.videoPlayerType]
// TODO: fix bitrate settings
let tempOverkillBitrate = 360_000_000
builder.setMaxBitrate(bitrate: tempOverkillBitrate)
let profile = builder.buildProfile()
let profile = DeviceProfileBuilder.buildProfile(for: currentVideoPlayerType, maxBitrate: tempOverkillBitrate)

let userSession = Container.userSession.callAsFunction()

Expand Down

0 comments on commit 8b94bdf

Please sign in to comment.