Sozi is an inkscape extension that allows Prezi-like panning/zooming of an svg file when viewed in an svg-enabled web browser. A youtube video can be embedded in a Prezi, and I'd like to be able to embed a youtube video (or any kind of video) in an svg. I know that html links can be made in svg documents (and inkscape supports this directly). Is there a way to embed a video (via an iframe or video tag?) into an svg?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
<foreignObject width="560" height="349">
<iframe xmlns="http://www.w3.org/1999/xhtml"
width="560" height="349"
src="http://www.youtube.com/embed/YOUR-MOVIE-ID"
frameborder="0"></iframe>
</foreignObject>
That should do the trick. Be careful, that the xmlns
attribute stays on the iframe element. foreignObject
is explained here.