YouTube and Facebook video URLs (like - YouTube and https://www.facebook.com/53481411129/videos/914555659163218) display nicely in the Wix VideoPlayer element. But the Velo tools to work with the element are not working for me to, for example, retrieve the POSTER url or set the poster image with a url. The video element’s poster property is shown as “null” (even though there is a cover image that is not the first frame of the video) and I cannot seem to set the value using the .poster assignment (inside the $w.onReady function):
console . log ( "POSTER: " + $w ( ‘#videoPlayer2’ ). poster ); // null
$w ( ‘#videoPlayer2’ ). poster = “https://imageLocation.jpg” ;
console . log ( "POSTER: " + $w ( ‘#videoPlayer2’ ). poster ); // null
I’ve attempted this with YouTube video and Facebook video. I don’t see a caveat in the documentation that the Velo tools only work with certain types of video sources.
Does someone have guidance about this? Must the videos be files (.mp4) on the internet or uploaded to the Wix site?
Thanks!