Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stream audio file from Google Cloud Storage to iOS Firebase client app

I'm using Firebase with an iOS client app, and I need to stream an audio file from Google Cloud Storage. I know file streaming support exists in the Android SDK with the class: StreamDownloadTask, but I cannot find an equivalent in the iOS SDK.

  1. Best scenario would be able to achieve this without intermediary server functions, so directly between the iOS client and GCS. Is this possible?
  2. If not, I have a Node.js server that I can use. Should I use the createReadStream GCS API function and pipe that to the client? Or is there a better way?

Any advice on the optimal way to create a stream from a GCS audio file to an iOS app would be hugely appreciated!

like image 805
Peza Avatar asked Oct 29 '22 19:10

Peza


1 Answers

Firebase employee here

There is not, in fact, any Cloud Storage streaming API for iOS in the same way that there is for Android. If this is important to you, please file a feature request and explain why it's important for your particular case.

like image 56
Doug Stevenson Avatar answered Nov 15 '22 07:11

Doug Stevenson