非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

msHorizontalMirror is a read/write property which gets or sets whether a 视频 element is flipped horizontally in the display.

This proprietary property is specific to Internet Explorer and Microsoft Edge.

句法

HTMLVideoElement.msHorizontalMirror: boolean;
					

Boolean value set to true flips the video playback horizontally.

Video perspective is flipped on a horizontal axis - this may be useful for playback of a webcam video, providing the user with better mirroring of their real behaviors (ie. when user moves left, their representation on-screen would move left as well).

范例

       var myVideo = document.getElementById("videoTag1");
       myVideo.msHorizontalMirror = true;
       myVideo.play();
					

Example #2:

    var flip = document.querySelector('#flip');
    flip.addEventListener('click', function() {
      video.msHorizontalMirror = true;
    });
					

另请参阅

元数据

  • 最后修改: