Skip to content

Commit

Permalink
Fix unmuted player on start
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-asriyan committed Nov 9, 2024
1 parent a164da2 commit a847d7e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"tslib": "^2.6.2",
"typescript": "^5.5.0",
"uikit": "^3.21.13",
"vidstack": "^1.12.11",
"vidstack": "^1.11.30",
"vite": "^5.4.4",
"vite-plugin-pwa": "^0.19.8"
},
Expand Down
9 changes: 2 additions & 7 deletions src/components/video-player/video-player-vidstack.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<media-player
class="uk-width-1-1 uk-height-1-1"
bind:this={player}
src={source.src}
src={{ src: source.src }}
autoplay
playsInline
preload="metadata"
Expand All @@ -88,14 +88,9 @@
on:play={() => dispatch('play')}
on:time-update={() => dispatch('timeupdate')}
>
<media-provider>
</media-provider>
<!-- Layouts -->
<media-provider></media-provider>
<media-audio-layout></media-audio-layout>
<media-video-layout></media-video-layout>
<!-- <media-controls>
</media-controls> -->
</media-player>

<style lang="scss">
Expand Down

0 comments on commit a847d7e

Please sign in to comment.