0

私はビデオを実行するために私のアプリケーションでjwplayer5.7を使用しています。自分のカスタムjsに必要なカスタムタグを使用するプレイリストを作成しようとしています。以下は私の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 forums / docによると、タグを含めるためにjwplayer名前空間を含める必要がありますが、firebugでjwplayer.getPlayers()[0] .getPlaylistItem()。deanlongdescriptionを実行すると、未定義になりますが、他のプロパティにアクセスできます。助言がありますか??

よろしく

4

1 に答える 1

1

私は解決策を見つけました、

私がしなければならないのは、次のようにrssタグに名前空間を含めることだけです。

<\ rss version = '2.0' xmlns:media ='http://search.yahoo.com/mrss/' xmlns:jwplayer ='http://developer.longtailvideo.com/trac/wiki/FlashFormats \>

次に、それぞれの内部で<\ jwplayer:custom_tag> custom_value </ jwplayer:custom_tag>を実行できます。

簡単です。

于 2012-02-01T11:38:53.167 に答える