I hope I am understanding you correctly. 

Unless there's another embedded URL format which I am unaware of, the use-case of http://embed.ted.com/how-to-embed-ted-videos is already what is handled correctly by this code. E.g. http://embed.ted.com/talks/edward_snowden_here_s_how_we_take_back_the_internet.html works fine and to my knowledge there is never any http://www.embed.ted.com urls or other format used, as the embed HTML is provided by TED and is always http://embed.ted.com/.