Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8bf6cbb56e | |||
| b97f97ca5e | |||
| 0c7bcdcf90 | |||
| 840122e603 |
@@ -196,6 +196,10 @@ class ViewController: UIViewController {
|
||||
SAPlayer.Downloader.downloadAudio(withRemoteUrl: selectedAudio.url, completion: { [weak self] url in
|
||||
DispatchQueue.main.async {
|
||||
self?.currentUrlLocationLabel.text = "saved to: \(url.lastPathComponent)"
|
||||
|
||||
if let selectedUrl = self?.selectedAudio.url {
|
||||
SAPlayer.shared.initializeAudio(withRemoteUrl: selectedUrl)
|
||||
}
|
||||
}
|
||||
})
|
||||
streamButton.isEnabled = false
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# SwiftAudioPlayer
|
||||
|
||||
[](https://travis-ci.org/tanhakabir/SwiftAudioPlayer)
|
||||
[](https://cocoapods.org/pods/SwiftAudioPlayer)
|
||||
[](https://cocoapods.org/pods/SwiftAudioPlayer)
|
||||
[](https://cocoapods.org/pods/SwiftAudioPlayer)
|
||||
|
||||
@@ -33,7 +33,13 @@ extension Date {
|
||||
*/
|
||||
static func getUTC64() -> UInt {
|
||||
//"On 32-bit platforms, UInt is the same size as UInt32, and on 64-bit platforms, UInt is the same size as UInt64."
|
||||
return UInt(Date().timeIntervalSince1970.bitPattern)
|
||||
|
||||
if #available(iOS 11.0, *) {
|
||||
return UInt(Date().timeIntervalSince1970.bitPattern)
|
||||
} else {
|
||||
let time = Date().timeIntervalSince1970.bitPattern & 0xFFFFFFFF;
|
||||
return UInt(time)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'SwiftAudioPlayer'
|
||||
s.version = '1.0.2'
|
||||
s.version = '1.0.3'
|
||||
s.summary = 'SwiftAudioPlayer is a Swift based audio player that can handle streaming from a remote location and audio manipulation.'
|
||||
|
||||
# This description is used to generate tags and improve search results.
|
||||
|
||||
Reference in New Issue
Block a user