iOS - Temporarily Disable LiveTV and Advanced Video Player Action (#1013)

This commit is contained in:
Ethan Pippin 2024-04-02 23:10:22 -06:00 committed by GitHub
parent 437f7a3995
commit fb100b8da1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 12 deletions

View File

@ -9,9 +9,10 @@
import Defaults import Defaults
import Foundation import Foundation
// TODO: atow, advanced was removed to be redesigned before being released
enum VideoPlayerActionButton: String, CaseIterable, Defaults.Serializable, Displayable, Identifiable { enum VideoPlayerActionButton: String, CaseIterable, Defaults.Serializable, Displayable, Identifiable {
case advanced // case advanced
case aspectFill case aspectFill
case audio case audio
case autoPlay case autoPlay
@ -23,8 +24,8 @@ enum VideoPlayerActionButton: String, CaseIterable, Defaults.Serializable, Displ
var displayTitle: String { var displayTitle: String {
switch self { switch self {
case .advanced: // case .advanced:
return "Advanced" // return "Advanced"
case .aspectFill: case .aspectFill:
return "Aspect Fill" return "Aspect Fill"
case .audio: case .audio:
@ -50,8 +51,8 @@ enum VideoPlayerActionButton: String, CaseIterable, Defaults.Serializable, Displ
var settingsSystemImage: String { var settingsSystemImage: String {
switch self { switch self {
case .advanced: // case .advanced:
return "gearshape.fill" // return "gearshape.fill"
case .aspectFill: case .aspectFill:
return "arrow.up.left.and.arrow.down.right" return "arrow.up.left.and.arrow.down.right"
case .audio: case .audio:
@ -83,6 +84,6 @@ enum VideoPlayerActionButton: String, CaseIterable, Defaults.Serializable, Displ
.subtitles, .subtitles,
.playbackSpeed, .playbackSpeed,
.chapters, .chapters,
.advanced, // .advanced,
] ]
} }

View File

@ -72,10 +72,14 @@ final class MediaViewModel: ViewModel, Stateful {
mediaItems.removeAll() mediaItems.removeAll()
} }
// TODO: atow, liveTV is removed because it wasn't fixed in time
// after a giant refactor and to push an update
let media: [MediaType] = try await getUserViews() let media: [MediaType] = try await getUserViews()
.map { userView in .compactMap { userView in
if userView.collectionType == "livetv" { if userView.collectionType == "livetv" {
return .liveTV(userView) // return .liveTV(userView)
return nil
} }
return .collectionFolder(userView) return .collectionFolder(userView)

View File

@ -139,8 +139,8 @@ extension VideoPlayer.Overlay {
HStack(spacing: 0) { HStack(spacing: 0) {
ForEach(barActionButtons) { actionButton in ForEach(barActionButtons) { actionButton in
switch actionButton { switch actionButton {
case .advanced: // case .advanced:
advancedButton // advancedButton
case .aspectFill: case .aspectFill:
aspectFillButton aspectFillButton
case .audio: case .audio:

View File

@ -151,8 +151,8 @@ extension VideoPlayer.Overlay {
Menu { Menu {
ForEach(menuActionButtons) { actionButton in ForEach(menuActionButtons) { actionButton in
switch actionButton { switch actionButton {
case .advanced: // case .advanced:
advancedButton // advancedButton
case .aspectFill: case .aspectFill:
aspectFillButton aspectFillButton
case .audio: case .audio: