Switch element

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 UTC