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

feat: Add isPlaying method #51

Merged
merged 3 commits into from
Mar 18, 2022

Conversation

mamane10
Copy link
Contributor

No description provided.

@@ -175,6 +175,17 @@ public class NativeAudio: CAPPlugin {
audioAsset.setVolume(volume: volume as NSNumber)
call.success()
}

@objc func isPlaying(_ call: CAPPluginCall) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add definition in Plugin.m file for new method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did as you asked. Thanks for your comment.

@indraraj26
Copy link

any plan to release isPlaying ?


func isPlaying() -> Bool {
if channels.count != 1 {
return 0
Copy link

@indraraj26 indraraj26 Mar 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here it should be return false else it will through the error as it expect return type should be of Boolean

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, appreciate it

@bazuka5801 bazuka5801 merged commit a90adfb into capacitor-community:master Mar 18, 2022
@yelhouti yelhouti mentioned this pull request May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants