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 743892c commit ab7729d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/triple-media/src/triple-media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function Media({
sourceUrl,
title,
description,
videoInitiallyMuted,
} = media

if (type && type === 'video' && video) {
Expand All @@ -60,6 +61,7 @@ export default 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 ab7729d

Please sign in to comment.