开发者

How do I embed a quicktime movie into an iphone web app using dashcode?

开发者 https://www.devze.com 2022-12-20 07:42 出处:网络
I have a functional webapp that I have created through dashcode, but I want to add a video by clicking a button. Any idea on how to code a handler to do that or any sample code? thanks

I have a functional webapp that I have created through dashcode, but I want to add a video by clicking a button. Any idea on how to code a handler to do that or any sample code? thanks

here is what I have but it wont do anything in the simulator

function myClickHandlerVideo(event)
{
    var vidElem=document.createElement("video");
    vidE开发者_运维技巧lem.setAttribute("src", "OrangeReel_v001.mov");
    vidElem.play();

}


It's actually very simple:

function myClickHandlerReel(event) 
{
    var websiteURL = "myMovie.m4v";
    location = websiteURL
}
0

精彩评论

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

关注公众号