Skip to content

Commit 1f6b67e

Browse files
committed
영상 기본 음소거기능 추가
1 parent c64fb7d commit 1f6b67e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/triple-media/src/triple-media.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default function Media({
4747
sourceUrl,
4848
title,
4949
description,
50+
videoInitiallyMuted,
5051
} = media
5152

5253
if (type && type === 'video' && video) {
@@ -60,6 +61,7 @@ export default function Media({
6061
cloudinaryId={cloudinaryId}
6162
autoPlay={autoPlay}
6263
loop={loop}
64+
muted={videoInitiallyMuted}
6365
hideControls={!!hideControls}
6466
showNativeControls={showNativeControls}
6567
/>

packages/type-definitions/src/image.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,6 @@ export interface ImageMeta {
6262
href: string
6363
label?: string
6464
}
65+
/* 어드민에서 설정하는 값으로 영상 재생시 소리를 음소거 해주는 기능 */
66+
videoInitiallyMuted?: boolean
6567
}

0 commit comments

Comments
 (0)