Inside Macintosh: QuickTime Reference
| Previous | Chapter Contents | Chapter Top | Next |
The following are additional notes on the handling of HTML source:
If QuickTime's HTML importer fails to find playable media within an <a> element or an <embed> element, it will import media from the first <img> element that it finds in the HTML source.
Once the HTML importer finds a reference to media that QuickTime can play, it ignores all of the rest of the HTML source.
If the HTML importer can't find any media to play within an <a>, <embed>, or <img> element, it will return an error.
The HTML importer ignores all HTML source that falls between <script> and </script> elements.
Relative URLs are supported for both the "src" and "href" attributes. They are interpreted as relative to the URL of the HTML source.
Normally, a media author will signal QuickTime to import an HTML document by providing a SMIL document that refers to it and overrides its MIME type, as in the following SMIL example:
<smil>In the SMIL example above, the HTML document "insertion.html" is explicitly given the MIME type "text/x-html-insertion". This signals QuickTime to use its HTML importer to scan the html source for a playable media element. If one is found, QuickTime will play it and then play "maincontent.mov".
Inside Macintosh: QuickTime Reference
| Previous | Chapter Contents | Chapter Top | Next |