Hello, I’ve come across $w.Video on the API page, but which object is it? I’ve tried adding all the video objects shown in the video section under add, but none of them are $w.Video. The reason I want to use $w.Video is because it has .videoURL which I will need. You can find .videoURL here: https://www.wix.com/corvid/reference/$w.Video.html#videoUrl . Please help as soon as possible, as I am very desperately trying to find the object.
I can tell you that it works with videos that come with a lightbox template (and you can copy it from a lightbox template and paste it on a regular page).
(there’re probably more straightforward ways to add a video element that can get a new url via code, but I don’t have experience with Wix videos, Maybe others will be able to help).
Not all heroes wear capes! Thank you so so so so so much!
You’re welcome
Sorry to bother you, but do you know why it’s saying a format error when i put the url? i followed the exact same thing from the api doccumentation
What’s the url?
I mean, it only supports Vimeo or Youtube.
Anyway, I had a look and I can see that instead of using this lightbox video, you can take a video player from the video section (on the left menu) and use it like this:
$w("#videoPlayer4").src = "https://www.youtube.com/watch?v=IfzE1n9W24E";
Same problem, still showing an error on the link
I don’t know. It worked for me. Maybe you should put here your actual code.
@J. D. $w.onReady(function () {
$w("#video1").videoUrl = "https://www.youtube.com/watch?v=p-DPZ6M6-7E"
})
@wuzup2007 yes
@jonatandor35 Doesn’t work
@wuzup2007 see here: https://jonatandor35.wixsite.com/test/videourl
This page contains your code as is.
@jonatandor35 Maybe it only shows the error in the editor, let me see it as a live site
@jonatandor35 Yes! The editor was showing it as an error, but when i put it in a live site it was alright! Thank you so so so much for all the help you’ve given
@wuzup2007 you’re welcome.