Since several weeks, i try to add tarteaucitron.js for GDPR consent in video floatbox.
Video (youtube or vimeo) iframe embedded player are call with "href=..." but to use the GDPR script tarteaucitron i must call the video in a <div> with a class="youtube_player" and a videoID="video_id" (it creates an iframe as floatbox).
I do it in a hidden div and it works for the GDPR consent request but then the "data-fb-options" not work any more, especialy i'd like to add autoPlayVideo and autoEndVideo.
html code:
<a href="#videobox" class="floatbox"
data-fb-options="type:video autoPlayVideo:true autoEndVideo:true width:854 height:480">
<div id="videobox" class="youtube_player" youtubeid="video_id" style="display:none;"></div>
</a>
Do you know how can i have all the fonction of data-fb-options with an hidden div only use to add video? Maybe a code to add in fbOptions.js ?
I also try to use floatbox to call a php page with video content. No more succes, i can manually add autoplay but not autoend.
Thank you for your help.