Skip to content

Commit

Permalink
rename the getVideoResolution function
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepanokdev committed Nov 3, 2023
1 parent d3aaaf2 commit ce3f80a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Course/Course/Presentation/Video/EncodedVideoPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public struct EncodedVideoPlayer: View {
PlayerViewController(
videoURL: viewModel.url,
controller: viewModel.controller,
bitrate: viewModel.getBitRate(),
bitrate: viewModel.getVideoResolution(),
progress: { progress in
if progress >= 0.8 {
if !isViewedOnce {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class EncodedVideoPlayerViewModel: VideoPlayerViewModel {
}).store(in: &subscription)
}

func getBitRate() -> CGSize {
func getVideoResolution() -> CGSize {
switch appStorage.userSettings?.streamingQuality {
case .auto:
return CGSize(width: 1280, height: 720)
Expand Down

0 comments on commit ce3f80a

Please sign in to comment.