Skip to content

Commit

Permalink
영상 기본 음소거기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkim01 committed Dec 19, 2024
1 parent 5f33f83 commit cb7d78d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tds-widget/src/media/media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function Media({
sourceUrl,
title,
description,
videoInitiallyMuted,
} = media

if (type && type === 'video' && video) {
Expand All @@ -63,6 +64,7 @@ export function Media({
cloudinaryId={cloudinaryId}
autoPlay={autoPlay}
loop={loop}
muted={videoInitiallyMuted}
hideControls={!!hideControls}
showNativeControls={showNativeControls}
/>
Expand Down
2 changes: 2 additions & 0 deletions packages/type-definitions/src/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ export interface ImageMeta {
href: string
label?: string
}
/* 어드민에서 설정하는 값으로 영상 재생시 소리를 음소거 해주는 기능 */
videoInitiallyMuted?: boolean
}

0 comments on commit cb7d78d

Please sign in to comment.