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

PlatformException(-16041, The operation couldn’t be completed. (CoreMediaErrorDomain error -16041.) #1358

Open
azhansy opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
1 backlog bug Something isn't working

Comments

@azhansy
Copy link

azhansy commented Nov 1, 2024

Which API doesn't behave as documented, and how does it misbehave?
Replace
https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3】 in the demo with:
https://dict.youdao.com/dictvoice?audio=good&type=1】
Running error on iOS device.

Minimal reproduction project

  Future<void> _init() async {
    // Inform the operating system of our app's audio attributes etc.
    // We pick a reasonable default for an app that plays speech.
    final session = await AudioSession.instance;
    await session.configure(const AudioSessionConfiguration.speech());
    // Listen to errors during playback.
    _player.playbackEventStream.listen((event) {},
        onError: (Object e, StackTrace stackTrace) {
      print('A stream error occurred: $e');
    });
    // Try to load audio from a source and catch any errors.
    try {
      // AAC example: https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.aac
      await _player.setAudioSource(AudioSource.uri(Uri.parse(
          "https://dict.youdao.com/dictvoice?audio=good&type=1")));
    } on PlayerException catch (e) {
      print("Error loading audio source: $e");
    }
  }

To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
Replace
https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3】 in the demo with:
https://dict.youdao.com/dictvoice?audio=good&type=1】
Running error on iOS device.
Error messages

PlatformException(-16041, The operation couldn’t be completed. (CoreMediaErrorDomain error -16041.)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [macOS (Xcode 15.4)]
  • Browser [e.g. chrome, safari + version]

Smartphone (please complete the following information):

  • Device: [iPhone12]
  • OS: [iOS 17.5.1]

Flutter SDK version

[✓] Flutter (Channel stable, 3.24.3, on macOS 14.5 23F79 darwin-arm64, locale
    zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Android Studio (version 2024.1)
[✓] Connected device (2 available)
[✓] Network resources

Additional context
Add any other context about the problem here.

@azhansy azhansy added 1 backlog bug Something isn't working labels Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants