W3C home > Mailing lists > Public > www-smil@w3.org > April to June 1999

Switch element

From: Leandro Marques Rodrigues <leandro@telemidia.puc-rio.br>
Date: Fri, 14 May 1999 11:29:52 -0300
Message-ID: <373C3360.D042545B@telemidia.puc-rio.br>
To: www-smil <www-smil@w3.org>
Hello,

I have a question about the switch element. According to the SMIL
specification, a switch element can be a child of another switch
element, but it doesn't have test attributes. So, how will the external
switch choose which child to play if the children are also switch
elements? For example, I'd like to write something like:

<switch id="switch1">
    <switch id="switch2" system-language="en">
        <video id="videoA" src="video_hi_en.mpv" system-bitrate="56000"
/>
        <video id="videoB" src="video_lo_en.mpv" system-bitrate="33600"
/>
    </switch>
    <switch id="switch3" system-language="fr">
        <video id="videoC" src="video_hi_fr.mpv" system-bitrate="56000"
/>
        <video id="videoD" src="video_lo_fr.mpv" system-bitrate="33600"
/>
    </switch>
</switch>

In this case, the internal switch elements should have test attributes.

It could be also specified in this way:

<switch id="switch1">
    <video id="videoA" src="video_hi_en" system-language= "en"
system-bitrate="56000" />
    <video id="videoB" src="video_lo_en" system-language= "en"
system-bitrate="33600" />
    <video id="videoC" src="video_hi_fr" system-language="fr"
system-bitrate="56000" />
    <video id="videoD" src="video_lo_fr" system-language="fr"
system-bitrate="33600" />
</switch>

In this case, I'm not using test attributes in switch elements, but they
also don't have other switch elements as children. I mean, if I want to
have switch elements as children of another switch element, I should
allow them to have test attributes. What do you think?

Regards,

Leandro Marques Rodrigues
HyperProp Project
PUC-Rio, Brazil
Received on Friday, 14 May 1999 10:26:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:53:25 GMT