b13 / twoclickmedia

2 stars 5 forks source link

youtube.com request before first click #11

Open Wurzelmann opened 1 year ago

Wurzelmann commented 1 year ago

Currently, twoclickmedia requests the video URL as background image. Besides sending this request unconditionally to Youtube, it also doesn't work to use an HTML file as background image.

This code in Resources/Private/Partials/Iframe.html

<div class="twoclickmedia__info JS_twoclickmedia-info"
     style="background-image: url({f:uri.image(src: file.uid, treatIdAsReference: isReference)})">

gets rendered to:

<div class="twoclickmedia__info JS_twoclickmedia-info"
     style="background-image: url(https://www.youtube.com/watch?v=aqz-KE-bpKQ)">
achimfritz commented 3 months ago

Hi @Wurzelmann for me the preview image is rendered?

<div class="twoclickmedia__info JS_twoclickmedia-info" style="background-image: url(/fileadmin/_processed_/a/0/csm_Kids_In_Meinem_Alter__Teil_2_588e315d28.png)">

?