speeding up listening to audio
This commit is contained in:
@@ -732,7 +732,7 @@
|
||||
CODE_SIGN_ENTITLEMENTS = "nirvana-ios/nirvana-ios.entitlements";
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 2;
|
||||
CURRENT_PROJECT_VERSION = 4;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"nirvana-ios/Preview Content\"";
|
||||
DEVELOPMENT_TEAM = RK9WWM4Q99;
|
||||
ENABLE_PREVIEWS = YES;
|
||||
@@ -769,7 +769,7 @@
|
||||
CODE_SIGN_ENTITLEMENTS = "nirvana-ios/nirvana-ios.entitlements";
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 2;
|
||||
CURRENT_PROJECT_VERSION = 4;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"nirvana-ios/Preview Content\"";
|
||||
DEVELOPMENT_TEAM = RK9WWM4Q99;
|
||||
ENABLE_PREVIEWS = YES;
|
||||
|
||||
@@ -432,22 +432,22 @@ extension CircleGridView {
|
||||
print("player queued up items!!!")
|
||||
|
||||
// notify every half second
|
||||
let timeScale = CMTimeScale(NSEC_PER_SEC)
|
||||
let time = CMTime(seconds: 0.5, preferredTimescale: timeScale)
|
||||
// let timeScale = CMTimeScale(NSEC_PER_SEC)
|
||||
// let time = CMTime(seconds: 0.5, preferredTimescale: timeScale)
|
||||
|
||||
timeObserverToken = queuePlayer.addPeriodicTimeObserver(forInterval: time, queue: .main) {time in
|
||||
// update player transport UI
|
||||
print("periodic time observer: \(time)")
|
||||
// if the current playeritem is the latest one:
|
||||
// 1. deselect this user
|
||||
// 2. update databse that I listened to this
|
||||
if queuePlayer.currentItem == AVPlayerItems.last {
|
||||
// hide the footer now...ehhh don't need to
|
||||
// DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
|
||||
// self.selectedFriendIndex = nil
|
||||
// }
|
||||
}
|
||||
}
|
||||
// timeObserverToken = queuePlayer.addPeriodicTimeObserver(forInterval: time, queue: .main) {time in
|
||||
// // update player transport UI
|
||||
// print("periodic time observer: \(time)")
|
||||
// // if the current playeritem is the latest one:
|
||||
// // 1. deselect this user
|
||||
// // 2. update databse that I listened to this
|
||||
// if queuePlayer.currentItem == AVPlayerItems.last {
|
||||
// // hide the footer now...ehhh don't need to
|
||||
//// DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
|
||||
//// self.selectedFriendIndex = nil
|
||||
//// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// TODO: right now not updating all of that
|
||||
// update the listencount and firstlistentimestamp of those messages in firestore
|
||||
|
||||
Reference in New Issue
Block a user