-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get player on ioS working while using google cloud storage #183
Comments
After many hours of troubleshooting found that if the gzip option is set to true while objects are being uploaded to Cloud storage, then playing it in iOS using AVplayer throws player error as above. Android doesn't seem to care and plays well irrespective of the option set. |
Thanks for reporting back, sorry we did not responded in time, we have been very busy lately and not able to respond issue, I will add this to the troubleshoot.md for easy access to this. |
@raghav85 @erickzanardo Thanks for finding the issue. How did you workaround this? |
I got this problem on cloud storage and shared hosting. So I exported file to .m4a instead of .mp3 and it's fixed on both remote location (shared hosting and cloud firestore). |
ohh. So you re-uploaded the audio in a different format? |
yes, i just have 2 audio files. reupload was the easiest way for this
situation.
…On Sat, 13 Jul 2019, 18:57 sakina1403, ***@***.***> wrote:
ohh. So you re-uploaded the audio in a different format?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#183>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMTQSDPTHNBAPROJ634UMDP7G7LVANCNFSM4HSC5VEQ>
.
|
you mention a gzip option. can you link to the docs or an example. im trying to find something but coming up empty handed |
Hi,
Gzip option is available on typescript admin sdk in cloud functions where
your function needed to upload incoming recording on to cloud storage. I
did not use cloud storage client sdk as I needed to check few conditions at
Firestore before uploading.
Cheers.
…On Tue, 16 Jul 2019 at 11:54 am, Jace Bennest ***@***.***> wrote:
After many hours of troubleshooting found that if the *gzip* option is
set to true while objects are being uploaded to Cloud storage, then playing
it in iOS using AVplayer throws player error as above. Android doesn't seem
to care and plays well irrespective of the option set.
This may be useful for someone in the future.
Thanks!
you mention a gzip option. can you link to the docs or an example. im
trying to find something but coming up empty handed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#183>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALCSXHOT3Z2Y5S3WHRMWTGLP7VSTVANCNFSM4HSC5VEQ>
.
|
so is there no way we can play audio from firebase on ios? is there a different url on the object i can use to fetch the data? |
i'm having trouble using google tts api in ios emulator i'm reading it as BytesSource. On the Android emulator it works OK. Has anyone already achieved something? |
G'day,
I am currently experiencing issue with getting to play audio files streamed from Google cloud storage bucket to play on real iOS devices - Iphone 8 and Iphone SE both having the latest iOS updates.
Tried with both modes of player - Media Player and Streaming.
Cloud storage URL looks like: https://firebasestorage.googleapis.com/v0/b/mybucket.appspot.com/o/w%3g2Fcc59f-1423-4abe.mp4?alt=media&token=xxx
When I try with public URLs, I don't get the error and it plays well:
https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4
Error received in _audioPlayer.onPlayerError : AVPlayerItemStatus.failed
Version: 0.12.0
Strangely on Android, there are no issues observed irrespective of the URLs used and works great!
Many Thanks.
The text was updated successfully, but these errors were encountered: