【问题标题】:jwplayer xml playlist custom tagsjwplayer xml 播放列表自定义标签
【发布时间】:2012-02-22 04:53:21
【问题描述】:

我在我的应用程序中使用 jwplayer 5.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 论坛/文档,我需要包含 jwplayer 命名空间以包含标签,但是当我在 firebug 中执行 jwplayer.getPlayers()[0].getPlaylistItem().deanlongdescription 时,我得到未定义,而我可以访问其他属性.有什么建议吗??

问候

【问题讨论】:

    标签: xml jwplayer playlist custom-tags


    【解决方案1】:

    我找到了解决办法,

    我所要做的就是在 rss 标记中包含命名空间,如下所示:

    然后在每个我都可以做 custom_value

    就是这样,简单!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-07
      相关资源
      最近更新 更多