Video muted kiyashi

Kiyasi da amfani

muted Kiyashi yana mayar da shi ko yana kaiwa hoto ga hoto na fimirin (mayar da hoto).

Wannan kiyashi yana bayyana HTML <video> muted attribute.

Yana bayyana cewa kuma yana mutumma yana da hoto na fimirin yana da hoto.

Shirin

Tari 1

Mayar da hoto a cikin fimirin:

document.getElementById("myVideo").muted = true;

A nafiya samu

Tari 2

Kiyar da ake mayar da hoto:

var x = document.getElementById("myVideo").muted;

A nafiya samu

Kimiyya

Raba mutumma ga属性:

videoObject.muted

Tasiriya mutumma ga属性:

videoObject.muted = true|false

Wurin kiyashi

Wurin Baɗaɗɗin bayani
true|false

Naɗaɗi hanyar audio na fimirin kuma yana da shi kaiwa hoto ko kuma yana da shi a cikin hoto.

  • true - Indicates that the sound should be turned off for the video
  • false - Default. Indicates that the sound should be turned on for the video

Technical details

Return value: Boolean value, returns true if the audio output of the video is muted; otherwise returns false.
Default value: false

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 9.0 Support Support Support

Related pages

HTML reference manual:HTML <video> muted attribute