带有列表栏的JW播放器播放列表不会出现在xcode中

时间:2014-01-02 19:06:07

标签: html objective-c jwplayer

我正在制作一个简单的jw播放器播放列表,底部有一个列表栏。这将显示在ios应用程序中。问题是它只是第一首歌曲。

喜欢这样:

enter image description here

在互联网上看起来像这样

http://ratemyplays.com/home.html

这是正确的。

为什么它在应用程序和互联网上没有显示相同的内容?

目标c

webView.delegate = self;
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"home" ofType:@"html"]isDirectory:NO]];
[webView loadRequest:request];

HTML:

<html>
<head>
  <title>Title of the document</title>
<script src="http://jwpsrv.com/library/NwqHmnPBEeORiiIACmOLpg.js"></script>
</head>
<body>
<div style="width: 340px;">

 <div id='myElement'></div>
 <script>
    jwplayer("myElement").setup({
        playlist: [{
        file: "http://www.youtube.com/watch?v=xeQ31jQNAVI&",
        image: "/uploads/sintel.jpg",
        title: "THIS IS A TEST",
        description: "Sintel is a fantasy CGI movie from the Blender Open Movie Project."
        },{
        file: "http://www.youtube.com/watch?v=iEXSxUraLCI",
        image: "/uploads/tears.jpg",
        title: "THIS IS A TEST",
        description: "A complete open pipeline was used to produce this visual effect film."
        },{
        file: "http://www.youtube.com/watch?v=vBZ_w2c6BTo",
        image: "/uploads/bunny.jpg",
        title: "THIS IS A TEST",
        description: "This  animated film is made using free and open source software."
        },{
        file: "http://www.youtube.com/watch?v=1jTKtlb9cf4",
        image: "/uploads/elephants.jpg",
        title: "THIS IS A TEST",
        description: "This is the worlds first open movie, made entirely with Blender."
        }],
        width: 305,
        height: 600,
        listbar: {
        position: "bottom",
        size: 280
        }
    });
     </script>
</script></div>


</body>
</html>

0 个答案:

没有答案