TR : [Moderator Action] Controling SMIL animation from an embedded SVG

 

 

-----Message d'origine-----
De : julien bloit [mailto:Julien.Bloit@ircam.fr] 
Envoyé : mardi 7 janvier 2003 19:29
À : www-smil@w3.org
Objet : [Moderator Action] Controling SMIL animation from an embedded
SVG

 

Hi,

 

I'd like to make a SMIL animation where events from an embedded SVG
document control the parent SMIL animation. For example, when the user
clicks on a svg element, the animation current time would set to a new
specified timecode (using the Real One embedded player method
"SetPosition(position)" ).

It is fairly easy when i embed a simple svg and a player in a parent
HTML file, the triggering is done by referencing the Real player via the
SVG parent document :

 

parent.document.playerName.setPosition(position);

 

But when embedding the SVG document in SMIL, I don't know how to call
this method anymore. I tried to reach the parent's parent (namely the
HTML doc) with no success. I think the best would be to write inline SVG
in a SMIL doc using namespaces, instead of pointing to an extern *.svg
file in a <ref> tag. 

 

Does anyone know if it is possible, using RealOne player ? 

 

Many thanks !!

 

Julien.

Received on Wednesday, 8 January 2003 10:48:33 UTC