Os nossos voluntários ainda não traduziram este artigo para Português (Europeu). Junte-se a nós e ajude-nos a fazer o trabalho!
Pode também ler o artigo em English (US).

The mute event is sent to a MediaStreamTrack when the track's source is temporarily unable to provide media data. When the track is once again able to produce media output, an unmute event is sent.

During the time between the mute event and the unmute event, the value of the track's muted property is true.

You listen for the mute event using the MediaStreamTrack.onmute event handler, or by calling addEventListener() with "mute" as the event type.

The condition that most people think of as "muted" (that is, a user-toggled state of silencing a track) is actually managed using the MediaStreamTrack.enabled property, for which there are no events.

General info

Specification
Media Capture and Streams
The definition of 'mute' in that specification.
Interface
Event
Bubbles
No
Cancelable
No
Target
MediaStreamTrack
Default Action
None.

Properties

This event is of type Event and includes only the properties it defines.

 

Etiquetas do documento e contribuidores

Contribuidores para esta página: mdnwebdocs-bot, Sheppy
Última atualização por: mdnwebdocs-bot,