Skip to content

Commit

Permalink
feat: web인 경우 비디오 autoplay 되도록 함
Browse files Browse the repository at this point in the history
  • Loading branch information
seulgiyoon committed Aug 9, 2024
1 parent 6fde2c6 commit 7aff893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tds-widget/src/image-carousel/video-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export function VideoContent({
const clientApp = useClientApp()

const [videoAutoplay, setVideoAutoPlay] = useState(
clientApp?.device.autoplay === 'always' ||
!clientApp ||
clientApp?.device.autoplay === 'always' ||
(clientApp?.device.autoplay === 'wifi_only' &&
clientApp?.device.networkType === 'wifi'),
)
Expand Down

0 comments on commit 7aff893

Please sign in to comment.