Scrubbing doesn't work
I found scrubbing doesn't work with video files with VideoJS on. Click on the half-way point on the scrubbing bar only causes the video to jump forward a little (and not to the half-way mark). A side effect of this is that if the video index is at the end of the video, it will take a long time to start playing.
I'm using the Bootstrap Darkroom theme and it seems to support videos natively. Here is HTML from the "F12" inspector screen with the VideoJS plugin disabled:
<div id="theImage" class="row d-block justify-content-center mb-3">
<div id="video-modal" class="col-lg-8 col-md-10 col-sm-12 mx-auto">
<div class="embed-responsive embed-responsive-16by9">
<video id="video" class="embed-responsive-item" width="100%" height="auto" controls="" preload="auto" poster="_data/i/upload/2025/07/03/pwg_representative/20250703225255-66c939c4-xl.jpg">
<source src="./upload/2025/07/03/20250703225255-66c939c4.mp4" type="video/mp4">
</video>
</div>
</div>
</div>
And here is the HTML with VideoJS enabled:
<div id="theImage" class="row d-block justify-content-center mb-3">
<video id="my_video_1" class="video-js" controls="" preload="auto" poster="/piwigo/upload/2025/07/03/pwg_representative/20250703225255-66c939c4.jpg" x-webkit-airplay="allow" width="100%" height="auto">
<source src="action.php?id=6790&part=e&download" type="video/mp4">
<p>Video Playback Not Supported<br>Your browser does not support the video tag.</p>
</video>
</div>
Replacing the "<source src=" line works (but the video window size is messed up).
I'm leaving VideoJS disabled for now, and plan to only enable it to import meta-data (which I found it's very helpful). The Bootstrap Darkroom theme's video support seems to work for now, although I'd like to use VideoJS as there's more features.
I do not encounter this issue with Safari 18.6 on macOS. Which browser do you use and on which platform?
Can you please try to replace <source src="action.php?id=6790&part=e&download" type="video/mp4"> with <source src="action.php?id=6790&part=e&download" type="video/mp4">?
Hello EddyLB. Thanks for the fast reply. I'm running Windows 11. I modified the source line in both Firefox 140.0.2 and Chrome 137.0.7151.120. Both won't scrub with the VideoJS plugin enabled.
As a pure experiment, I disabled the plugin but this time used Firefox's F12 Dev Tools to use the same source as the plugin does:
<div id="theImage" class="row d-block justify-content-center mb-3">
<div id="video-modal" class="col-lg-8 col-md-10 col-sm-12 mx-auto">
<div class="embed-responsive embed-responsive-16by9">
<video id="video" class="embed-responsive-item" width="100%" height="auto" controls="" preload="auto" poster="_data/i/upload/2025/07/03/pwg_representative/20250703225255-66c939c4-xl.jpg">
<source src="action.php?id=6790&part=e&download" type="video/mp4">
</video>
</div>
</div>
</div>
To my surprise, scrubbing worked. So...it's doesn't appear to be the source line. I also tested this exact code with the plugin enabled, but scrubbing doesn't work. It's something else.
On a side note, I did a little searching in Google. One possible reason this is happening "Byte-Range Requests" or "Byte Serving". Googling "php allow Byte-Range Requests" shows this:
Yes, PHP can be used to handle and respond to Byte-Range Requests, which are often called "Byte Serving". This allows clients to download specific portions (ranges of bytes) of a file, which is beneficial for tasks like streaming large media files or resuming interrupted downloads.
I was also thinking it might possibly be a issue with my Apache/PHP.ini file(s) blocking access to the same.
If you want me to test something else let me know and I can.
I have exactly the same problem. Scrubbing doesn't work with video files on Chrome Windows.
Piwigo is installed on a Synolgy NAS. The theme is bootstrap_darkroom. These tests were performed on Piwigo 15.5 with minimal plugins.
With piwig_videojs revision 15.f dated 06/06/2025, the video progress slider has no effect. You cannot move around the video. The issue is observed with Chrome, Opera, or Edge, but not with Firefox.
With piwigo_videojs revision 15.e dated 04/07/2025, everything works perfectly, regardless of the browser.
When you're in the album, hovering over the "pwg_representative" image:
With the latest version 15.f dated 06/06/2025, using the inspector, you can see that the source src = "action.php?id=21692&part=e&download"
With the penultimate version 15.e dated 04/07/2025, using the inspector, you can see that the source src = "./galleries/VideoPiwi/2022 - NORWAY/NORWAY-V07A.mp4"
I think it's the “&download” argument that's causing the problem: some servers change the HTTP Content-Disposition header to force the file to be downloaded, instead of serving it as a multimedia stream (inline).
I have made some tests and the action.php?id=21692&part=e&download link is not an issue with recent versions of Brave, Chrome, Firefox and Safari on macOS.
After searching, I have realised that while the URL format is technically valid, ending the URL with &download without an = might be problematic for older or non-standard clients which might not treat it as $_GET['download'] = '' (empty string).
So for now, I believe that for reducing the number of situations where scrubbing doesn't work, the plugin should use a link of the type action.php?id=21692&part=e&download only when $conf['original_url_protection'] is not empty.
Thank you EddyLB the 15g version works perfectly