Easy Tutorial
❮ Html Head Av Prop Controls ❯

HTML Audio/Video DOM mediaGroup Property

HTML Audio/Video DOM Reference Manual

Example

Set the media group for two videos:


Definition and Usage

The mediaGroup property sets or returns the name of the media group to which the audio/video belongs.

Media groups allow two or more audio/video elements to stay synchronized.


Browser Support

All major browsers support the mediaGroup property.


Syntax

Set the mediaGroup property:

Return the mediaGroup property:

Property Values

Value Description
group Specifies the media group for the audio/video.

Technical Details

| Return Value: | String value indicating the media group of the audio/video. | | --- | --- |

❮ Html Head Av Prop Controls ❯