Code Monkey home page Code Monkey logo

Comments (14)

ryanheise avatar ryanheise commented on June 26, 2024

This is just a warning, since not all platforms are required to implement disposeAllPlayers. It is used only to dispose of players on a hot reload.

However, it shouldn't be difficult to implement, I guess.

from just_audio_libwinmedia.

hogdamian avatar hogdamian commented on June 26, 2024

On Windows i have the problem that i can play audio once and after it its not possible to play another audio anymore.

from just_audio_libwinmedia.

ryanheise avatar ryanheise commented on June 26, 2024

I don't think that's related to the disposeAllPlayers message since that should only appear once when the app starts. (Maybe it's best to open a new issue if it's not related to this.)

from just_audio_libwinmedia.

DominicOrga avatar DominicOrga commented on June 26, 2024

I'm also experiencing this issue when building my app on Windows. In my case, no audio is coming out at all.

Here's the error:

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method disposeAllPlayers on channel com.ryanheise.just_audio.methods)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175)
<asynchronous suspension>
#1      MethodChannelJustAudio.disposeAllPlayers (package:just_audio_platform_interface/method_channel_just_audio.dart:29)
<asynchronous suspension>

Here's the result of my flutter doctor -v.

[√] Flutter (Channel stable, 2.10.2, on Microsoft Windows [Version 10.0.19042.1466], locale en-PH)
    • Flutter version 2.10.2 at C:\Users\Raphael\Documents\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 097d3313d8 (5 days ago), 2022-02-18 19:33:08 -0600
    • Engine revision a83ed0e5e3
    • Dart version 2.16.1
    • DevTools version 2.9.2

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.0)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.1.32210.238
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.64.2)
    • VS Code at C:\Users\Raphael\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.1466]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 95.0.4638.69
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 98.0.1108.56

[√] HTTP Host Availability
    • All required HTTP hosts are available

from just_audio_libwinmedia.

ryanheise avatar ryanheise commented on June 26, 2024

What I was trying to say above is that these aren't all the same issue.

from just_audio_libwinmedia.

DominicOrga avatar DominicOrga commented on June 26, 2024

Oh okay sorry about that. I'll try doing some further investigation with my issue and determine whether to file a bug report here or at the just_audio package.

from just_audio_libwinmedia.

ryanheise avatar ryanheise commented on June 26, 2024

Hmm, looking at it further, I'm not clear why it is being reported as an unhandled exception since the only place disposeAllPlayers is called is within a try/catch block in just_audio's lib/just_audio.dart. Also, from memory I didn't think just_audio_libwinmedia was implemented based on method channels since it is a pure Dart implementation. That is rather confusing as I would only expect that sort of error on the method channel-based implementations such as iOS/macOS/Android.

from just_audio_libwinmedia.

gkovac42 avatar gkovac42 commented on June 26, 2024

Also getting this error as soon as I try to play any audio file, I can't get anything to play at all. Is there an update on this?

from just_audio_libwinmedia.

hogdamian avatar hogdamian commented on June 26, 2024

Yes i have found a solution.
Let me know if you still need it

from just_audio_libwinmedia.

GrimDevStudio avatar GrimDevStudio commented on June 26, 2024

Yes i have found a solution. Let me know if you still need it

Yes, please.

from just_audio_libwinmedia.

gkovac42 avatar gkovac42 commented on June 26, 2024

I could use it, yes. Thanks in advance!

from just_audio_libwinmedia.

hogdamian avatar hogdamian commented on June 26, 2024

Please provide your implementation.

from just_audio_libwinmedia.

bdlukaa avatar bdlukaa commented on June 26, 2024

I have started implementing a native player using platform channels for the Windows platform here: https://github.com/bdlukaa/just_audio, under https://github.com/bdlukaa/just_audio/tree/master/just_audio_windows

It performs a lot better and doesn't have all these bugs that libwinmedia has. Also, libwinmedia is now deprected and, once just_audio_windows gets published, just_audio_libwinmedia will be deprecated as well.

I haven't got the time to work on this yet, but I can try to have some progress on it this weekend and get you to the updates on ryanheise/just_audio#103

from just_audio_libwinmedia.

gkovac42 avatar gkovac42 commented on June 26, 2024

That's great news! From what I could gather, all currenty existing audio plugins for Windows are lacking in one way or another. Could you please keep me up-to-date with this? I have a commercial Flutter Windows project that depends on the ability to play short audio files without issues on as much different Windows versions and builds as possible. I'll gladly throw a donation your way if you would accept it, just let me know where.

from just_audio_libwinmedia.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.