Note: This bug was fixed and the API now works as advertised.
@yisrael-wix
@aleksander-denga
@Aleksander Jdanov
The original post was shut down by Yisrael as he was tired of looking at it.
It has been two months since the bug report.
Any updates on this?
1 Like
@Yisrael (Wix)
@Aleksander Denga
@Aleksander Jdanov
It’s been 4 months.
Any updates on this bug?
Gentle bump.
SOME … ANY STATUS UPDATE, PLEASE.
@brainstorrrm Hi. This bug was fixed recently. Could you please check on your side?
@aleksander-denga
Thanks for the reply.
Setting a new background image works.
Setting a new background video still fails.
API:
https://www.wix.com/corvid/reference/$w.Document.html
This works (stock Wix image):
$w("Document").background.src = "wix:image://v1/68d3a9_1de7529c444b4c9eb38401f8efe0cad2.jpg/flowers.jpg#originWidth=1970&originHeight=1120";
This fails (stock Wix video):
$w("Document").background.src = "wix:video://v1/11062b_64ae2a899006496dac01c2e81fac97f1/_#posterUri=/11062b_64ae2a899006496dac01c2e81fac97f1f000.jpg&posterWidth=1920&posterHeight=1080";
@aleksander-denga
As far as I can tell, there has been no change.
Can you elaborate on what bug was “fixed recently?”
@brainstorrrm Hi.
Could you please tell where do you get this video URL?
$w("Document").background.src = "wix:video://v1/11062b_64ae2a899006496dac01c2e81fac97f1/_#posterUri=/11062b_64ae2a899006496dac01c2e81fac97f1f000.jpg&posterWidth=1920&posterHeight=1080";
It contains one extra symbol “/” after posterIUri=
This works for me.
$w("Document").background.src = "wix:video://v1/11062b_64ae2a899006496dac01c2e81fac97f1/_#posterUri=11062b_64ae2a899006496dac01c2e81fac97f1f000.jpg&posterWidth=1920&posterHeight=1080";
Regards, Alex
@aleksander-denga
You made my day.
The API now works as advertised - thank you.
“Could you please tell where do you get this video URL?”
The URL with the extra “/” was produced by the old API with the bug.
I had saved that old (and faulty) URL and reused it.
I tested the new API by writing new URLs to the console, and the API is producing correct URLs.
console.log("URL = " + $w("Document").background.src);
@brainstorrrm Glad to hear it! Thank you