Skip to content

Commit 36a9d95

Browse files
authored
fix: add 1440p resolution and use correct SDK version (#18)
1 parent caf5d48 commit 36a9d95

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

Sources/MuxPlayerSwift/PublicAPI/Options/PlaybackOptions.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public enum ResolutionTier {
1717
/// not exceed 1080p (1080 x 1920)
1818
case upTo1080p
1919
/// The asset will stream with a resolution that does
20+
/// not exceed 1440p (1440 x 2560)
21+
case upTo1440p
22+
/// The asset will stream with a resolution that does
2023
/// not exceed 2160 (2160 x 4096)
2124
case upTo2160p
2225
}
@@ -30,6 +33,8 @@ extension ResolutionTier {
3033
return "720p"
3134
case .upTo1080p:
3235
return "1080p"
36+
case .upTo1440p:
37+
return "1440p"
3338
case .upTo2160p:
3439
return "2160p"
3540
}

Sources/MuxPlayerSwift/PublicAPI/Version/SemanticVersion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public struct SemanticVersion {
1111
public static let major = 0
1212

1313
/// Minor version component.
14-
public static let minor = 1
14+
public static let minor = 4
1515

1616
/// Patch version component.
1717
public static let patch = 0

Tests/MuxPlayerSwift/PlaybackURLTests.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,18 @@ final class PlaybackURLTests: XCTestCase {
2323
let expectedURLs: [String: String] = [
2424
ResolutionTier.upTo720p.queryValue: "https://stream.mux.com/abc.m3u8?redundant_streams=true&max_resolution=720p",
2525
ResolutionTier.upTo1080p.queryValue: "https://stream.mux.com/abc.m3u8?redundant_streams=true&max_resolution=1080p",
26+
ResolutionTier.upTo1440p.queryValue: "https://stream.mux.com/abc.m3u8?redundant_streams=true&max_resolution=1440p",
2627
ResolutionTier.upTo2160p.queryValue: "https://stream.mux.com/abc.m3u8?redundant_streams=true&max_resolution=2160p",
2728
ResolutionTier.default.queryValue: "https://stream.mux.com/abc.m3u8?redundant_streams=true",
2829
]
2930

30-
let tiers: [ResolutionTier] = [.upTo720p, .upTo1080p, .upTo2160p, .default]
31+
let tiers: [ResolutionTier] = [
32+
.upTo720p,
33+
.upTo1080p,
34+
.upTo1440p,
35+
.upTo2160p,
36+
.default
37+
]
3138

3239
for tier in tiers {
3340
let playbackOptions = PlaybackOptions(

0 commit comments

Comments
 (0)