Set the media group for 2 <audio> elements:
The mediaGroup property sets or returns the name of the media group the audio is a part of.
A media group allow 2 or more <audio> elements to be kept synchronized.
The mediaGroup property is supported in all major browser.
Return the mediaGroup property:
Set the mediaGroup property:
Value | Description |
---|---|
group | Specifies the media group of the audio |
Return Value: | A String, representing the media group of the audio |
---|