Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

PlatformException Called play on an unloaded player #90

Description

@wellbranding

I am experiencing this issue in the IOS platform. Tested on IOS 12-14 and the issue is very random. I am loading multiple players at once and some of them immediately raise the following exception after I try to play it.

Unhandled Exception: PlatformException(AudioPluginError, Called play on an unloaded player: ab8c017a-e614-476a-9704-a3df5a65b3dc, null, null)

#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:582:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:18)

#2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
#3 Audio._sendMethodCall (package:audiofileplayer/audiofileplayer.dart:751:32)
#4 Audio._playNative (package:audiofileplayer/audiofileplayer.dart:661:13)
#5 Audio._playHelper (package:audiofileplayer/audiofileplayer.dart:556:11)
#6 Audio.resume (package:audiofileplayer/audiofileplayer.dart:533:11)

Activity

  1. changed the title [-]Unhandled Exception: PlatformException Called play on an unloaded playe[/-] [+]PlatformException Called play on an unloaded player[/+] on Oct 6, 2020
  2. ismailslmnv commented on Jan 14, 2021

    @ismailslmnv

    Have you find a solution for this? Facing the same issue

  3. monkeyswarm commented on Jan 14, 2021

    @monkeyswarm
    Contributor

    Do you have sample code?

    In theory, you should be able to call load and play (in a row, syncronously) without waiting for the load to complete. However, does awaiting the load make this issue go away?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions