Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c98a2e81f1 |
@@ -80,6 +80,12 @@ public enum PlayerError: Int {
|
||||
func pause()
|
||||
}
|
||||
|
||||
public extension Player {
|
||||
var ended: Bool {
|
||||
return self.time >= self.duration
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Identity Protocols
|
||||
|
||||
/// A player that adopts the ProvidesView protocol is capable of providing a view to be added to a view hierarchy.
|
||||
|
||||
@@ -119,10 +119,6 @@ extension AVMediaSelectionOption: TextTrackMetadata {
|
||||
return self.player.rate > 0
|
||||
}
|
||||
|
||||
public var ended: Bool {
|
||||
return self.time >= self.duration
|
||||
}
|
||||
|
||||
public var error: NSError? {
|
||||
return self.player.errorForPlayerOrItem
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user