-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
[HELP] QuickPlay failing due to assertion error #58
Comments
Getting the same error when doing it w/ URL:
|
welcome to futter dev :) First a bit of feedback. For flutter you should at a minimum provide: flutter version. You should also try try to provide a minimal app that demonstrates the problem. In this case I think you are using the 0.9.3 version. The beta has a fix for this issue. |
@bsutton But... it it like some corner case issue, or just does |
I also have this error: final track = Track.fromAsset(path);
QuickPlay.fromTrack(track);
Tested with both ^0.9.3 and ^1.0.0-beta13 |
@bsutton I think you might be confused with how constructors work in Dart. In the following code:
... |
I think you are correct.
I will try to get an update out over the next few days.
I'm a little constrained on time at the moment as I'm in the middle of a
renovation which I'm doing a chunk of.
…On Fri, 12 Feb 2021 at 03:05, cubuspl42 ***@***.***> wrote:
@bsutton <https://github.com/bsutton> I think you might be confused with
how constructors work in Dart. In the following code:
QuickPlay.fromTrack(this._track,
{double volume, bool withShadeUI = false, PlayerEvent onStopped})
: _onStopped = onStopped {
QuickPlay._internal(volume, withShadeUI);
}
...QuickPlay._internal(volume, withShadeUI) is not constructor delegation
of any kind, it's just an expression creating a new object of type
QuickPlay, using the _internal constructor. The same applies to fromFile
and fromBuffer, basically the whole class. My guess is that QuickPlay
never worked at all.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#58 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG32OAKBFXA7U3MKV7RFV3S6P52XANCNFSM4VO6PL4Q>
.
|
Released in 1.0.0 |
I need Help for :
Here is my question : Hi, I'm a new flutter dev so this might be trivially answered...
I'm trying to use the quickplay class to play from a .wav file. I know the file is legit...and the app works otherwise, so here is the relevant piece of code:
I just call that when a button is pressed (the callback registered to onpressed has these 2 lines in it).
my dir structure for assets:
and the relevant part of my pubspec...
And the stacktrace:
The text was updated successfully, but these errors were encountered: