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

Bug on Windows when player.play #1818

Open
2 tasks done
Bilonik opened this issue Jul 9, 2024 · 5 comments
Open
2 tasks done

Bug on Windows when player.play #1818

Bilonik opened this issue Jul 9, 2024 · 5 comments
Labels

Comments

@Bilonik
Copy link

Bilonik commented Jul 9, 2024

Checklist

  • I read the troubleshooting guide before raising this issue
  • I made sure that the issue I am raising doesn't already exist

Current bug behaviour

Activate failed to create mediasink. Call OutputNode::GetUINT32(MF_TOPONODE_MAJORTYPE) for more information.MediaEngine error

Expected behaviour

Play sound

Steps to reproduce

Works on iOS and Android

final player = AudioPlayer();
await player.play(AssetSource("audio.mp3"));

Code sample

Code sample
void main() {
}

Affected platforms

Windows

Platform details

Windows 10 and 11

AudioPlayers Version

6.0.0

Build mode

debug, release

Audio Files/URLs/Sources

No response

Screenshots

No response

Logs

my relevant logs
Full Logs
my full logs or a link to a gist

Flutter doctor:

Output of: flutter doctor -v

Related issues / more information

No response

Working on PR

no way

@Bilonik Bilonik added the bug label Jul 9, 2024
@Bilonik
Copy link
Author

Bilonik commented Jul 10, 2024

The 'xyz.luan/audioplayers/events/30397293-c286-43db-8767-17482e66e6b2' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.

@tranhuudang
Copy link

Yes, my app crash right after I hit the play button and receive that error in production.

@weilong333
Copy link

got the same error also..but it seems like randomly happen

@Ali-Fadaei
Copy link

this causes crash on production!!! there isn't any fix or workaround?!

@tranhuudang
Copy link

If your build using msix to build for production, you can update the the version msix: ^3.16.8. Some main x64 dll files in msix packages causing crash when using with some other packages. I hope this help you solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants