Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

QTL syntax

QuickTimeKirk supplied this syntax for qtls:

<?xml version="1.0"?>
<?quicktime type="application/x-quicktime-media-link"?>

<embed
autoplay="true"
controller="false"
fullscreen="full"
href="http://homepage.mac.com/kkirkster/book"
src="http://homepage.mac.com/kkirkster/Lemon Trees/LemonTree.mov"
/>

For a HTML novice could someone explain the relevance of the following lines:

href="http://homepage.mac.com/kkirkster/book"

and:

<?xml version="1.0"?>
<?quicktime type="application/x-quicktime-media-link"?>

Thanks

iMac 20", Mac OS X (10.4.8)

Posted on Jun 6, 2008 12:30 PM

Reply
7 replies

Jun 6, 2008 2:42 PM in response to Mike Watkinson

It's neither.
It is a URL. In URL syntax "book" is a folder found in my iDisk Sites folder. Inside the book folder is an "index.html" file (no quotes). A page named index.html does not have to be included in a URL as it is read by default.
The .qtl file (in this XML format) points to the "src" (source) QuickTime .mov file. That file can be anywhere on the Web and the .qtl file doesn't have to be in the same location as long as you use the complete URL to the .mov file.

Jun 7, 2008 12:13 AM in response to QuickTimeKirk

So is this URL to a page that opens when you click the QTL link? This does not seem to happen, but then the movie won't open either - see below

So far I have created a link that points to a QTL file. What happens when you click it is that Quicktime opens and complains that the file is not a movie file - it seems to be trying to open the qtl rather than being directed to the movie file, which the qtl file is referencing

Jun 7, 2008 4:51 AM in response to Mike Watkinson

Let's back up a bit so you understand the steps.
Create a QuickTime .mov file and upload it to a server.
Create the .xml file in any plain text editor. Change the URL in the "src" tag (no quotes) to point the file you uploaded. Use a "complete" address (starts with http and ends in .mov).
Edit the other tag code if needed to add other features. Add a "href" URL if you want to open a Web page with a click on your .mov file.
Save the text document and append the .qtl file extension. Upload this file to your server.
You can add this "text based" link directly in your Web page code and a page visitor will be able to click on it to download the .qtl file.
When the .qtl file (very tiny in file size) is downloaded it will launch the QuickTime Player app and it will begin to download the "src" file. The other features such as full screen will be "forced" on your QuickTime .mov file so be sure to size it appropriately for that display size. You don't want a 320X240 size pushed up to full screen.
A "href" link in the .xml file can be used to open a Web page when a viewer clicks anywhere on the QuickTime display window (even in full screen mode).

http://homepage.mac.com/kkirkster/LemonTrees/LemonTree.qtl

Test my file to see how things fall together. You can open the downloaded .qtl file in plain text editor to see the exact same code used in my example above.

Jun 7, 2008 11:56 AM in response to QuickTimeKirk

Many thanks for your patience - your explanation is very clear. The issue I had was caused by the fact that your example has homepage.mac.com where my files reside at web.mac.com. What could be called a schoolboy error. Now I have changed the src it works fine. The href part I presume only applies if there is a picture or movie associated with he file - most of the .movs I shall uplaod are audio only. I guess I could add graphics if I wanted to access this feature?

On another note, as I am using iWeb, do I need to upload .mov and .qtl files at all? iWeb seems to upload them to a folder it creates automatically with the name of the page they are 'on', so I have ended up with duplicates of everything. I presume that means I can simply point to them locally and iWeb will upload them for me?

Jun 7, 2008 6:37 PM in response to Mike Watkinson

You have an iDisk and it becomes your file server. You need only learn how to use it.
iDisk has more than a few ways of getting your data into Web pages or directly to your visitors.
In my example you'll notice two "hand made" Web pages (my book page and the Lemon_Trees page) and the text based .qtl file is a combination of both.
To share these files requires they be uploaded to a Web server. Your .Mac account and iDisk are just that. You can upload to iDisk by using the Finder and drag and drop (no need for iWeb).
If you look at the folder structure of your iDisk you'll quickly figure out the URL syntax for linking files. It goes something like this:
Place a file into the Sites folder of your iDisk and the URL syntax works this way:
http://homepage.mac.com/username/foldername/filename.fileextension (note that the Sites folder is not part of the URL as it is read by default).
Place a file into the iWeb/Sites folder and it uses a different URL:
http://web.mac.com/username/iWeb/foldername/filename.fileextension
This is a different URL syntax because of the way Apple servers direct visitors to your pages but it's the same iDisk. Again, the Sites folder name is not used in the URL as it is read by "default".
Place a file in your "Public" folder and the URL syntax changes just a bit more:
http://idisk.mac.com/username-Public or a frequently unused syntax of
http://homepage.mac.com/username/.Public/foldername/filename.fileextension
The same syntax can be used for some of your other iDisk root folders (Music, Movies and Pictures).
Sounds complicated but it's really very simple once your know the URL syntax.

QTL syntax

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