latest update youtube replica
This commit is contained in:
1 parent
5253f89b63
commit
b38f1a93bb
9 files changed
+1699
-295
No files matched your search
@@ -296,7 +296,6 @@
|
||||
@endif
|
||||
|
||||
@include('layouts.partials.share-modal')
|
||||
@include('layouts.partials.upload-modal')
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
@@ -305,6 +304,7 @@ function playVideo(card) {
|
||||
const video = card.querySelector('video');
|
||||
if (video) {
|
||||
video.currentTime = 0;
|
||||
video.volume = 0.25; // Set volume to 25%
|
||||
video.play().catch(function(e) {
|
||||
// Auto-play may be blocked, ignore error
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user