Re: Fw: [Moderator Action] Smil question

Hi Lan Qiang,
It took a little time to figure this one out, 
because RealONE's not supporting excl correctly.


This works in a GRiNS SMIL 2 player, build 37. I removed the 
dur="indefinite" from your excl and made sure the buttons images
end so that the par container would end, then the next element in
the sequence would play.


smil xmlns="http://www.w3.org/2000/SMIL20/CR/Language"

head
layout
root-layout width="320" height="240"/
region id="button1_region" left="5%" top="10%"/
region id="button2_region" left="5%" top="30%"/
/layout
/head
   
body
seq
par

img src="button1.jpg" end="button1.activateEvent;button2.activateEvent" 
alt="button1" id="button1" region="button1_region"/
     
img src="button2.jpg" end="button1.activateEvent;button2.activateEvent"
alt="button2" id="button2" region="button2_region"/
       
excl 
video src="mov1.jpg" begin="button1.activateEvent" end="5s"/
video src="mov2.jpg" begin="button2.activateEvent" end="5s"/
/excl
/par
      
video src="mov3.jpg" end="20s"/
/seq
/body
/smil

Here's a link to the code, remember its for GRiNS beta build 37
and the SMIL xmlns is "http://www.w3.org/2000/SMIL20/CR/Language":

http://www.geocities.com/ramirez_j2001/temp/excl/excl_grins.smil


What I like to do when I think a bit of code is suppose to behave a
certain way and it doesn't, is try it on another SMIL 2 player.
SMIL 2 pretty new and usually I have to rewrite the code differently so
it works. In your case here's a work around for that code in RealONE:

http://www.geocities.com/ramirez_j2001/temp/excl/workaround_realone.smil

And if you don't have GRiNS 2 then you can use IE 6 and try your code 
in HTML+SMIL, see if it's you or the player. Here is your code in
HTML+SMIL:

http://www.geocities.com/ramirez_j2001/temp/excl/excl_htmlplussmil.html


Good Luck and Happy New Year to All,
and may 2002 be the year everyone learns to SMIL.

Jose Ramirez


thierry michel wrote:
> 
> forwarded to the www-smil@w3.org mailing list
> ----- Original Message -----
> From: "Lan Qiang" <LQiang@KBSI.com>
> To: <www-smil@w3.org>
> Sent: Thursday, December 20, 2001 4:59 PM
> Subject: [Moderator Action] Smil question
> 
> > Dear Sir,
> >
> > I have a question about SMIL. I need to write a file which has "excl"
> group. After excl part, I need to continue play a clip. But seems it can
> not. Here is my code. Could you please take a look and tell me what should I
> do. Thank you very much.
> >
> > Sincerely,
> > Lan
> >
> > <smil xmlns="http://www.w3.org/2001/SMIL20/Language">
> >   <head>
> >      <layout>
> >       <root-layout width="320" height="240"/>
> >       <region id="button1_region" left="5%" top="10%"/>
> >       <region id="button2_region" left="5%" top="30%"/>
> >     </layout>
> >   </head>
> >   <body>
> >     <seq>
> >       <par>
> >         <img src="UOBlarge1.gif" alt="button1" id="button1"
> region="button1_region"/>
> >         <img src="UOBlarge2.gif" alt="button2" id="button2"
> region="button2_region"/>
> >         <excl dur="indefinite">
> >           <video src="Mov0001.mpg" begin="button1.activateEvent"
> end="5s"/>
> >           <video src="Mov0002.mpg" begin="button2.activateEvent"
> end="5s"/>
> >         </excl>
> >       </par>
> >       <video src="Mov0003.mpg" end="20s"/>
> >     </seq>
> >   </body>
> > </smil>
> >

Received on Monday, 31 December 2001 11:39:13 UTC