Skip to content
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

Audio not playing on iOS device #1330

Open
2 tasks done
TNelen opened this issue Nov 22, 2022 · 5 comments
Open
2 tasks done

Audio not playing on iOS device #1330

TNelen opened this issue Nov 22, 2022 · 5 comments
Labels
bug platform-ios Affects the ios platform

Comments

@TNelen
Copy link

TNelen commented Nov 22, 2022

Checklist

  • I read the troubleshooting guide before raising this issue
  • I made sure that the issue I am raising doesn't already exist

Im playing an audiofile from remote. On Android this implementation is working perfectly fine, but on iOS the audio is not playing.

Current bug behaviour

On iOS the audio is not played, and in the logs i cannot see an error.

Expected behaviour

I Expect iOS to be behaving the same as Android

Steps to reproduce

I followed all the steps outlined online and in the pub.dev documentation.
The audio is played by this command:

  • AudioPlayer chatAudioPlayer = AudioPlayer();
  • await chatAudioPlayer.play(UrlSource(widget.audioUrl));

The only output I'm seeing in the logs is "iOS => call play, playerId e9117dde-db8b-4623-afaa-63915f20326b"

Remote audio file; https://trackler-track-uploads.s3.eu-central-1.amazonaws.com/2147/637d32d06f6b7.mp3

@TNelen TNelen added the bug label Nov 22, 2022
@TNelen
Copy link
Author

TNelen commented Nov 23, 2022

I tried playing this file https://www.learningcontainer.com/wp-content/uploads/2020/02/Kalimba.mp3 and this is working.
Does anyone notice a difference between the two urls?

@Gustl22 Gustl22 added the platform-ios Affects the ios platform label Nov 23, 2022
@timsedev
Copy link

Same here any update?

@spydon
Copy link
Member

spydon commented Dec 22, 2022

Are you sure that you are not facing this bug?
#1194

@spydon spydon closed this as completed Dec 31, 2022
@spydon spydon reopened this Dec 31, 2022
@TNelen
Copy link
Author

TNelen commented Jan 2, 2023

Are you sure that you are not facing this bug? #1194

I've tried that approach but it's not working either.
Looks like something with the audio format, but not sure what.

@Gustl22
Copy link
Collaborator

Gustl22 commented Jan 11, 2023

@TNelen the file ending is not reflecting its real codec:

See https://www.aconvert.com/analyze.html

General
Format : WebM
Format version : Version 4
File size : 14.0 KiB
Writing application : Chrome
Writing library : Chrome
IsTruncated : Yes
FileExtension_Invalid : webm

Audio
ID : 1
Format : Opus
Codec ID : A_OPUS
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 48.0 kHz
Bit depth : 32 bits
Compression mode : Lossy
Language : English
Default : Yes
Forced : No

WebM isn't supported on iOS: https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/MultimediaPG/UsingAudio/UsingAudio.html#//apple_ref/doc/uid/TP40009767-CH2-SW33

Anyways, we should return an error which leads us to #1352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform-ios Affects the ios platform
Projects
None yet
Development

No branches or pull requests

5 participants
@spydon @Gustl22 @TNelen @timsedev and others