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

No AudioPlayerState? #25

Closed
ThinkDigitalSoftware opened this issue Jul 18, 2018 · 10 comments
Closed

No AudioPlayerState? #25

ThinkDigitalSoftware opened this issue Jul 18, 2018 · 10 comments

Comments

@ThinkDigitalSoftware
Copy link

The old package had a way to indicate if the player was playing. What's the reasoning behind removing it?

@luanpotter
Copy link
Member

Thanks for your feedback! There was no reason behind removing it because it was not removed.

Actually, the original audioplayer package didn't have this feature. It does now, but that was just recently added. There was no built-in way to do it when the fork occurred. However, you can easily control your own state, like this Widget in the example does (and it uses a enum just like the one you want).

@ThinkDigitalSoftware
Copy link
Author

ThinkDigitalSoftware commented Jul 19, 2018 via email

@luanpotter
Copy link
Member

Please, contribute with a PR! I'll be glad to merge it in. :)
It can be done completely in the dart code, so it won't interfere with the native behavior.
Just add a variable to the player to hold the current state and update it in every related method call :)

@ThinkDigitalSoftware
Copy link
Author

ThinkDigitalSoftware commented Jul 19, 2018 via email

@luanpotter
Copy link
Member

Hahaha never thought of that problem!

I'm not sure, but I believe you can use the same cloned repo you already have on your machine; just add my repo as a remote (e.g., git remote add luanpotter_remote git@github.com:luanpotter/audioplayer.git), and then pull my master branch. Create a new branch from my master, make your commits, and then open the PR from that repo (it will show up, I believe, in my repo's PR page).

Always take a look at the diff of the PR to make sure you are submitting just your changes and not something else that might have come along.

Alternatively you could create a PR without a fork (though I think it'd be harder), check this out on how to do that. Basically clone my repo, create the branch directly and then you can PR from the terminal (IIRC).

@ThinkDigitalSoftware
Copy link
Author

I’m getting this error in Dart analysis. Is this something that can be ignored? warning: The option 'enableStrictCallChecks' isn't supported by 'language'. (unsupported_option_with_legal_values at [audioplayers] analysis_options.yaml:4)

@luanpotter
Copy link
Member

That is probably an older option that was present in the analysis_options file that is no longer required (maybe this explains it).

You could remove that line from the analysis_options file in your PR if you'd like :)

@ThinkDigitalSoftware
Copy link
Author

ThinkDigitalSoftware commented Jul 19, 2018 via email

@luanpotter
Copy link
Member

Thanks, @renancaraujo , fixed due to #68.

@ThinkDigitalSoftware
Copy link
Author

ThinkDigitalSoftware commented Jan 4, 2019 via email

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

No branches or pull requests

2 participants