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] broadcastPlaybackEvent : No such interface supported #32

Closed
canxin121 opened this issue Apr 23, 2024 · 1 comment · Fixed by #33
Closed

[bug] broadcastPlaybackEvent : No such interface supported #32

canxin121 opened this issue Apr 23, 2024 · 1 comment · Fixed by #33
Labels
bug Something isn't working

Comments

@canxin121
Copy link

Which API doesn't behave as documented, and how does it misbehave?

The error occurs when playing a flac file from http url.

It is thrown by this line of code: L520

This code throws a No such interface supported error when trying to use the win api's MediaPlayer.PlaybackSession().BufferingProgress() (inside BufferingProgress).

This causes all of Win's music playback data to be lost due to this error, but in reality this BufferingProgress does very little for the data.

Minimal reproduction project
Provide a link here using one of two options:

  1. Only change the music url to flac in some of this repo's example, and this error occurs

To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:

  1. Only change the music url to flac in some of this repo's example, and this error occurs

Error messages
No such interface supported

[just_audio_windows] Broadcast event error: 不支持此接口(in english: No such interface supported)

Expected behavior
No error and the playback data trans successfully.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):
Win 10 ltsc 21H2

Smartphone (please complete the following information):
? this repo only supports windows.?

Flutter SDK version

Not releated.

Additional context
None

@canxin121 canxin121 added the bug Something isn't working label Apr 23, 2024
@canxin121
Copy link
Author

This is bug highly releated to win c++ api, I don't it is easy to fix.
But you do get around this by setting the value directly to 1 on BufferingProgress errors, note that this loses information about the buffering progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant