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

Expose player.isMuted() #1117

Open
mburns-acom opened this issue Mar 14, 2024 · 3 comments
Open

Expose player.isMuted() #1117

mburns-acom opened this issue Mar 14, 2024 · 3 comments

Comments

@mburns-acom
Copy link

mburns-acom commented Mar 14, 2024

Feature Request

I would like to expose the API method player.isMuted():Boolean.
How can this be done?

Describe your idea

Currently we can set the mute/unmute state on creation, but we would like to know if the user has unmuted the video. It looks like the iFrame api supports
player.isMuted():Boolean

I would like to be able to call this at some point (like when the video has ended or paused) so I can know the user preference.

Expected behavior and realization

@PierfrancescoSoffritti
Copy link
Owner

Currently we don't have a mechanism to invoke javascript methods that return a value. It should be figured out before we can do this.

@mburns-acom
Copy link
Author

That's what I figured. If we can invoke a javascript method that returns the value, then we could add this feature. Correct?

@PierfrancescoSoffritti
Copy link
Owner

Correct. There is probably a way to design a nice API using coroutines.

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