Hi,
If you wish to display a video in a dynamic page you can use an HTML component. Change the website address to the URL of the video based on the path, check out this code for example:
import wixData from 'wix-data';
import wixLocation from 'wix-location';
$w.onReady(function () {
let path = wixLocation.path;// get the path
wixData.query("videoTest")// find the relevant record in the database
.eq("pageName",path)
.find()
.then( (results) => {
let url = results.items[0].url; // get the url
console.log(url);
$w("#html1").src = url; // set the src to display the url
} )
.catch( (err) => {
let errorMsg = err;
} );
});