Tip:
Highlight text to annotate it
X
QuickTime Streaming Server can do a lot of different things, and in previous
movies we've talked about streaming a live broadcast.
But this time I would like to talk to you about streaming a file that is located
on the hard drive of the server. So to do that all we have to do is open up
QuickTime Player. We already have the whole thing set up on the server side; we
have done that in a previous movie. If we open our URL, we are typing rtsp in
order to get to the real-time streaming protocol.
We are tying the server's fully qualified domain name here to get to the server,
and then this is the name of a movie that's located in the directory that we
specified in the QuickTime Streaming Server service in Server Admin.
So all of this together, when we click Open we will go here.
(Music playing.) It just opens up the file that's located on
the server. The server is streaming it right out for us and we can scrub
through it because it's a file that actually exists out there and hit Play
from any point within the file, and that's great.
So we got to this by typing a full URL by going to Open URL, which
unfortunately is something that your clients are likely to not do.
So what I think would be better for us to do would be to show you how you go
about getting this particular movie from your streaming server to be
referenced from a web page so that people can go to a web page and simply get
your content that way. So let's talk about that.
First thing you need to know is you can't do it within QuickTime Player 10.
We need to use QuickTime Player 7, which is located in the Utilities folder.
If you chose to do the additional QuickTime Player 7 installation when
you installed Snow Leopard, it's entirely possible that you won't have this application.
If not, it is available as part of the installer that came with Snow Leopard.
So we're going to open QuickTime Player 7, and we will do exactly what we just did before.
We are going to open the URL. We will type rtsp to go to the real- time
streaming server protocol, the fully qualified domain name of our server, slash,
the name of the movie we are trying to get to that's in that shared movies directory.
We click OK. (Music playing.)
Completely different player, but it opens right up.
So the next step is the reason why we need this.
We go from File to Save As, an option that's not available in QuickTime 10.
Go to Save As and when the sheet pops down, we save it as a
self-contained movie. Now I am going to name this mystream, and
it'll automatically populate the .mov for me.
So I am going to save it as a self- contained movie right on my Desktop and you
can see it pops right up here. Okay. Now if I play this, this is mystream.mov.
It still goes straight out and gets that stream. So we have our content right here. If you're
setting up a web page, and I am not going to teach you HTML here
or anything, but I will tell you that if you have your Exercise Files, the QTSS
folder has something called QTSS Embed code.txt. We are going to open this now.
As soon as you open the QTSS Embed code document, you will be looking at code
that will be lifted out of here and pasted directly into the HTML document you are writing.
The HTML document will then properly reference the QuickTime Movie.
So you need to modify just a few things and we're going to talk about those things now.
First of all, you have the name of your movie in a couple of different places.
First over here in VALUE, and second over here in EMBED SRC.
This has to be the exact name of the movie that you created whenever you saved
out your movie in QuickTime Pro. And this movie, based on the way things are
set right here, this assumes that the movie is in the same directory on the
server as the HTML file that is enclosing this embed code.
So for example, if you have an index. html file into which you have placed this
QTSS Embed code, that index.html file would have to be in the same directory on
the server as the mystream.mov reference movie. If you have decided to put your movie into
a different directory, you simply have to be sure that these values, both here
and here, direct you to the correct location on your web server to access that
movie. The other things that I would like to point
out here are the WIDTH and HEIGHT that are available here and here.
So you can say exactly what the dimensions of your video are, and then over here
where it says AUTOPLAY="true". Yyou can change this to false if you don't want
the video to automatically start playing whenever someone accesses it.
So that's your embed code. If you have got these things together with
your streaming reference movie and streaming is turned on, everything else is
just getting the HTML to work and you should be able to embed reference movies
to access your streaming videos.