cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerm <je...@media.demon.co.uk>
Subject SMIL & SVG
Date Fri, 25 Feb 2000 16:29:12 GMT
Dear All,

I have been playing with SMIL (Synchronized Multimedia Integration Language).

    <http://www.w3.org/TR/REC-smil/>

Apple have recently released QuickTime 4.1 for MacOS and WinOSes that has
support for SMIL plus some extensions of their own.

    <http://www.apple.com/quicktime/>

SMIL works in both the MoviePlayer application and the browser plug-in.

I have not tried outputting SMIL from Cocoon yet but will do soon.
I am not sure of the correct mime-type, BTW.

Here is a sample, just so you can see what it looks like:

<smil 
    xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions"
    qt:autoplay="true">
    <head>
        <layout>
            <root-layout id="rl" width="600" height="250"
background-color="green"/>
            <region id="textMovie" left="0" top="50" width="600" height="25"/>
            <region id="textArea" left="50" top="0" width="600" height="150"/>
            <region id="audio" left="50" top="150" width="120" height="16"/>
            <region id="backImage" width="100%" height="100%" fit="hidden"/>
            
        </layout>
    </head>
    <body>
        <par>
            <img 
                src="babbage's_brain.jpg"
                region="backImage" 
                dur="01:00:00"/>
            <text 
                src="hello.txt"
                region="textArea"
                qt:composite-mode="transparent-color;black"
                />
            <video 
                src="shannon2.mov"
                region="audio"
                />
            <video 
                id="textMov"
                src="intro.mov" 
                region="textMovie"
                qt:composite-mode="blend;50%"
                />
        </par>
    </body>
</smil>

This loads several assets; an image, a text file, an audio movie and a text
movie, then builds a composite movie on the fly. <par> plays it's children in
parallel, <seq> defines a sequence.

The only method I have found so far of applying styling to text is to use
QuickTime Text Track markup, which appears to be converted into a movie on the
fly:

    {QTtext} {width:300} {height:200}{font:Geneva} {bold} {size:28}
    {anti-alias:on} {keyedText:on} {justify:right}
    [00:00:00.00]
    One upon a time in a cubicle not so far away,
    [00:00:06.09]
    A tired but dedicated engineer
    [00:00:20.19]
    Worked on through the night...




SMIL handles both Streamed and Static media.

Smil has a <switch> structure allowing on the fly choice of media elements based
on a range of tests including: screen-depth, system-bitrate, system-language
etc.

There is some interactivity built into SMIL, it has Anchors, can have hotspot
areas, which can be time-sensitive; you can load new presentations, including
being able to address fragments, you can target browser frames with urls, I
don't think you can target regions interactivly. QuickTime has it's own schemes
for adding interctivity, some APIs are more exposed than others.


Adobe have released a set of SVG (Scalable Vector Graphics) Plugins, one for
Illustrator 8.0.1 (Export and Place) and one for NetScape 4.7 (only).

    <http://beta1.adobe.com/svgpreview_alpha/SVG/tutorial/intro.html>
    
This stuff appears to work. SVG appears to be heading towards a dynamic model,
though is not there yet.



regards Jeremy

   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <mailto:sharkbait@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].207.737.6831>        <pager:jermq@sms.genie.co.uk>



Mime
View raw message