javascript - Volume Slider Keeps Muting Automatically -


I am using HTML 5, jQuery and Xplitation for live streaming. By creating a responsive audio player from scratch, I am here.

The player has a "speaker icon" on the right side, when clicked, the volume mutes, but only when a vertical volume slider is displayed.

When the volume slider handles the mouse in the state, decrease the audio level or increase accordingly. However, after the handling when the handle enters a mouseup state, the slider jumps down the handle, effectively mounts the volume.

I have tried to use Javascript to disable the mute / unmute toggle class created for the speaker icon, the volume slider is a range slider in the mute / unmounted DIV's child-div. , Though I still can not stop the slider from mute on mouseup.

Please help.

The code written in an attempt to disable the toggle class is as follows:

  $ (function volume () {$ ("# dimension-mute"). (Function () {$ (This) .toggleClass ("Unmute Mute"). Sister (). RemoveClass ("Mute Unmute");});});  

Check this update link

Because you have not added an event to the volume slider and click the Volume Container Dimension-Mute Event added. Therefore, the slider limit is muted and unmuted at every click of the quantity.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -