[pmwiki-users] to embed or not to embed

Petko Yotov 5ko at 5ko.fr
Sun May 7 16:24:37 CDT 2017

Embedding locally attached videos is not supported: I haven't found the 
time to make it work consistently across different browsers.

If you want to enable it, you could alter the installation code to this:

   if($action=="browse" || $_REQUEST['preview']) { # existing line

     # new 2 lines
     $HTMLFooterFmt['ape-local'] = '<script type="text/javascript">
     var uAPErx = [ [/^(.*\.(mp4|mkv|avi|mp3|ogg|flac))$/i, "$1"] 

     # existing lines
     $HTMLFooterFmt['ape'] = '<script type="text/javascript"

The line with 'ape-local' and the next line were inserted, and allow you 
to let the browser try to embed mp4|mkv|avi|mp3|ogg|flac files.

Note, this is something that I cannot support if it doesn't work in some 
way. Some day, if I find some free time, I may to work on it. For the 
moment, consider uploading your videos to a supported platform.


Change log     :  http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes  :  http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade :  http://www.pmwiki.org/wiki/PmWiki/Upgrades

On 2017-05-07 19:11, Roberto De Renzi wrote:
>   I have embedded two videos in my pmwiki with your ape recipe, one is
> from youtube and it is really embedded.  See
> https://youtu.be/S4iSqS1rEX8
> The second is an Attach:myfile.mp4 and it only shows a link to the 
> file. See
> http://www.fis.unipr.it/~derenzi/dispense/pmwiki.php?n=Onde.Cinematica
> If I click on the link, instead of embedding the video, it gets loaded
> in a fresh browser page.
> Can you please tell me where I am going wrong?
> Grazie  Roberto

More information about the pmwiki-users mailing list