开发者

What language/script can I use to embed a .M4V file into a webpage?

I'm trying to embed a .M4V video file on a web page and it seems to disagree with all my attempts. I need it in this format as it is for someon开发者_如何转开发e else's ongoing project.

I am trying to use this java library file to initialize/talk with:

<script type="text/javascript" src="qtobject.js"></script>

Here is my code attempt (not working, but works when the format is .mov and the script is changed accordingly):

<script type="text/javascript">
var myQTObject = new QTObject("video.m4v", "video_1", "640", "480");
myQTObject.write();
</script>

Here is another attempt (also not working):

<embed href="steve.m4v" type="video/x-m4v" />

Any suggestions as to what I should and/or should not be doing?


If you're not forced to use Quicktime, the Flash based Long Tail Video Player is free and can do Quicktime encoded MP4 if the client has Flash 10 installed.


Not a reliable solution you can use now, but when the browsers grow up, the video element can be used from within javascript. Imagine doing video resizing using just css.

http://daringfireball.net/2009/12/html5_video_unusable#fnr1-2009-12-21

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜