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

MPV: [error] ad: Error decoding audio.But playbackEventStream can't catch the error state #18

Open
xiaoxin-sky opened this issue Aug 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@xiaoxin-sky
Copy link

Thank you for your amazing works. This Plugin help me to resolve mutipily audio format easily. When my audio source err, the player while become idle, And I can't cache error, can't print the log info. And player can be stop.

    _player.playbackEventStream.listen((e) {}, onError: (err) {
      log('❌Playback error: $err');
    });

I think this code lead to player stop.

_processingState = ProcessingStateMessage.idle;

when player receive error, maybe send error playback state.

_updatePlaybackEvent();

Add This code , Then user can receive the error ,And do something.

_eventController.addError(error);
@xiaoxin-sky xiaoxin-sky changed the title MPV: [error] ad: Error decoding audio. MPV: [error] ad: Error decoding audio.But playbackEventStream can't catch the error state Aug 24, 2024
@Pato05
Copy link
Owner

Pato05 commented Oct 20, 2024

Makes sense, will do.

@Pato05 Pato05 added the enhancement New feature or request label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants