This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Chandan Manohar Raikar
Posted Feb 03 - Read on Facebook

How can i perform animation at the end of YouTube video?
here i have a layer which has youtube video. when the youtube video ends playing i want to perform some actions. how can i do that?

insetvideo = new Layer({y:0,width: v1layer.width - 30, height:v1layer.height-30, backgroundColor: "",superLayer:v1layer})
insetvideo.html = "<iframe width='560' height='400' src='https://www.youtube.com/embed/-79uIRQiAFM' frameborder='0' allowfullscreen></iframe>"
insetvideo.ignoreEvents = false

insetvideo.on("ended", function() {
location.href = "http://www.google.com"
});

1 Comments

Jonas Treub

Never tried it myself but this info might help: https://developers.google.com/youtube/iframe_api_reference

Read the entire post on Facebook