SMIL: t:audio issue in internet explorer 8
I am trying to reanimate project ma开发者_JAVA技巧de ten years ago. SMIL2 was successfully used in IE6.
I have found that IE8 still supports SMIL, however nor t:media, nor t:audio elements do not play audio/media content any more.
Here is simple example that works OK in IE6 (under VirtualPC) but has issues in IE8
<html xmlns:t="urn:schemas-microsoft-com:time">
<head> <?import namespace="t" implementation="#default#time2"> </head> <body> <t:audio src="LoopyMusic.wav" repeatCount="indefinite" type="wav" /> </body> </html>Another notice - in case if t:audio is included into sequence (t:seq) - element after t:audio never starts it's effects.
Are there any known issues/workarounds with SMIL support under internet explorer 8?
Use a closing tag instead of an empty tag and add the timecontainer
attribute, since IE8 enforces stricter syntax:
<t:audio src="LoopyMusic.wav" repeatCount="indefinite" type="wav" timecontainer="par"></t:audio>
References
Stu Nicholls | CSS PLAY | Internet Explorer Time Action Galleries
HTML+TIME: Time Containers
Using the TIMEACTION Attribute
Using HTML+TIME Transitions
Using the HTML+TIME Document Object Model (DOM)
精彩评论