@@ -14,7 +14,7 @@ extension ZonPlayer {
1414 var play : Delegate < ( ZonPlayable , Float ) , Void > ? { get nonmutating set }
1515 var pause : Delegate < ZonPlayable , Void > ? { get nonmutating set }
1616 var finish : Delegate < ( ZonPlayable , URL ) , Void > ? { get nonmutating set }
17- var error : Delegate < ( ZonPlayable , ZonPlayer . Error ) , Void > ? { get nonmutating set }
17+ var error : Delegate < ( ZonPlayable ? , ZonPlayer . Error ) , Void > ? { get nonmutating set }
1818 var progress : Delegate < ( ZonPlayable , TimeInterval , TimeInterval ) , Void > ? { get nonmutating set }
1919 var duration : Delegate < ( ZonPlayable , TimeInterval ) , Void > ? { get nonmutating set }
2020 var background : Delegate < ( ZonPlayable , Bool ) , Void > ? { get nonmutating set }
@@ -63,7 +63,7 @@ extension ZonPlayer.Observable {
6363 }
6464
6565 /// Listen to player failed because of an error.
66- public func onError< T: AnyObject > ( _ target: T , block: ( ( T , ( ZonPlayable , ZonPlayer . Error ) ) -> Void ) ? ) -> Self {
66+ public func onError< T: AnyObject > ( _ target: T , block: ( ( T , ( ZonPlayable ? , ZonPlayer . Error ) ) -> Void ) ? ) -> Self {
6767 error = ( error ?? . init( ) ) . delegate ( on: target, block: block)
6868 return self
6969 }
0 commit comments