Sorry the example I gave was incorrect, this should help you with a mute toggler: How to make a toggle button to toggle Audio Mute?
Make sure that you take your media element outside of the widget and place it within the inner HTML of a regular rectangle.