-
Notifications
You must be signed in to change notification settings - Fork 159
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
PlayerController on iOS plays without sound (physical device only) #349
Comments
Hi @KestasVenslauskas I have tried your issue from iOS 15 to 17 version but still it's not reproducible. Can you please share minimal reproducible code or more clarification on your issue? iOS version: 16 RPReplay_Final1729780518.MP4 |
I am able to reproduce it on the example project no need to any other repo. Not sure what is the trigger for the cause, it's important that you do not try to record before you press play. Even after you pressed record you have to re-build the app, flutter restart is not enough you have to kill the app and this issue should be present on first run |
@KestasVenslauskas As you can see in the shared video, we are unable to reproduce the issue, so we’re unable to dig deeper. Just to double-check, are any other apps playing sound? If that is the case then you may try to use ios AudioSession to override this behavior. |
I second this issue. The behaviour is exactly as described, When I use player controller, there's no sound although volume is max and waveform is animated. But if I turn to record a short audio, then return to play audio, then audio works as normal. |
I have the same issue on iOS device RPReplay_Final1729910169.mp4 |
@jay-simformsolutions no luck of reproducing? |
@KestasVenslauskas Yes, this issue is still not reproducible on our end. We will try your steps on different devices and update you once we get any hints about this issue. If you provide more details on this issue then it will be very helpful for us. |
I tried to run the example app in my ipad, and here is the screen recording. I turn on sound recording as well to record the sound, both from my voice and from the audio output. There's no error printed out RPReplay_Final1730153844.MP4Flutter doctor
Pod version: 1.13.0 |
@KestasVenslauskas, @suesitran, @lqchuong can you please ensure that your device is not in silent mode? |
Sure sir, my device is not on silent mode. |
It's not, and bug is consistent on every device I tried
…On Tue, Oct 29, 2024, 8:38 AM lqchuong ***@***.***> wrote:
Sure sir, my device is not on silent mode.
—
Reply to this email directly, view it on GitHub
<#349 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMOTIQJBQEZD37OO7B66LM3Z54UN3AVCNFSM6AAAAABQONTYIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBTGMZTCNBYGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I confirm that my device is not in silent mode |
@jay-simformsolutions any luck on this issue? :( |
@lqchuong, @KestasVenslauskas, @suesitran can you please try this branch?
|
@jay-simformsolutions yes that branch works, here is my pubspec.yaml
|
@jay-simformsolutions yupp, that works for me. I think a lot of people have this issue but they don't really realize it, pls merge it asap. Thanks so muchh |
This fix has been merged into the To enable this fix, set the following:
|
I have the same issue trying on my iPhone physical device.
With the fix works fine. |
On my physical device this doesn't fix the issue. It works when my bluetooth headphones are connected, but otherwise it does not make any sound even though my volume is at max. Model iPhone 14 Pro EDIT: After debugging I achieved to make it work if this code is executed before: final session = await AudioSession.instance;
await session.configure(
AudioSessionConfiguration(
avAudioSessionCategory: AVAudioSessionCategory.playAndRecord,
avAudioSessionCategoryOptions: AVAudioSessionCategoryOptions.allowBluetooth | AVAudioSessionCategoryOptions.defaultToSpeaker,
avAudioSessionMode: AVAudioSessionMode.spokenAudio,
avAudioSessionRouteSharingPolicy: AVAudioSessionRouteSharingPolicy.defaultPolicy,
avAudioSessionSetActiveOptions: AVAudioSessionSetActiveOptions.none,
),
);
It uses this package: https://pub.dev/packages/audio_session. |
Fixed in 1.2.0. Please do check it out. |
@raulmabe-labhouse As mentioned in docs of |
@Ujas-Majithiya I understand I have a different config that what |
Describe the bug
If a
PlayerController
is used to play audio file it plays without sound. It's waveform is visible and you can seek to parts of the audio but there is no sound.Once you use
RecordController
and record something thenPlayerController
starts to work with sound.This bug happens on physical iOS device only. Tried few different ones the outcome is the same.
To Reproduce
Expected behavior
Player should play from cold start with sound.
Smartphone (please complete the following information):
Additional context
This bug happens on physical iOS devices only.
The text was updated successfully, but these errors were encountered: