Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: javascript embed issues in Safari



Stuart:

Well, another approach to this might be via Javascript (see below for a simple example). This way you could use a standard <a href> tag to link to and dynamically load your movie.

Note that the example below needs to have an image named "watchnow.png" and a file named "watchnow.mov"

-George

<html lang="en">
<head>
<title>AutoPlay Test</title>
<script language="javascript">
function makemovie(divName,url) {
// embed the movie in the movie div
document.getElementById(divName).innerHTML="<embed src='watchnow.mov' width='480' height='396' qtsrc='" + url + "'>";
}
</script>
</head>
<body>
<script src="./AC_QuickTime.js" language="JavaScript" type="text/ javascript"></script>
<div id="movie1">
<a href="#" onclick="makemovie('movie1','rtsp://82.198.227.205:80/BBC/BBCNewsSchoolReport.mp4') ;"><img src="watchnow.png"></a>
</div>
</body>
</html>


On Mar 14, 2008, at 5:10 AM, Stuart Ramdeen wrote:

Great!

That was going to be my next area of research - how to remove teh controller from the poster mov, but include it in the actual movie.

Is http://developer.apple.com/documentation/QuickTime/WhatsNewQT5/QT5NewChapt1/chapter_1_section_32.html the best place to learn how to use the extended attributes? I get the warning that the document is a legacy one and is not to be used for future development.

Many thanks

Stu



On 14 Mar 2008, at 01:58, George Cook wrote:


This example removed the controller from the poster movie, but adds it to the movie when it is clicked. It also autoplays the movie (including in Safari).

-George




_______________________________________________ Do not post admin requests to the list. They will be ignored. Streaming-server-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/streaming-server-users/email@hidden

This email sent to email@hidden
References: 
 >javascript embed issues in Safari (From: Stuart Ramdeen <email@hidden>)
 >Re: javascript embed issues in Safari (From: George Cook <email@hidden>)
 >Re: javascript embed issues in Safari (From: Stuart Ramdeen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.