Hi,
I tried VideoJS and Jplayer plugins for my videos. I get the same errors with both players. On three of my videos, not all of them, I get the following errors at the top of the page when viewed:
----------error-------------
Warning: Invalid argument supplied for foreach() in /home2/taja/public_html/Pix/plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php on line 207
Warning: Invalid argument supplied for foreach() in /home2/taja/public_html/Pix/plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home2/taja/public_html/Pix/plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php:207) in /home2/taja/public_html/Pix/include/page_header.php on line 101
-----------/error------------
Here is the link to one of the videos with the error: http://radtacular.com/Pix/picture.php?/1410/category/71
The videos still work, but I want to fix / remove the errors. After using both video players, I prefer the jplayer plugin so that is the one I would like to fix.
Piwigo version: Piwigo 2.6.2
PHP version: PHP: 5.2.17
MySQL version: MySQL: 5.5.33-31.1
Piwigo URL: http://radtacular.com/pix
jplayer version: 0.6
VideoJS: 2.6a
Offline
Hello
author notified
Offline
This is a bug nicely reported, thank you for taking the time to do so.
It seems related to the lib getid3 (used in both plugins)
Piwigo-jplayer already relies on the last release of getid3 (1.9.7) but I will try to update to beta to see how your case will be handled.
Offline
Great! Thank you. :)
Offline
I tried to update the getid3 lib to the current beta and it seems that your problem is fixed with this version. I'm not going to update right now as it is still in beta but here are the instructions to patch your site if you want :
- download the latest getid3 : https://github.com/JamesHeinrich/getID3 … master.zip
- unzip the file and replace the directory <piwigo_root>/plugins/piwigo-jplayer/include/getid3 with the getid3 dir included in the downloaded zip.
- And that should be all :-)
Last edited by d-matt (2014-04-24 15:10:54)
Offline
jplayer v0.6 generates errors on video without audio track in it:
Warning: Invalid argument supplied for foreach() in plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php on line 207
Warning: Invalid argument supplied for foreach() inplugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at plugins/piwigo-jplayer/include/getid3/module.audio-video.quicktime.php:207) in include/page_header.php on line 101
Piwigo 2.7.4
How do I generate video thumbnail?
Offline
jPlayer is only a player. For the thumbnail you need to create them yourself and upload them.
Alternative, you can use VideoJS. VideoJS does not use getid3 anymore and allow you to generate the thumbnail and more with the correct tools install.
Offline