Skip to content

Commit 24d4cbd

Browse files
committed
Add 1.75x playback speed
1 parent 46debd3 commit 24d4cbd

File tree

7 files changed

+32
-2
lines changed

7 files changed

+32
-2
lines changed

PlayerUI/Definitions/Images.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ extension NSImage {
102102
return playerBundle.image(forResource: "speed-15")!
103103
}
104104

105+
static var PUISpeedOneAndThreeFourths: NSImage {
106+
return playerBundle.image(forResource: "speed-175")!
107+
}
108+
105109
static var PUISpeedTwo: NSImage {
106110
return playerBundle.image(forResource: "speed-2")!
107111
}

PlayerUI/Definitions/Speeds.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ public enum PUIPlaybackSpeed: Float {
1313
case normal = 1
1414
case midFast = 1.25
1515
case fast = 1.5
16+
case faster = 1.75
1617
case fastest = 2
1718

1819
public static var all: [PUIPlaybackSpeed] {
19-
return [.slow, .normal, .midFast, .fast, .fastest]
20+
return [.slow, .normal, .midFast, .fast, .faster, .fastest]
2021
}
2122

2223
static var supportedPlaybackRates: [NSNumber] {
@@ -33,6 +34,8 @@ public enum PUIPlaybackSpeed: Float {
3334
return .PUISpeedOneAndFourth
3435
case .fast:
3536
return .PUISpeedOneAndHalf
37+
case .faster:
38+
return .PUISpeedOneAndThreeFourths
3639
case .fastest:
3740
return .PUISpeedTwo
3841
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "speed-175.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"filename" : "[email protected]",
10+
"idiom" : "universal",
11+
"scale" : "2x"
12+
},
13+
{
14+
"filename" : "[email protected]",
15+
"idiom" : "universal",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"author" : "xcode",
21+
"version" : 1
22+
}
23+
}
793 Bytes
Loading
1.55 KB
Loading
2.59 KB
Loading

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Watch this year's videos as they're released and access videos from previous yea
1818

1919
### Video features
2020

21-
- Watch videos in 0.5x, 1x, 1.5x or 2x speeds
21+
- Watch videos in 0.5x, 1x, 1.25x, 1.5x, 1.75x or 2x speeds
2222
- Fullscreen and native picture-in-picture support
2323
- Navigate video contents easily with the help of transcripts
2424

0 commit comments

Comments
 (0)