🌍
English
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)
Offline
Hello is there anything wrong with this code? /plugins/piwigo-videojs/main.inc.php Since the loading of subtitles don't work :-(
/* 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>';
Offline
This issue is still not resolved.
Offline