Can a youtube video be embedded in html via publish?

조회 수: 3 (최근 30일)
Chad Greene
Chad Greene 2014년 9월 23일
댓글: Chad Greene 2014년 9월 30일
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일
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개)

카테고리

Help CenterFile Exchange에서 Web Services에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by