Open video from database to windows

I would like to know if I can from a dynamic page open a created window with a video that is taken from a database and that opens the same video that is on the dynamic page.

Wich code i need to take

Thanks and Merry Christmas

I’m using that code but dont open the same video on the dynamic page

$w.onReady( function () {
$w(“#predicasdataset”).onReady( () => {
let currentItem = $w(“#predicasdataset”).getCurrentItem().video;
$w(“#video1”).parent = (currentItem);
} );
} );

You can set the URL of the Video component using the videoUrl property . If you want to use the VideoPlayer component, set the src property .

Thank you for answering Yisrael but that is not what I want. The theme is that from a dynamic page open a specific video of each section of the dynamic page in a lightbox created. I have managed to open the lightbox from the button but I can not get the specific video from the database of each page.

I’ll try to describe it

User will upload some text and video url (youtube) to my Database.
Uploaded content will show up on Dynamic Page like on pic below

If I click on play video button then Lightbox will open up.
But I want to open the specific video to the database
and if and I open another section of the dynamic page will have another different video that would have to open in the lightbox


The code on the dynamic page

import wixWindow from ‘wix-window’;
export function iconButton49_click(event, $w) {
const currentItem = $w(‘#predicasDataset’).getCurrentItem().video;
wixWindow.openLightbox(“Predicas”, currentItem);
} );
}

and in the lightbox

import wixWindow from ‘wix-window’;
$w.onReady(function () {
const data = wixWindow.lightbox.getContext();
$w(‘#video1’).videoUrl = data;
});

What I am doing wrong

Thanks