Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 41c0b13

Browse files
update
1 parent 76dd127 commit 41c0b13

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ video_main.m3u8
304304
| `duration(CMTime)` | Provides the duration of the AVPlayerItem when it is ready to play. The duration is given in `CMTime`. |
305305

306306
## Player event filter
307-
`PlayerEventFilter` - this enum provides a structured way to filter `PlayerEvent` cases. I decided to introduce an additional structure that corresponds to `PlayerEvent`. All cases with parameters are replicated as *eventName***Any** to match any variation of that event, regardless of its associated values.
307+
`PlayerEventFilter` - this enum provides a structured way to filter `PlayerEvent` cases. I decided to introduce an additional structure that corresponds to `PlayerEvent`. All cases with parameters are replicated as *eventName***Any** to match any variation of that event, regardless of its associated values. If you need specific events that match certain event parameters, let me know, and I will add them.
308308

309309
```swift
310310
ExtVideoPlayer{

‎Sources/swiftui-loop-videoplayer/view/helpers/PlayerCoordinator.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ import AVKit
1515
@MainActor
1616
internal class PlayerCoordinator: NSObject, PlayerDelegateProtocol {
1717

18+
/// Publisher that emits player events, allowing observers to react to changes in playback state
1819
let eventPublisher: PassthroughSubject<PlayerEvent, Never>
1920

21+
/// Publisher that emits the current playback time as a Double, allowing real-time tracking of progress
2022
let timePublisher: PassthroughSubject<Double, Never>
2123

2224
/// Stores the last command applied to the player.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /