File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ type CustomPlayEventDetail = { uniqueId: string };
18
18
const customPlayAudioEventName = 'looping-video:play-with-audio' ;
19
19
20
20
/**
21
- * Dispatches a custom play event so that other players listening
22
- * for this event will stop playing
21
+ * Dispatches a custom play audio event so that other videos listening
22
+ * for this event will be muted.
23
23
*/
24
24
export const dispatchCustomPlayAudioEvent = ( uniqueId : string ) => {
25
25
document . dispatchEvent (
@@ -75,7 +75,7 @@ export const LoopVideo = ({
75
75
* Setup.
76
76
*
77
77
* Register the users motion preferences.
78
- * Create event listeners to ensure we don't play audio from multiple loops
78
+ * Creates an event listener to ensure we don't play audio from multiple loops
79
79
*/
80
80
useEffect ( ( ) => {
81
81
const userPrefersReducedMotion = window . matchMedia (
You can’t perform that action at this time.
0 commit comments