Skip to content

Commit

Permalink
Define video URL option url params explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Aug 21, 2024
1 parent d9d6ebd commit 235ae72
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/elements/video-player/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { StyledIframe } from "./video-player.styles";

const urlOptions = 'autoplay=true&loop=true&muted=true&preload=true&responsive=true';
const urlOptions = new URLSearchParams({
autoplay: 'true',
loop: 'true',
muted: 'true',
preload: 'true',
responsive: 'true'
}).toString();

export const VideoPlayer = (props: {
libraryId: string,
Expand Down

0 comments on commit 235ae72

Please sign in to comment.