2012-01-30 60 views
0

我在我的应用程序中使用jwplayer 5.7来运行视频。我正在尝试创建一个播放列表,其中使用了自定义js所需的自定义标签。以下是我的XML播放列表的摘录。jwplayer xml播放列表自定义标签

<title>Webisode 200 Playlist</title> 

<item> 

    <title>My first video</title> 

    <media:credit role="author">Adam Houston</media:credit> 

    <media:content url="rackspace_url" type="video/x-flv" /> 

    <jwplayer:deanlongdescription>Very long description goes here.</jwplayer:deanlongdescription> 

</item> 

<item> 

    <title>Other Video 202</title> 

    <media:credit role="author">Brent Purcell</media:credit> 

    <media:content url="rackspace_url" type="video/x-flv" /> 

    <jwplayer:deanlongdescription>Very long description goes here.</jwplayer:deanlongdescription> 

</item> 

根据jwplayer论坛/ DOC我需要包括jwplayer命名空间,包括标签,但是当我做jwplayer.getPlayers( )[0] .getPlaylistItem()。在萤火虫deanlongdescription我得到undefined,而我可以访问其他属性秒。有什么建议么??

问候

回答

1

我找到了解决办法,

所有我必须做的是将包括在RSS标签的命名空间,如下所示:

< \ RSS版本= '2.0' 的xmlns:媒体='http://search.yahoo.com/mrss/'xmlns:jwplayer ='http://developer.longtailvideo.com/trac/wiki/FlashFormats \>

然后里面每个我都可以做< \ jwplayer:custom_tag> custom_value </jwpl ayer:custom_tag>

就是这样,简单!