Skip to content

Commit ccb1704

Browse files
committed
minor fix
1 parent 20f47f2 commit ccb1704

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

SwiftAudioEx/Classes/AVPlayerWrapper/AVPlayerWrapperProtocol.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
import AVFoundation
1010

1111

12-
protocol AVPlayerWrapperProtocol: class {
12+
protocol AVPlayerWrapperProtocol: AnyObject {
1313

1414
var state: AVPlayerWrapperState { get }
1515

@@ -53,7 +53,9 @@ protocol AVPlayerWrapperProtocol: class {
5353

5454
func load(from url: URL, playWhenReady: Bool, initialTime: TimeInterval?, options: [String: Any]?)
5555

56-
func preload(item: AudioItem)
56+
func preload(item: AudioItem)
5757

58-
func cancelPreload(item: AudioItem)
58+
func cancelAllPreloads()
59+
60+
func cancelPreload(item: AudioItem)
5961
}

0 commit comments

Comments
 (0)