smil_SMIL简介-鞋串上的多媒体演示

smil

Not every site owner or Web developer can afford Flash, Director or video editing or creation tools to integrate pictures, sound and video into their sites. Even PowerPoint might be out of your grasp. And, let’s face it — they’re not the easiest tools to master, either. But what if you do have Notepad, and a range of sound, video or image files? What’s the answer? SMILE! Or: SMIL, to be precise.

并非每个站点所有者或Web开发人员都能负担得起Flash,Director或视频编辑或创建工具来将图片,声音和视频集成到其站点中。 甚至PowerPoint可能都不在您的掌握范围内。 而且,让我们面对现实吧-它们也不是最容易掌握的工具。 但是,如果有什么记事本,以及各种音频,视频或图像文件? 答案是什么? 微笑! 或者:SMIL,准确地说。

什么是SMIL? (What is SMIL?)

SMIL stands for Synchronised Multimedia Integration Language, and is specified by the W3C.

SMIL代表同步多媒体集成语言,由W3C指定。

What does it allow you to do? SMIL is an XML based mark-up language that allows you to combine separate images, sounds and video into a presentation. While it will not compete with Director or other similar products for high end functionality, the beauty of SMIL is that it’s easy. Very easy! If you had little or no trouble picking up HTML, then you’ll probably master SMIL in an hour.

它允许您做什么? SMIL是一种基于XML的标记语言,使您可以将单独的图像,声音和视频组合成演示文稿。 尽管SMIL不会与Director或其他类似产品争夺高端功能,但SMIL的优点在于它很容易。 简单! 如果您几乎没有遇到HTML的麻烦,那么您可能会在一个小时内掌握SMIL。

SMIL结构 (The SMIL Structure)

SMIL is similar to HTML in that it’s split into a HEAD and a BODY section. However, one key difference here is that the basic spatial layout of the presentation is defined in the HEAD section, using regions. Then, content for those regions is added in the BODY section.

SMIL与HTML相似,它分为HEADBODY部分。 但是,此处的主要区别在于,演示文稿的基本空间布局是在HEAD节中使用区域定义的。 然后,将这些区域的内容添加到BODY部分中。

Take a look at the code below to see how these sections come together to form a document:

看一下下面的代码,看看这些部分如何组合在一起形成一个文档:

<smil>
 <head>
   <layout>
     <region id="reg1" top="0" left="0" width="300" height="200" />
     <region id="reg2" top="0" left="300" width="300" height="200" />
   </layout>
 </head>
 <body>
   <seq>
     <par>
       <img id="img1" src="image.gif" region="reg1" dur="4s" />
       <audio id="aud1" src="audio.wav" dur="4s" />
     </par>
     <par>
       <img id="img2" src="image2.gif" region="reg2" dur="4s" />
       <audio id="aud2" src="audio2.wav" dur="4s" />
     </par>
     <img id="img3" src="finish.gif" region="reg1" dur="4s" />
   </seq>
 </body>
</smil>

As you can see, the spatial layout is clearly defined in the HEAD section, and then media formats are defined to fill different regions as defined by region Ids, though you don’t need to define a region for sound files. You’ll hopefully also have noticed:

如您所见,在HEAD部分中明确定义了空间布局,然后定义了媒体格式以填充由区域ID定义的不同区域,尽管您无需为声音文件定义区域。 希望您还会注意到:

  • that the XHTML syntax is used to close all tags,

    XHTML语法用于关闭所有标签,
  • the use of ‘dur’ attributes, and

    使用“ dur”属性,以及
  • the use of the <seq> and <par> tags.

    <seq><par>标记的使用。

The dur Tag

dur标签

The dur tag stands for duration, allowing you to specify the number of seconds for which you want your media to be visible or audible. You should specify this as a numerical value, followed by s for seconds. Or, if you want your file to be displayed permanently, you can use the attribute indefinite.

dur标签代表持续时间,允许您指定希望媒体可见或可听见的秒数。 您应将其指定为数字值,然后输入s表示秒。 或者,如果您希望文件永久显示,则可以使用属性indefinite

The <seq> and <par> Tags

<seq><par>标记

The <seq> and <par> tags stand for ‘sequential’ and ‘parallel’ respectively, and concern themselves with ordering your files at playback.

<seq><par>标记分别代表“顺序”和“并行”,并关心在播放时对文件进行排序。

Having a <seq> tag at the beginning of your BODY section instructs the viewer to play back everything contained in the tag sequentially, so that one file will play until it finishes, after which the next will start. Using the <par> tag does the opposite — it instructs all files contained within it to play at the same time.

BODY部分的开头有一个<seq>标记,指示查看者按顺序播放该标记中包含的所有内容,以便一个文件播放直到完成,然后开始下一个文件。 使用<par>标记执行相反的操作-指示其中包含的所有文件同时播放。

However, SMIL gives you the ability to nest these tags, which allows you greater flexibility in controlling events. The way I’ve placed the <seq> and <par> tags in the example above means that an image will show concurrently with an audio file that plays for 4 seconds. Then, a second image will display, accompanied by a sound file, for 4 seconds. Finally an image will appear on its own for 4 seconds. So this will be a presentation of 12 seconds total duration, using 5 different files for a period of 4 seconds each.

但是,SMIL使您能够嵌套这些标签,这使您可以更灵活地控制事件。 在上面的示例中,放置<seq><par>标记的方式意味着图像将与播放4秒的音频文件同时显示。 然后,将显示第二个图像并伴有声音文件,持续4秒钟。 最终,图像将单独出现4秒钟。 因此,这将是一个总持续时间为12秒的演示,使用5个不同的文件,每个文件持续4秒。

模块化架构 (A Modular Architecture)

SMIL’s architecture is modular. It boasts a total of 45 different modules relating to various kinds of functionality, which are grouped into these functional areas:

SMIL的体系结构是模块化的。 它拥有与各种功能相关的总共45个不同的模块,这些模块分为以下功能区域:

  • Structure

    结构体
  • Meta information

    元信息
  • Layout

    布局
  • Timing

    定时
  • Media Objects

    媒体对象
  • Linking

    连结中
  • Content control

    内容控制
  • Animation

    动画
  • Transitions

    转场
  • Time Manipulations

    时间操纵

This modular structure allows software manufacturers to include some or all modules in their products as required — and allows standards initiatives to do the same. Hopefully you can appreciate the power of such a simple concept.

这种模块化结构允许软件制造商根据需要在其产品中包括一些或所有模块,并且允许标准计划做到这一点。 希望您能体会到这种简单概念的力量。

SMILHTML功能 (SMIL’s HTML Features)

SMIL also incorporates many basic HTML features such as:

SMIL还集成了许多基本HTML功能,例如:

Linking

连结中

<a show="new" href="index2.smi">
 <img src="image.gif" region="reg1" dur="indefinite" />
</a>

Text

文本

<text src="text1.txt" region="reg1" dur="10s" />

That’s it! You are now ready to create! All you need is Notepad, a viewer to display your creation, and to save your files in the *.smi format. Happy Integrating!

而已! 现在就可以创建了! 您只需要记事本,一个查看器即可显示您的创作,并以* .smi格式保存文件。 整合愉快!

更多信息 (Further Information)

There are many players available, but a popular and widely-used option is Real One Player.

有很多可用的播放器,但是一个流行且广泛使用的选项是Real One Player

Be sure to check out a feature-by-feature demo of SMIL possibilities at http://www.realnetworks.com/resources/samples/smil.html

请务必在http://www.realnetworks.com/resources/samples/smil.html上查看 SMIL功能的逐项演示

You can find more information and resources on the current (SMIL 2.0), and past recommendations at https://www.w3.org/AudioVideo

您可以在https://www.w3.org/AudioVideo上找到有关当前(SMIL 2.0)和过去建议的更多信息和资源。

翻译自: https://www.sitepoint.com/presentation-shoestring/

smil

发送彩信如何生成smil文件 发送彩信如何生成smil文件,压缩包里面有两个文件,都可以,方法大同小异,可以参考下Ambulant-2.2-win32.exe可以播放smil文件 立即下载

相关推荐

使用SMIL实现同步流媒体课件制作

单击左边的课程目录超链接 右边会显示嵌入在页面中的流媒体文件 显示相应小节的课程内容

SMIL小结

SMIL小结 彩信发送的格式很多都是使用smil格式作为定义载体,近来接触这一块,因此大概了解一下smil还是有必要的。

Drizzt0878的专栏 2110

SMIL 3.0格式简介

SMIL 3.0格式简介

SMIL基本知识

二、 SMIL基本知识 下面我们看一个实际的SMIL的例子(用记事本编写就可以,注意:在英文状态下编辑。也就是不要打开中文输入法。因为SMIL播放器不认识中文的标点符号!): &lt;!—媒体标记 --&gt; 显然,SMILHTML语言的语法格式非常相像!所以,如果大家对HTML熟悉的话,SMIL学习起来就很容易。但是,二者的差别是很大的,所...

weixin_36036023的博客 4306

彩信学习之SMIL介绍

SMIL介绍 SMIL简历SMIL是同步多媒体集成语言(Synchronized Multimedia Integration Language)的缩写,念做smile。它是由3W(World Wide Web Consortium)组织规定的多媒体操纵语言。最新的SMIL版本是2001年8月推出的SMIL 2.0版本(参与制定该标准的公司奇多,J 有Compaq、Gateway、IBM、Mic...

weixin_30632899的博客 383

smil格式两个样例

                                                                                                                           

cao_david的专栏 3219

彩信制作之SMIL规范

彩信制作之SMIL规范   关键词:MMS、MM、SMIL 缩略语清单: MM Multimedia Messaging 多媒体消息 MMS Multimedia Messaging Service 多媒体消息服务 MMSC Multimedia Messaging Service Center 多媒体消息服务中心 SMIL Synchronized Multimedia Integ

1385

26. SMIL动画在SVG中的使用

同步多媒体集成语言(Synchronized Multimedia Integration Language,简称 SMIL) 是一种用于描述多媒体元素同步和交互的标记语言。它早期主要用于在网页或其他多媒体环境中实现音频、视频、图像等多媒体内容的同步播放和交互控制。

一名全栈开发工程师 1517

SMIL 简介

什么是 SMILSMIL 指同步多媒体集成语言 SMIL 的发音是 "smile" SMIL 是一种用于描述视听呈现的语言 SMIL 易于学习和理解 SMIL 是一种类似 HTML 的语言 SMIL 使用 XML 编写 SMIL 呈现(SMIL presentations)可以使用文本编辑器来编写 SMIL 是 W3C 标准 简化的 SMIL 例子:

liyong20080101的专栏 1056

SMIL简介

 一、 简介随着流技术的成熟和广泛的应用,其优点我们有了深深的体会。但是,其不足之处也逐渐体现出来。问题的出现,就要求我们想办法来解决。SMIL正是针对目前流技术中的问题而提出来的。下面让我们来仔细看看SMIL。1、SMIL简历SMIL是同步多媒体集成语言(Synchronized Multimedia Integration Language)的缩写,念做smile(呵呵,这名字

961

彩信SMIL文件解析

SMIL是同步多媒体集成语言(Synchronized Multimedia Integration Language)的缩写,念做smile.它是由W3C(World Wide Web Consortium)组织规定的多媒体操纵语言。最新的SMIL版本是2001年8月推出的SMIL 2.0版本(参与制定该标准的公司奇多,J 有Compaq、Gateway、IBM、Microsoft、RealNe

3060

SMIL大作业

北邮多媒体通信SMIL实验程序:

Kid_U_ForFun的专栏 1898

SMIL详细解析

三、 SMIL详细解析 SMIL语言的内容很多,我们从最常用的开始谈起。(准备好了吗?上路了!)1、  多媒体片断结构组织(1)标记我们首先看下面这个例子:    请保存(记得要用*.smil这样的文件格式 J)并运行该源程序看看效果。我相信如果大家看到的是这样的效果:Realone player先显示image1.jpg,然后显示ima

4594

SMIL编程学习(一)(简介

SMIL  同步多媒体集成语言  Synchronized Multimedia Integration Language 特征: 主要用于视音频呈现,和html有点像,可以和html以及xhtml等结合使用。 SMIL 的用途: SMIL 可用于创建因特网和内联网程序SMIL 可用于创建幻灯片放映呈现SMIL 已被描述为 PowerPoint 的 Internet 对应物

Kid_U_ForFun的专栏 1949

SMIL已经死了! SMIL万岁! SMIL功能替代指南

SVG的本机动画规范SMIL已受到高度重视,因为它为执行SVG动画渲染提供了许多技巧。 不幸的是,在WebKit中对SMIL的支持正在减弱,并且对于Microsoft的IE或Edge浏览器从未(也永远不会)存在。 没有恐惧! 我们已经覆盖了您。 本文探讨了某些特定于SMIL的功能,并深入研究了替代方法,以期获得更长的支持,从而达到相同的效果。 SMIL功能:沿路径运动 SMIL为S...

CSS 初学者指南 1513

基于SMIL的多媒体课件制作工具的研究

[本文仅供学习,如挪做它用,请自行负责]基于SMIL的多媒体课件制作工具的研究孙辨华 黄 微 李树芳 崔光佐北京大学现代教育技术中心 北京 100871 sbh@cai.pku.edu.cn【摘 要】本文首先指出Web常用的HTML的弱点,叙述了XML的特点与优点.然后,对同步多媒体合成语言SMIL作了较为详细的说明,包括SMIL 1.0规范和SMIL 2.0改进的10大功能模块. 第三部分,阐述

塞翁失马 2059

smil

MMS学习——SMIL 参看 MM Message Assembly Mode.PDF  HUAWEI 也可参看MMS1.2的conformance document。 需要说明的是:SMIL内容也比较多,而且有1.0、2.0 、2.1、3.0几个版本。不过我们在MMS中使用的只是如下精简后的SMIL,称为MMS SMIL。其他语法我们不必关心。 MM两种组织方式:无序、有序,即

sonicliji的专栏 1273
上一篇: 十分钟倒计时flash_Flash 101-第6部分:最终倒计时
下一篇: 怎么看域名最终指向的ip_购买最终域名
culh2177
博客等级 码龄12年 27粉丝 175原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值