dylman123 / final-captions-pro

A MacOS app which automatically generates customisable open captions in Final Cut Pro X
1 stars 0 forks source link

Upload audio file to the cloud + download captions JSON #23

Closed dylman123 closed 4 years ago

dylman123 commented 4 years ago

Originally posted by @dylman123 in https://github.com/dylman123/open-captions-maker-swift/issues/19#issuecomment-619852956

dylman123 commented 4 years ago

https://github.com/dylman123/open-captions-maker-swift/issues/19#issuecomment-619839030

dylman123 commented 4 years ago

Look at implementing Websockets via Firebase DB: https://medium.com/swlh/using-firebase-to-provide-real-time-notifications-2f86b2f7d499

Need to save JSON data to DB rather than to Storage

dylman123 commented 4 years ago

deleteAudio() is being called too quickly. Need to learn how to synchronise asynchronous functions: https://medium.com/swift2go/synchronysing-the-asynchronous-in-swift-3f91a32bfb1b

dylman123 commented 4 years ago

This is the tutorial I am after: https://www.youtube.com/watch?v=JHqxmBFrWl8

dylman123 commented 4 years ago

Need to write to Firestore:

Need to set up Firebase Cloud Messaging for iOS:

dylman123 commented 4 years ago

Cloud architecture

image

dylman123 commented 4 years ago

image

dylman123 commented 4 years ago

Registered for Apple Developer program $149USD per year. This will allow me to import an Apple certificate into Firebase so that I can configure FCM

dylman123 commented 4 years ago

Had some trouble getting FCM to work. Will stick to short polling for now. And can come back and enable FCM at some later stage.