Skip to content

Commit

Permalink
Finish mute video switch implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Jun 14, 2024
1 parent 76ea0c0 commit 34dbf36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/assets/js/videos/stores/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let defaults = {
showMousePosition: false,
showProgressIndicator: true,
jumpStep: 5.0,
muteVideo: true,
};

export default new Settings({
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/videos/videoContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ export default {
this.initAnnotationFilters();
this.restoreUrlParams();
this.video.muted = Settings.get('muteVideo');
this.video.muted = this.settings.muteVideo;
this.video.preload = 'auto';
this.video.addEventListener('error', function (e) {
if (e.target.error.code === MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED) {
Expand Down
4 changes: 4 additions & 0 deletions resources/views/manual/tutorials/videos/sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,9 @@
<p>
The mouse position switch controls the display of an additional map overlay that shows the current position of the cursor on the video in pixels.
</p>

<p>
The mute video switch enables or disables the audio track of the video.
</p>
</div>
@endsection

0 comments on commit 34dbf36

Please sign in to comment.