When using the Ektron Youtube Widget it by default displays the suggested videos Youtube provides at the end of the playback. Some customers do not want to see these videos as they may not be appropriate with the content they are interested in showcasing.
The widget itself does not have that option by default. What is needed is a code change. If you
edit the widget code as documented below you will be able to disable the suggested videos.
The change made is in the widgets/YouTubeVideo.ascx.cs file.
Find the code below and see the addition of the &rel=0 to the end of the MovieSourceURL string.
public string MovieSourceURL
{
get
{
return string.Format("http://www.youtube.com/v/{0}?f=videos&app=youtube_gdata&autoplay=0&rel=0", VideoID);
}
}
Then save the file.
Go to the workarea and Synchronize the widgets folder under Settings>Configuration>Personalizations>Widgets
Please remember that this a customization to the widget. As always make a backup of the code and remember that this will require special care during upgrades.
Please sign in to leave a comment.