* Rename ExperimentalSettingsView.swift to PlaybackQualitySettingsView.swift Fix Merge * Rename MaximumBitrateSettingsView.swift to PlaybackQualitySettingsView.swift fix merge * Re-implement on Main. Should now have all the Main changed. Added a new change to use the Device Profile as a Transcoding Profile. * Part 1 -> Making VideoPlayerType into a struct (I Hope) correctly * Part 1.1 -> Making VideoPlayerType into a struct (I Hope) correctly * Remove unneeded Files * Missing file + CustomDeviceProfileSelection -> CustomDeviceProfileAction Rename * Change + to Appending * Attempt to add StorageValues+User. Not sure if this is correct? * Move the Array unwrapping to funcitons. Not required but this should help prevent accidently doing this wrong. Add subtitles back into the custom profiles since that somehow got dropped. Added a PlaybackCompatibility enum. This might need to work for more than just video * Complete rewrite to allow multiple profiles, compatibility mode, and directplay. * Hardward -> Hardware * Update CustomDeviceProfileSettingsView.swift Double Licensing * It was actually really easy to implement iOS... Trash cans still look weird and small. * Swipe to Delete instead of the edit button * wip * wip * Linting * tvOS Implementation * wip * wip * cleanup * Create Package.resolved --------- Co-authored-by: Joseph Kribs <joseph@kribs.net> Co-authored-by: Ethan Pippin <ethanpippin2343@gmail.com>
52 lines
1.1 KiB
Swift
52 lines
1.1 KiB
Swift
//
|
|
// Swiftfin is subject to the terms of the Mozilla Public
|
|
// 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) 2024 Jellyfin & Jellyfin Contributors
|
|
//
|
|
|
|
import Defaults
|
|
|
|
enum MediaContainer: String, CaseIterable, Codable, Displayable, Defaults.Serializable {
|
|
|
|
case avi
|
|
case flv
|
|
case m4v
|
|
case mkv
|
|
case mov
|
|
case mp4
|
|
case mpegts
|
|
case ts
|
|
case threeG2 = "3g2"
|
|
case threeGP = "3gp"
|
|
case webm
|
|
|
|
var displayTitle: String {
|
|
switch self {
|
|
case .avi:
|
|
return "AVI"
|
|
case .flv:
|
|
return "FLV"
|
|
case .m4v:
|
|
return "M4V"
|
|
case .mkv:
|
|
return "MKV"
|
|
case .mov:
|
|
return "MOV"
|
|
case .mp4:
|
|
return "MP4"
|
|
case .mpegts:
|
|
return "MPEG-TS"
|
|
case .ts:
|
|
return "TS"
|
|
case .threeG2:
|
|
return "3G2"
|
|
case .threeGP:
|
|
return "3GP"
|
|
case .webm:
|
|
return "WEBM"
|
|
}
|
|
}
|
|
}
|