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.
- Best scenario would be able to achieve this without intermediary server functions, so directly between the iOS client and GCS. Is this possible?
- 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!