Hi,
After updating piwigo-videojs from 15.e to 15.f I notices errors like "A network error caused the media download to fail part-way." playing videos longer than ~2 minutes. The video continues playing but the player does not react although the PiP function works.
The videos play well on a pure html-site and even with the native player in bootstrap darkroom, as long as videojs is not activated.
By trial and error (attaching the changes from 15.e to 15.f step by step) I found the problem in Fixes #188: by adopting the url prepared for downloading a picture
switching back from (line 228):
'src' => $strm ? $strm : embellish_url($picture['current']['download_url']),
to
'src' => $strm ? $strm : embellish_url($picture['current']['element_url']),
fixes the problem for me.
Can anyone confirm this?
Server-Umgebung
Piwigo 15.6.0 Prüfen, ob eine neue Version verfügbar ist.
Installiert auf 28 Januar 2017, vor 8 Jahre 7 Monate
Betriebssystem: Linux
PHP: 8.3.21-nmm1 (Info anzeigen) [2025-08-29 11:57:06]
MySQL: 10.11.13-MariaDB-0ubuntu0.24.04.1-log [2025-08-29 11:57:06]
Grafikbibliothek: ImageMagick ImageMagick 6.9.12-98
Größe des Cache 0 Mo berechnet vor 4 Tage Aktualisieren
Liste der aktivierten Plugins 4
LocalFiles Editor
OpenStreetMap
Panoramas
VideoJS
Offline
Digging deeper I found that the network errors only appeared if the mp4-videos had faststart enabled.
Using 'element_url' the video source is called with readable <path>/<name> while with 'download_url' it is called with 'action.php'
Looking at piwigo_vidoejs github page, I found that EddyLB has already found a solution:
[Github] piwigo-videojs commit 408d4743
Thank's
Last edited by gueba (2025-09-16 11:18:20)
Offline
A new version of the VideoJS plugin is now available. Please give it a try ;-)
Offline
I'm fully satisfied :-)
Thank you
Offline