Skip to content

Commit

Permalink
fix: play video in line for safari (#169)
Browse files Browse the repository at this point in the history
* play video in line for safari

* add play in line for pre video upload
  • Loading branch information
ravi-sawlani-yral authored Apr 4, 2024
1 parent 169e38b commit d360721
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/page/upload/video_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub fn PreVideoUpload(file_blob: WriteSignal<Option<FileWithUrl>>) -> impl IntoV
<video
_ref=video_ref
class="object-contain w-full"
playsinline
muted
autoplay
loop
Expand Down Expand Up @@ -233,6 +234,7 @@ pub fn VideoUploader(params: UploadParams) -> impl IntoView {
<div class="flex flex-col justify-start self-center w-3/4 mb-8 lg:mb-0 lg:pb-12 lg:max-h-full lg:w-1/2 basis-full lg:basis-5/12">
<video
class="object-contain w-full"
playsinline
muted
autoplay
loop
Expand Down

0 comments on commit d360721

Please sign in to comment.