Can a youtube video be embedded in html via publish?

2 visualizaciones (últimos 30 días)
Chad Greene
Chad Greene el 23 de Sept. de 2014
Comentada: Chad Greene el 30 de Sept. de 2014
I'd like to publish an example file with a youtube video in it. I don't see a clear way to do this, and I've tinkered around a bit to no avail. Any clever ideas out there?

Respuesta aceptada

Alberto
Alberto el 24 de Sept. de 2014
Here is a how-to example; try publishing this code:
%%HTML + Youtube
% <html>
% <iframe id="ytplayer" type="text/html" width="640" height="390"
% src="http://www.youtube.com/embed/M7lc1UVf-VE?autoplay=0"
% frameborder="0"/>
% </html>
  2 comentarios
Chad Greene
Chad Greene el 24 de Sept. de 2014
Alberto, that's perfect! Thank you!
Chad Greene
Chad Greene el 30 de Sept. de 2014
Your ideas can be seen in action here. Thanks again Alberto.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by