Initialize volume to 0.5

experimental
Charlotte Som 2021-12-03 20:24:57 +00:00
parent f42200b0fe
commit e4740c757f
1 changed files with 10 additions and 9 deletions

View File

@ -6,6 +6,7 @@ const createVideoElement = (videoUrl, subtitles) => {
const video = document.createElement("video"); const video = document.createElement("video");
video.controls = true; video.controls = true;
video.autoplay = false; video.autoplay = false;
video.volume = 0.5;
video.crossOrigin = "anonymous"; video.crossOrigin = "anonymous";
const source = document.createElement("source"); const source = document.createElement("source");