Skip to content

play_widget.dart  #2

Open
Open
@longfit

Description

@longfit

hi

after upgrade audioplayers to 0.19.0

below both of not defined error shown

_audioPlayer.startHeadlessService();
_audioPlayer.setNotification

The method 'startHeadlessService' isn't defined for the class 'AudioPlayer'.
  • 'AudioPlayer' is from 'package:audioplayers/src/audioplayer.dart' ('/home/ykwings/flutter/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.19.0/lib/src/audioplayer.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'startHeadlessService'.
    _audioPlayer.startHeadlessService();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions