Need help with videobox

Got a problem with setting the source of videobox objects. Wix API says “Sets or gets the file location of the current video.”
Still it gives the error: “Cannot assign src because it is a read-only property”. How could that be? Am I missing something?

$w('#videoBox1').src = "wix:video://v1/b6f82f_33ad39dfd7c742098bcb381658e3e363/Kommune.avi#posterUri=b6f82f_33ad39dfd7c742098bcb381658e3e363f000.jpg&posterWidth=1294&posterHeight=728";

Try to use a videoUrl property.

$w('#videoBox1').videoUrl = 'https://youtube.com/watch?v=PMWmYf2043g';

https://www.wix.com/velo/reference/$w/video/videourl

Thanks for your answer. videoUrl doesn’t work on videoboxes. Only on the video objects, which are deprecated and wouldn’t work for the page.