Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b042c3ee6c | |||
| ee5db0c0d5 | |||
| a9509d454f |
@@ -25,13 +25,13 @@ SwiftAudio is available through [CocoaPods](http://cocoapods.org). To install
|
||||
it, simply add the following line to your Podfile:
|
||||
|
||||
```ruby
|
||||
pod 'SwiftAudio', '~> 0.11.1'
|
||||
pod 'SwiftAudio', '~> 0.11.2'
|
||||
```
|
||||
|
||||
### Carthage
|
||||
SwiftAudio supports [Carthage](https://github.com/Carthage/Carthage). Add this to your Cartfile:
|
||||
```ruby
|
||||
github "jorgenhenrichsen/SwiftAudio" ~> 0.11.1
|
||||
github "jorgenhenrichsen/SwiftAudio" ~> 0.11.2
|
||||
```
|
||||
Then follow the rest of Carthage instructions on [adding a framework](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application).
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'SwiftAudio'
|
||||
s.version = '0.11.1'
|
||||
s.version = '0.11.2'
|
||||
s.summary = 'Easy audio streaming for iOS'
|
||||
s.description = <<-DESC
|
||||
SwiftAudio is an audio player written in Swift, making it simpler to work with audio playback from streams and files.
|
||||
|
||||
@@ -284,14 +284,12 @@ extension AVPlayerWrapper: AVPlayerObserverDelegate {
|
||||
func player(statusDidChange status: AVPlayer.Status) {
|
||||
switch status {
|
||||
case .readyToPlay:
|
||||
self._state = .ready
|
||||
if _playWhenReady && (_initialTime ?? 0) == 0 {
|
||||
self.play()
|
||||
}
|
||||
else {
|
||||
self._state = .ready
|
||||
if let initialTime = _initialTime {
|
||||
self.seek(to: initialTime)
|
||||
}
|
||||
else if let initialTime = _initialTime {
|
||||
self.seek(to: initialTime)
|
||||
}
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user