added autoplay

This commit is contained in:
ArabCoders 2025-03-06 01:48:37 +03:00
parent 2106ea29b7
commit 241efc8d5f

View file

@ -10,7 +10,7 @@
<template>
<div>
<video class="player" ref="video" :poster="thumbnail" :title="title" playsinline controls crossorigin="anonymous"
preload="auto">
preload="auto" autoplay>
<source v-for="source in sources" :key="source.src" :src="source.src" @error="source.onerror"
:type="source.type" />
<track v-for="(track, i) in tracks" :key="track.file" :kind="track.kind" :label="track.label" :srclang="track.lang"