@@ -264,24 +264,24 @@ internal extension ExtPlayerProtocol {
264
264
265
265
timeControlObserver = player. observe ( \. timeControlStatus, options: [ . new, . old] ) { [ weak self] player, change in
266
266
switch player. timeControlStatus {
267
- case . paused:
268
- // This could mean playback has stopped, but it's not specific to end of playback
269
- Task { @MainActor in
270
- self ? . delegate? . didPausePlayback ( )
271
- }
272
- case . waitingToPlayAtSpecifiedRate:
273
- // Player is waiting to play (e.g., buffering)
274
- Task { @MainActor in
275
- self ? . delegate? . isWaitingToPlay ( )
276
- }
277
- case . playing:
278
- // Player is currently playing
279
- Task { @MainActor in
280
- self ? . delegate? . didStartPlaying ( )
267
+ case . paused:
268
+ // This could mean playback has stopped, but it's not specific to end of playback
269
+ Task { @MainActor in
270
+ self ? . delegate? . didPausePlayback ( )
271
+ }
272
+ case . waitingToPlayAtSpecifiedRate:
273
+ // Player is waiting to play (e.g., buffering)
274
+ Task { @MainActor in
275
+ self ? . delegate? . isWaitingToPlay ( )
276
+ }
277
+ case . playing:
278
+ // Player is currently playing
279
+ Task { @MainActor in
280
+ self ? . delegate? . didStartPlaying ( )
281
+ }
282
+ @unknown default :
283
+ break
281
284
}
282
- @unknown default :
283
- break
284
- }
285
285
}
286
286
287
287
currentItemObserver = player. observe ( \. currentItem, options: [ . new, . old, . initial] ) { [ weak self] player, change in
0 commit comments