properly embedding an sdp file

So I read a bit on Apple's site about how to embed an sdp stream into html. I opened the stream in quicktime, saved it as a self contained movie, then copied that .mov file to my webserver. It works great if I connect from the webserver ie localhost/mystream.html. However, if I connect to 10.0.1.122/mystream.html it says shows a quicktime logo with a question mark in the middle of it. Any ideas?
I am embeding the file with the following code:
<script language="JavaScript" type="text/javascript">
QT_WriteOBJECT("mystream.mov", "640", "480", '');
</script>
Thanks
Alex

macbook pro, Mac OS X (10.5.4)

Posted on Oct 12, 2008 7:51 AM

Reply
1 reply

Oct 30, 2008 1:07 PM in response to jher

Here's what you need. First though, you need a QuickTime Streaming Server or Darwin running. Also a web server of course. You need a properly formatted and hinted QuickTime streaming file and a JPG frame grab or something to use as a QuickTime Poster (the link you will click to start the movie).
Also, in the code we embed twice, once for Macs and once for Windows.

Here's a link to a working example:
http://edchannel.tv/z/tbed.html

Here's the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
</head>

<body bgcolor="white">
</body>

<OBJECT
CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
WIDTH="320"
HEIGHT="256"
CODEBASE=" http://www.apple.com/qtactivex/qtplugin.cab ">
<PARAM name="SRC" VALUE = "URL of your jpg image" >
<PARAM name="QTSRC" VALUE = "URL of your jpg image" >
<PARAM name="HREF" VALUE = "RTSP URL of your movie" >
<PARAM name="AUTOPLAY" VALUE = "true" >
<PARAM name="CONTROLLER" VALUE = "false" >
<PARAM name="TYPE" VALUE = "video/quicktime" >
<PARAM name="TARGET" VALUE = "myself" >
<EMBED
SRC = "URL of the JPG image"
QTSRC = "URL of the JPG image"
HREF = "RTSP URL of the movie"
TARGET = "myself"
CONTROLLER = "false"
WIDTH = "320"
HEIGHT = "256"
LOOP = "false"
AUTOPLAY = "true"
PLUGIN = "quicktimeplugin"
TYPE = "video/quicktime"
CACHE = "false"
PLUGINSPAGE= " http://www.apple.com/quicktime/download/ " >
</EMBED>
</OBJECT>

</html>

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

properly embedding an sdp file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.