Can a youtube video be embedded in html via publish?

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?

 採用された回答

Alberto
Alberto 2014 年 9 月 24 日

2 投票

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 件のコメント

Chad Greene
Chad Greene 2014 年 9 月 24 日
Alberto, that's perfect! Thank you!
Chad Greene
Chad Greene 2014 年 9 月 30 日
Your ideas can be seen in action here. Thanks again Alberto.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Report Generator についてさらに検索

質問済み:

2014 年 9 月 23 日

コメント済み:

2014 年 9 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by