[pmwiki-users] Make flv module php >= 5.5 compatible
Jean-Pierre Chrétien
jeanpierre.chretien at free.fr
Wed Aug 12 06:39:01 CDT 2015
Petko Yotov <5ko <at> 5ko.fr> writes:
> On 2015-08-06 17:37, Jean-Pierre Chrétien wrote:
[...]
> >
> > No more errors about deprecated "e" modifier, but the recipe simply
> > does not
> > work, the flv video does not appear.
> >
> > I will check if swf.php works.
>
> Are you able to see the first video which is a FLV video, at this page:
>
> http://galleries.accent.bg/Cookbook/Ape#embed_video_players
>
> I can play it on Firefox but not on Chromium (on Ubuntu, and I don't
> have any media plugins enabled).
>
> If it works for you, I'll release a new version of that recipe, which is
> PHP5.5 safe.
No, a grey window appears in the page with a message about a missing plugin
to read flv videos, both with Iceweasel and Seamonkey.
Anyway, I managed to make flowplayer work with the help of your useful
hints, here is the diff :
-Markup('FlowPlayer', 'inline','/\\(:flowplayer\s*(.*?)\s*:\\)/e',
"ShowFlowPlayer('$1')");
+Markup_e('FlowPlayer', 'inline','/\\(:flowplayer\s*(.*?)\s*:\\)/',
PCCF('return ShowFlowPlayer($m[1]);'));
I posted a mail to the author of the module with the patch, I'll keep you
posted.
Currently for me, flowplayer is the only recipe successfully playing flv
videos in PmWiki.
--
Jean-Pierre
More information about the pmwiki-users
mailing list