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 0b061d6

Browse files
update
1 parent d0e9c26 commit 0b061d6

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

‎Sources/swiftui-loop-videoplayer/protocol/player/AbstractPlayer.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public protocol AbstractPlayer: AnyObject {
107107
func applyVideoComposition()
108108

109109
/// Updates the current playback asset, settings, and initializes playback or a specific action when the asset is ready.
110-
func update(settings: VideoSettings, doUpdate :Bool)
110+
func update(settings: VideoSettings)
111111
}
112112

113113
extension AbstractPlayer{

‎Sources/swiftui-loop-videoplayer/protocol/player/ExtPlayerProtocol.swift‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,9 @@ internal extension ExtPlayerProtocol {
170170
/// - Parameters:
171171
/// - settings: A `VideoSettings` struct containing configurations such as playback gravity, looping behavior,
172172
/// and whether the audio should be muted.
173-
/// - doUpdate: A `Bool` value indicating whether the player should update immediately with the new asset.
174-
/// Defaults to `false`, meaning the player will not change unless explicitly triggered.
175-
/// - callback: An optional closure that takes an `AVPlayerItem` as its parameter. This is called when the
176-
/// player item transitions to the `.readyToPlay` status, allowing for additional customization
177-
/// or actions once the asset is prepared.
178-
func update(
179-
settings: VideoSettings,
180-
doUpdate : Bool = false
181-
) {
173+
func update(settings: VideoSettings) {
182174

183-
if doUpdate ==false && settings.isEqual(currentSettings){
175+
if settings.isEqual(currentSettings){
184176
return
185177
}
186178

0 commit comments

Comments
(0)

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