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



One way to do this is with extended attributes for the href value. For example:

<script language="JavaScript" type="text/javascript">
QT_WriteOBJECT_XHTML('http://homepage.mac.com/istu/Sites/bclc/BBCNewsSchoolReport_poster.mov' , '480', '396', '',
'href', '<rtsp://82.198.227.205:80/BBC/BBCNewsSchoolReport.mp4> T<myself> E<autoplay=true> E<controller=true>',
'autoplay', 'true',
'bgcolor', 'white',
'align', 'middle',
'controller', 'false');
</script>


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

On Mar 13, 2008, at 2:44 PM, Stuart Ramdeen wrote:

Hi,

After eventually getting my head around the Javascript method of embedding a QuickTime movie, I have come up against a brick wall, which I can't seem to get over.

I have a page at https://secure.houseschools.com/stu/test.html that is supposed to load a poster movie and, when clicked, open a connection to an on demand stream over rtsp.
It works in FireFox on PC and Mac, Internet Explorer on PC, but I can't get it to work in Safari on the Mac.
Well, it works if you click on the play button, but I specifically have the 'autoplay' set to 'true'. Here's the entire html page:


<HEAD>
<TITLE>test
</title>
<script src="AC_QuickTime.js" language="JavaScript" type="text/ javascript"></script>


</HEAD>

<BODY>


<script language="JavaScript" type="text/javascript">
QT_WriteOBJECT_XHTML('http://homepage.mac.com/istu/Sites/bclc/BBCNewsSchoolReport_poster.mov' , '480', '360', '',
'href', 'rtsp://82.198.227.205:80/BBC/BBCNewsSchoolReport.mp4',
'autoplay', 'true',
'bgcolor', 'white',
'align', 'middle',
'controller', 'true');
</script>





</BODY> </HTML>


Can someone please point me in the right direction before I pull my hair out.


Many thanks,

Stu
_______________________________________________
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

_______________________________________________ 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>)



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.