PDA

View Full Version : HTML code for Darwin streaming



knsm-eiland
07-13-2008, 09:38 AM
I've been wrestling with it this whole sunday (not an easy quitter). I just copied the HTML code from
http://helpdocs.westserver.net/v3/sitemanager/index.htm#Darwin_Stream_Server.htm

<html>
<head>
<title>Streaming Test</title>
</head>
<body>
Streaming Example<br />
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="256"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="sampleref.mov">
<param name="autoplay" value="true">
<embed src="sampleref.mov" width="320" height="256"
pluginspage="http://www.apple.com/quicktime/" autoplay="true" />
</object>
</body>
</html>

And then I have to create the reference file:

$ cat >/var/www/html/sampleref.mov <<EOI
RTSPtextRTSP://example.com/sample.mov
EOI

and there it gets confusing. The instructions say "Create a reference file, which is used in the "param" and "embed" links above"
Does that mean that I should change the file names in both tags?? Or should both tags have the name of the actual movie???

and its also says that:
"You can name it anything you want, and it does not need to have the same name as the movie being streamed. This is a regular text file" Does that mean that the reference file name should be the same as in both html tags??
And if it is just a "regular text file" why should it have the suffix .mov??
A "regular text file" would need the suffix .txt right?

(The movie itself btw is in the right directory, i tested that with a direct link and i could play it from QT. But I want users to have it streamed in their browser)

Any help would be greatly appreciated,

R.

wildjokerdesign
07-13-2008, 06:58 PM
If you have "Media Directory" set to the default (think it used to be /usr/movies) that WH sets then you would not have been able to access the movie directly. :) What do you have that set to?

A text file does not have to have a .txt extension. There are hundreds of text files in your account. :) Even your logs are text files yet they have no extension at all. Perhaps a better phraseing would have been for them to say "plain text file". Plain text files are created using a "plain text editor". There are links to two such editors in my signature or you can use notepad if you have windows. NOTE I said notepad not wordpad.

sampleref.mov is the text file. sample.mov is the actual movie file. If you simply copied the example and changed example.com to your domain then you should have gotten a streaming movie. The WH install used to come with the sample.mov file.

wildjokerdesign
07-13-2008, 07:17 PM
I just a quick install of Darwin on one of my accounts and it looks like now the default install directory is /usr/local/darwin-streaming-server-5.5.4/movies There is now about 9 sample files in that directory you can use for testing purposes. One such file is sample_300kbit.mov which may be the replacement for the old sample.mov file.

knsm-eiland
07-14-2008, 02:36 AM
THX 4 your help :). In the meantime I also got some answers from Westhost (I wish my own ISP was that quick!). The even made some sample HTML code and a sample ref file for me!
You are right about the media directory. But the reference file looks a little bit different then the one on the help page.
Here it is:

RTSPtextRTSP://my domain.com:8554/sample_300kbit.mov

Hopefully might help others in the future too.


knsm-eiland

wildjokerdesign
07-14-2008, 05:54 AM
Glad they got it working for you. It looks like they need to do some updateing in the manual for this subject. :) I noticed several references where off. In fact there is a new link for further information on DSS. http://dss.macosforge.org/