nstudio / nativescript-videoplayer

:clapper: Video Player widget for NativeScript apps
MIT License
133 stars 59 forks source link

When mute button is clicked #135

Open bradrice opened 5 years ago

bradrice commented 5 years ago

I can't seem to capture the event when the mute button is clicked. I've looked at the demo app and see the event example:

this._videoPlayer =

      this._videoPlayer.on(Video.unmutedEvent, args => {
        console.log('Video.unmutedEvent');
      });

However, when I click the button I don't get anything logged to the console. I do get it logged to the console when the page initializes, I logs "Video.unmutedEvent"

How can I capture the click even on the mute button? I want to mute other videos and audios if it is clicked by setting state and reading it in when a page turns in my app.

bradmartin commented 5 years ago

which mute button are we talking about?

bradrice commented 5 years ago

When you hover over the videoplayer, it shows a mute button in the top right of the video.

bradmartin commented 5 years ago

iOS I'm guessing, don't recall what controls get shown on the different platforms right now.

Mute event from that might not be wired up or it isn't correct in this case. Have to see if the video player controls emit something we can expose 👍

Serge0111 commented 5 years ago

Also it would be awesome if you could expose not only mute button but all, if they emit something.

bradrice commented 1 year ago

I know this is very old, but has there been any change with regard to capturing the events from the player? Especially the mute button click.