Arnoud, thanks for a very nice YouTube embed solution.
I studied it a bit and was a little confused about the title in the linked document. It said "youtube videos into Cloud CDF". I think its embedding HTML Iframe tag and not Cloud CDF.
You also used xPrint[iframe] at the end of your package code. Could you elaborate a bit on why it is used and where it is defined.