/// <summary> /// Builds the HTML embed iframe for the specified video. /// </summary> /// <param name="videoId">The YouTube ID of the video.</param> /// <param name="width">The desired width of the iframe.</param> /// <param name="height">The desired height of the iframe.</param> /// <param name="showRelations">By the default, YouTube will show /// related videos at the end of videos. Setting this to /// <var>FALSE</var> will disable the feature.</param> /// <param name="wmode">The flash video player doesn't really /// play well with layers (mostly in IE). Setting this /// parameter to <var>transarent</var> will solve most /// of these issues.</param> public static string YouTubeEmbed(this string videoId, int width, int height, bool showRelations, string wmode) { return(YouTubeHelpers.GetEmbedHtml(videoId, width, height, showRelations, wmode)); }
/// <summary> /// Builds the HTML embed iframe for the specified video. /// </summary> /// <param name="videoId">The YouTube ID of the video.</param> /// <param name="width">The desired width of the iframe.</param> /// <param name="height">The desired height of the iframe.</param> public static string YouTubeEmbed(this string videoId, int width, int height) { return(YouTubeHelpers.GetEmbedHtml(videoId, width, height)); }