Testing YouTube URL Embedding
Regular https://www.youtube.com/watch?v=gocwRvLhDf8
Shortened https://youtu.be/gocwRvLhDf8
Timestamped (Shortened) https://youtu.be/gocwRvLhDf8?t=22
Timestamped (&t=##) https://www.youtube.com/watch?v=gocwRvLhDf8&t=22
Timestamped (&t=#m##s) https://www.youtube.com/watch?v=gocwRvLhDf8&t=0m22s
Timestamped (&start=##) https://www.youtube.com/watch?v=gocwRvLhDf8&start=22
/Embed https://www.youtube.com/embed/gocwRvLhDf8
https://www.youtube.com/embed/gocwRvLhDf8
Embedded HTML <iframe width="854" height="480" src="https://www.youtube.com/embed/gocwRvLhDf8" frameborder="0" allowfullscreen></iframe>
Mobile https://m.youtube.com/watch?v=gocwRvLhDf8
Flash Player https://www.youtube.com/v/gocwRvLhDf8
https://www.youtube.com/v/gocwRvLhDf8
YouTube TV https://www.youtube.com/tv#/watch/video/idle?v=gocwRvLhDf8
https://www.youtube.com/tv#/watch/video/idle?v=gocwRvLhDf8
Unencrypted HTTP http://www.youtube.com/watch?v=gocwRvLhDf8
Extra parameter after ID https://www.youtube.com/watch?v=gocwRvLhDf8&foo=bar
Extra parameter before ID https://www.youtube.com/watch?foo=bar&v=gocwRvLhDf8
Duplicate video ID https://www.youtube.com/watch?v=gocwRvLhDf8&v=dQw4w9WgXcQ
Duplicate video ID (Shortened) https://youtu.be/gocwRvLhDf8?v=dQw4w9WgXcQ
Duplicate start time https://www.youtube.com/watch?v=gocwRvLhDf8&t=22&start=33
Duplicate start time 2 https://www.youtube.com/watch?v=gocwRvLhDf8&start=22&t=33
Invalid ID https://www.youtube.com/watch?v=foobar
Invalid ID 2 https://www.youtube.com/watch?v=+++
Invalid ID (Shortened) https://youtu.be/foobar
https://youtu.be/foobar
Testing YouTube URL placement
End of paragraph: Lorem ipsum dolor sit amet https://www.youtube.com/watch?v=gocwRvLhDf8
Lorem ipsum dolor sit amet
Middle of paragraph: Lorem ipsum dolor sit amet https://www.youtube.com/watch?v=gocwRvLhDf8 consectetur adipiscing elit
Lorem ipsum dolor sit amet
consectetur adipiscing elitIn block quote: > https://www.youtube.com/watch?v=gocwRvLhDf8
In bulleted list: * https://www.youtube.com/watch?v=gocwRvLhDf8
Inside <kbd> tags: <kbd>foo https://www.youtube.com/watch?v=gocwRvLhDf8 bar</kbd>
foo
bar(Note: Looks like this produces invalid HTML; rendering may vary between browsers.)
Testing link syntax variations
[link](URL): [foo](https://www.youtube.com/watch?v=gocwRvLhDf8)
[URL](URL): [https://www.youtube.com/watch?v=gocwRvLhDf8](https://www.youtube.com/watch?v=gocwRvLhDf8)
[URL](alt.URL): [https://www.youtube.com/watch?v=gocwRvLhDf8](https://www.youtube.com/watch?v=gocwRvLhDf8&t=22)
https://www.youtube.com/watch?v=gocwRvLhDf8
[URL](URL "title"): [https://www.youtube.com/watch?v=gocwRvLhDf8](https://www.youtube.com/watch?v=gocwRvLhDf8 "Link title")
https://www.youtube.com/watch?v=gocwRvLhDf8
Numbered URL:
[https://www.youtube.com/watch?v=gocwRvLhDf8][1]
[1]: https://www.youtube.com/watch?v=gocwRvLhDf8
Numbered URL with title:
[https://www.youtube.com/watch?v=gocwRvLhDf8][2]
[2]: https://www.youtube.com/watch?v=gocwRvLhDf8 "Link title"