HTML DOM Video mediaGroup property
Examples
Setting the media mix as two videos:
var
x = document.getElementById("myVideo1");
var y = document.getElementById("myVideo2");
x.mediaGroup = "test";
y.mediaGroup = "test";
var y = document.getElementById("myVideo2");
x.mediaGroup = "test";
y.mediaGroup = "test";
try it"
Definition and Usage
mediaGroup property sets or returns the name of the media combined audio / video belongs.
Allows two or more media packets of audio / video sync element.
Browser Support
All major browsers support mediaGroup property
grammar
Back mediaGroup properties:
videoObject .mediaGroup
Setting mediaGroup properties:
videoObject .mediaGroup= group
Property Value
值 | 描述 |
---|---|
group | 描述了视频的媒体分组。 |
technical details
return value: | String that represents the video media packets. |
---|
Video Object