hello, how do you set the video ID in JS ?
I tried Appery("youTubeComponentName").videoID("07Sxxxx4R8");
but didn't work.
it's accepting Appery("...").val("xxx");
but doesn't play
could you help out ?
thk you
Eric
hello, how do you set the video ID in JS ?
I tried Appery("youTubeComponentName").videoID("07Sxxxx4R8");
but didn't work.
it's accepting Appery("...").val("xxx");
but doesn't play
could you help out ?
thk you
Eric
Hi Eric -
You can try following code:
precode
// your video ID variable
var videoID = "p1qpT3rzpH8"
Apperyio('youTubeComponentName').attr("src", "https://www.youtube.com/embed/"+ videoID + "?autoplay=1&loop=1&controls=0&showinfo=0&playlist="+videoID+"&enablejsapi=1&origin=https%3A%2F%2Fappery.io");
/code/pre
I'll try this one. thk you!
works as expected. thk you!
Hi There, do you agree that "onStatusChange" event doesn't fire anything ?
except "5" after page loaded.
but when start playing or pause or ... no status update.
any advice?
Eric
Sorry, I don't understand your question, could you please be more specific?
for YT component, in the event panel, there is "on status change" as follows
https://devcenter.appery.io/documenta...
the video loads, plays, pauses, ... ends
but no change in the label
Hello,
Please check if there are any errors in the browser console. You can learn here: https://devcenter.appery.io/documenta... how to open the console.