Skip to content

Commit e083f0a

Browse files
authored
fix: resolve media has caption (#1011)
1 parent 3a45bab commit e083f0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/DefaultVideo/DefaultVideo.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable jsx-a11y/media-has-caption */
2-
// TODO fix in https://github.com/gravity-ui/page-constructor/issues/967
31
import React, {Fragment, useCallback, useImperativeHandle, useRef, useState} from 'react';
42

53
import {CustomControlsType, MediaVideoControlsType, MediaVideoProps} from '../../models';
@@ -89,6 +87,7 @@ export const DefaultVideo = React.forwardRef<DefaultVideoRefType, DefaultVideoPr
8987
{getVideoTypesWithPriority(video.src).map(({src, type}, index) => (
9088
<source key={index} src={src} type={type} data-qa={qa} />
9189
))}
90+
<track default kind="captions" />
9291
</video>
9392

9493
{controls === MediaVideoControlsType.Custom && (

0 commit comments

Comments
 (0)