YouTube Class

Summary

Embeds a YouTube video.
Assembly
Wyam.Core.dll
Namespace
Wyam.Core.Shortcodes.Html
Interfaces
Base Types
graph BT Type-->Base0["Embed"] click Base0 "/api/Wyam.Core.Shortcodes.Html/Embed" Base0-->Base1["Object"] Type-.->Interface0["IShortcode"] click Interface0 "/api/Wyam.Common.Shortcodes/IShortcode" Type["YouTube"] class Type type-node

Syntax

public class YouTube : Embed, IShortcode

Examples

<?# YouTube u5ayTqlLWQQ /?>

Remarks

You only need the ID of the video which can be obtained from it's URL after the ?v=:
https://www.youtube.com/watch?v=u5ayTqlLWQQ

Methods

GitHub