iOS - Temporarily Disable LiveTV and Advanced Video Player Action (#1013)
This commit is contained in:
parent
437f7a3995
commit
fb100b8da1
|
@ -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,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue