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

@wellbranding

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)

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