Announcement

#1 2023-02-20 21:27:31

BigIsland270972
Member
Norway
2022-03-15
374

Piwigo-Videojs question.

Hello/Hi/Greetings,

Just a quick question. Have anybody got subtitles .vtt files to work with this plugin?
If so how?? I have follow the intructions and  added the .vtt files in subfolder "pwg_representative" with the same filname as the mp4 video file, but its not appearing in the player UI.



Piwigo URL: https://www.fotoarkiv.no/index.php?/category/1490

Last edited by BigIsland270972 (2023-02-20 21:28:06)


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#2 2023-02-22 00:14:20

BigIsland270972
Member
Norway
2022-03-15
374

Re: Piwigo-Videojs question.

Hello is there anything wrong with this code? /plugins/piwigo-videojs/main.inc.php Since the loading of subtitles don't work :-(

Code:

/* Try to find WebVTT */
    $file = $file_dir."/pwg_representative/".$file_wo_ext['filename'].".vtt";
    $subtitles = null;
    if (file_exists($file))
      $subtitles ='<track kind="subtitles" src="'. embellish_url( get_gallery_home_url() . $file) .'" srclang="'. $language .'" label="English"></track>';

Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#3 2023-02-24 17:41:49

BigIsland270972
Member
Norway
2022-03-15
374

Re: Piwigo-Videojs question.

This issue is still not resolved.


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact