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