这是我的播放列表文件,设定starttime使之从5分钟起播放,播放时确实如此。但是没有办法从MediaElement.Attributes中读到starttime值。请教!
<ASX version ="3.0">
<Entry>
<title>header</title>
<Ref href = "wmv/video.wmv"/>
</Entry>
<Entry>
<TITLE>Movie One</TITLE>
<AUTHOR>Contoso</AUTHOR>
<COPYRIGHT>(c) 2008 Contoso</COPYRIGHT>
<STARTTIME VALUE="00:05:00.00"/>
<DURATION VALUE="00:50:10.00"/>
<Ref href = "mms://wm-7.simplecdn.net/play/examples/videos/ed_656x368.wmv"/>
</Entry>
</ASX>
js代码如下。title,author,copyright能读到值,starttime,duration读不到值。count=3
-------------------------
var attribute_title = this.video.Attributes.getItemByName("Title");
var attribute_author = this.video.Attributes.getItemByName("author");
var attribute_copyright= this.video.Attributes.getItemByName("copyright");
var attribute_starttime = this.video.Attributes.getItemByName("starttime");
var attribute_duration= this.video.Attributes.getItemByName("duration");
var count=this.video.Attributes.count;