See
MM Message Assembly mode. pdf Huawei
See the conformance document of mms1.2.
It should be noted that SMIL also has many content, including versions 1.0, 2.0, 2.1, and 3.0. However, we only use the following simplified SMIL in MMS, called mms smil. We don't have to worry about other syntaxes.
There are two ways to organize mm: unordered and ordered, namely application/vnd. WAP. multipart. Mixed and application/vnd. WAP. multipart. Related.
The former is that all messages are mixed together and there is no time order. The terminal may display all messages at the same time. The latter, there is a certain relationship between the message content, which may be the display time sequence, display position, and so on.
MM assembled by application/vnd. WAP. multipart. Related
In presentation, what information can determine the size and order of display of other messages? In this case, SMIL is used. Below is a simple SMIL file.
<SMIL>
<Head>
<Meta name = "title" content = "MMS"/>
<Meta name = "author" content = "wyang"/>
<Layout>
<! -- Display the baseboard size -->
<Root-layout width = "352" Height = "144"/>
<! -- The size and position of the displayed image -->
<Region ID = "image" width = "176" Height = "144" Left = "0" Top = "0"/>
<! -- Display the size and position of text information -->
<Region ID = "text" width = "176" Height = "144" Left = "176" Top = "0"/>
</Layout>
</Head>
<Body>
<! -- Display the first frame information for 5 seconds -->
<Par dur = "5000 ms">
<! -- When the first image is displayed, use the size and position of the image defined in Layout -->
<! -- Use the size and position of the text defined in layout when the first text information is displayed -->
<Text src = "firsttext.txt" region = "text"/>
<! -- The first sound -->
<Audio src = "firstsound. Amr"/>
</PAR>
<! -- Display the second frame information for 4 seconds -->
<Par dur = "4000 ms">
<Text src = "secondtext.txt" region = "text"/>
<Audio src = "secondsound. Amr"/>
</PAR>
<! -- Display the third frame information for 6 seconds -->
<Par dur = "6000 ms">
<Text src = "thirdtext.txt" region = "text"/>
<Audio src = "thirdsound. Amr"/>
</PAR>
</Body>
</SMIL>
Through this example, we can clearly understand the composition of SMIL.
SMIL tag, no attribute, sub-tag head, body; head tag, no attribute, sub-tag layout; Body Tag, no attribute, sub-tag par;
Meta tag (text description information tag), attribute name, content; par tag (message content display time tag), attribute dur, sub-tag IMG, text, audio, ref;
Another place to learn SMIL: http://www.w3school.com.cn/smil/index.asp
Best learning docs: http://www.w3.org/tr/2005/rec-smil2-20050#/the recommended documents. Currently, we need to apply smil2.0