Finish youtube video soaked in as3

Asked

Viewed 76 times

0

I’m using a Youtube video embedded in a flash. When the video ends, it gets the default youtube screen of end of video, and suggests videos to the user.

There is a way to set the video to pause in its final frame or go to another frame as soon as the video finishes?

1 answer

1


If what you want is not to display the related videos at the end of the video, just add the parameter rel=0 at the end of the url.

For example:

<iframe width="560" height="315" src="https://www.youtube.com/embed/89Oc1UE7SS4?rel=0" frameborder="0" allowfullscreen></iframe>

More information: https://developers.google.com/youtube/player_parameters?hl=pt-br

rel compatible players: HTML5, AS3 / 0 or 1. Default value is 1. This parameter indicates whether the player should display videos related when initial video playback ends.

  • Opa worked well, thank you. I read this documentation and I seem to skipped the part about the rel.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.