09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB...

23
15/06/22 BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB [email protected]

Transcript of 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB...

Page 1: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

21/04/23 BELKHIR ABDELKADER

Le Langage SMIL

Belkhir AbdelkaderLaboratoire LSI [email protected]

Page 2: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

21/04/23

SMIL ?SMIL : Synchronized Multimedia Integration Language

SMIL is pronounced "smile"

SMIL is a language for describing audiovisual presentations

SMIL is written in XML

SMIL presentations can be written using a text-editor

SMIL is a W3C standard

Page 3: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

21/04/23

Langage déclaratif permettant de:

– Spécifier des présentations qui incluent divers médias (locaux, distants)

– Synchroniser ces éléments

– Créer des présentations interactives pouvant s’adapter à plusieurs paramètres (Vitesse de connexion, langue de l’utilisateur,…)

Page 4: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

Informations Spatiales

4

•Document SMIL

Meta-données

+Élémentsmultimédias

=

Informations Temporelles

Informations hypermédias

Page 5: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

5

Éléments

de présentationÉléments

compositesAttributs de

synchronisation

Objets

discrets

Objets

continus

par

seq

begin

end

dur

L’aspect temporel dans SMIL

Page 6: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

21/04/23

Since SMIL is based on XML

The <head> element is used to store information about the presentation layout and other meta information.

The <body> element contains the media elements

Page 7: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

Seq et Par

The <seq> and <par> elements, defined since the first version SMIL 1.0, are the basis of the SMIL temporal model.

The <seq> element

21/04/23

Page 8: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

<par> element defines a parallel grouping in which multiple elements can be played at the same time

The <par> element

21/04/23

Page 9: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

There are three termination behaviors of the <par> element according to the value of the “endsync” attribute which could be associated with the <par> element.

Legal values for the attribute are

'last',

'first‘

'id-value'.

21/04/23

Page 10: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

-The 'last' value requires <par> to end with the last end of all the child elements.

-The 'first' value requires <par> to end with the earliest end of all the child elements.

-The 'id-value' value requires <par> to end with the specified child.

21/04/23

Page 11: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

Time attribute

SMIL Timing also provides attributes that can be used to specify an element's timing behavior:

–The begin attribute specifies the explicit begin of an element.

–The end attribute specifies the explicit end of an element.–The dur attribute specifies the explicit duration of an element.

21/04/23

Page 12: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

The effect of time attributes

21/04/23

Page 13: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

Min, max attributesThe min attribute defines the minimum value of the active duration of an element, whereas the max attribute defines the maximum value of the active duration.

21/04/23

Page 14: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

Time Conflict Definition

The time conflict is one type of temporal inconsistency, it is defined in [10] as the case of conflicting values of attributes in the SMIL specification.

Two types of time conflicts are defined: - The intra-element time conflict is the case of

conflicting attributes within a single element,

- The inter-elements time conflict is the case ofconflicting attributes among different elements.

21/04/23

Page 15: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

The Hierarchical SMIL-Net (H-SMIL-Net) model

The Hierarchical SMIL-Net (H-SMIL-Net) model inherits most of temporal elements defined in SMIL-Net.

21/04/23

Page 16: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

SMIL-Net Components

Places

- The regular place represents the active entity of

the system; it is used to model a media object and its

internal duration.

- The virtual place represents a time delay, it is used to model the temporal attributes begin, end and dur.

21/04/23

Page 17: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

SMIL-Net ComponentsTransitions

The set of transitions defined in SMIL-Net models the different termination semantics of SMIL elements:

–The simple transition fires when the delays associated to all its input places are finished. It models the termination of a simple element, a <seq>element, or a <par> element with a "last" semantic.–The Master transition fires when the delay associated to one particular input place, designed by a master arc (designating the Master element), is finished. It represents the termination of the < with a "Master" semantic.

21/04/23

Page 18: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

Transitions

Graphical representations of transitions

21/04/23

Page 19: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

SMIL-Net Components

Arcs-The ordinary arc is used to transport tokens.

-The master arc also transports tokens, but in addition it controls the firing of a master transition.

21/04/23

Page 20: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

example of SMIL-Net

21/04/23

Page 21: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

the Firing Time of SMIL-NetTransitionsSimple transition: The firing time of the transition is the maximum value of the “firing time of the preceding transition” plus “the nominal duration of the following place of the preceding transition”.

First transition: The firing time of the transition is the minimum value of the “firing time of the preceding transition” plus “the nominal duration of the following place of the preceding transition”.

Master transition: The firing time of the transition is the value of the “firing time of the preceding transition” plus “the nominal duration of the place associated with a master arc”.

21/04/23

Page 22: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

Detection of Time Conflicts

The Intra-element time conflict

The intra-element time conflict is the case of conflicting attributes within the same element.

Therefore, to detect the intra-element time conflict, we only need to examine the values of attributes associated with a single element.

It is easy to see that the case of

B+D ≠ E results in an

unreasonable physical meaning.

21/04/23

Page 23: 09/01/2016BELKHIR ABDELKADER Le Langage SMIL Belkhir Abdelkader Laboratoire LSI USTHB belkhir@lsi-usthb.dz.

The inter-elements time conflictThe inter-elements time conflict is the case of conflicting attributes among different elements.

21/04/23