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

View File

@ -72,10 +72,14 @@ final class MediaViewModel: ViewModel, Stateful {
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()
.map { userView in
.compactMap { userView in
if userView.collectionType == "livetv" {
return .liveTV(userView)
// return .liveTV(userView)
return nil
}
return .collectionFolder(userView)

View File

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

View File

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