•  » Extensions
  •  » [resolved] piwigo-videojs 15.f network warning

#1 2025-08-29 11:58:16

gueba
Member
2021-12-31
82

[resolved] piwigo-videojs 15.f network warning

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):

Code:

 'src' => $strm ? $strm : embellish_url($picture['current']['download_url']),

to

Code:

 '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

 

#2 2025-09-16 11:16:05

gueba
Member
2021-12-31
82

Re: [resolved] piwigo-videojs 15.f network warning

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

 

#3 2025-10-29 10:01:41

cryopad
Piwigo Team
Grenoble, France
2015-11-01
233

Re: [resolved] piwigo-videojs 15.f network warning

A new version of the VideoJS plugin is now available. Please give it a try ;-)


If you enjoy Piwigo for iOS…
➤ We would appreciate an AppStore review.
➤ Comments, suggestions ? Tell us on GitHub…
➤ Not yet available in your language ? Help us translate it…

Offline

 

#4 2025-10-29 13:59:48

gueba
Member
2021-12-31
82

Re: [resolved] piwigo-videojs 15.f network warning

I'm fully satisfied :-)
Thank you

Offline

 
  •  » Extensions
  •  » [resolved] piwigo-videojs 15.f network warning

Board footer

Powered by FluxBB