cleaned up logging for clarity
This commit is contained in:
@@ -130,7 +130,6 @@ struct CircleGridView: View {
|
|||||||
|
|
||||||
// only add to queue if we can convert the database url to a valid url here
|
// only add to queue if we can convert the database url to a valid url here
|
||||||
if let audioUrl = URL(string: message.audioDataUrl) {
|
if let audioUrl = URL(string: message.audioDataUrl) {
|
||||||
print("going to add this message to queue player \(audioUrl)")
|
|
||||||
let playerMessage: AVPlayerItem = AVPlayerItem(url: audioUrl)
|
let playerMessage: AVPlayerItem = AVPlayerItem(url: audioUrl)
|
||||||
AVPlayerItems.append(playerMessage)
|
AVPlayerItems.append(playerMessage)
|
||||||
}
|
}
|
||||||
@@ -138,8 +137,6 @@ struct CircleGridView: View {
|
|||||||
|
|
||||||
// start playing if there are messages to listen to
|
// start playing if there are messages to listen to
|
||||||
if AVPlayerItems.count > 0 {
|
if AVPlayerItems.count > 0 {
|
||||||
print("have message urls that we will start listening to\(AVPlayerItems)")
|
|
||||||
|
|
||||||
queuePlayer = AVQueuePlayer(items: AVPlayerItems)
|
queuePlayer = AVQueuePlayer(items: AVPlayerItems)
|
||||||
|
|
||||||
// TODO: make sure these options are viable for different scenarios
|
// TODO: make sure these options are viable for different scenarios
|
||||||
@@ -147,6 +144,8 @@ struct CircleGridView: View {
|
|||||||
queuePlayer.playImmediately(atRate: 1)
|
queuePlayer.playImmediately(atRate: 1)
|
||||||
// queuePlayer.play()
|
// queuePlayer.play()
|
||||||
|
|
||||||
|
print("player queued up items!!!")
|
||||||
|
|
||||||
|
|
||||||
// update the listencount and firstlistentimestamp of those messages in firestore
|
// update the listencount and firstlistentimestamp of those messages in firestore
|
||||||
// this should update ui to show that there is no message to show
|
// this should update ui to show that there is no message to show
|
||||||
|
|||||||
Reference in New Issue
Block a user