Miscellaneous‎ > ‎Helpful Hints‎ > ‎

How to get YouTube and SoundCloud standalone players with just a single URL

posted Jul 30, 2014, 11:18 PM by James Wu   [ updated Jul 30, 2014, 11:20 PM ]
I find it fascinating how this simple piece of information is relatively hidden on the web.

▪ The standard YouTube video url looks like this:  https://www.youtube.com/watch?v=BrD4SAIJrg8

▪ Now here's the short url:  youtu.be/BrD4SAIJrg8

▪ And the standalone player:  https://www.youtube.com/v/BrD4SAIJrg8  Now you can put this into any iframe and the video will stretch to fit it.

▪ Let's add start and end times:  https://www.youtube.com/v/BrD4SAIJrg8?start=956&end=1272&version=3   Start and end times are in seconds.

So then I thought, maybe I can do the same thing with SoundCloud. I was right, but I had to get the ID of the track I wanted by clicking Share -> Embed and dissecting the generated embed code.