1

我想使用 youtube 供稿播放 youtube 视频,例如http://www.youtube.com/rss/user/userName/videos.rss

xtype: 'nestedlist',
    title: 'Blog',
    iconCls: 'star',
    displayField: 'title',

    store: {
        type: 'tree',

        fields: [
            'title', 'link', 'author', 'contentSnippet', 'content',
            {name: 'leaf', defaultValue: true}
        ],

        root: {
            leaf: false
        },

        proxy: {
            type: 'jsonp',
            url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://www.youtube.com/rss/user/JustinBieberVEVO/videos.rss',
            reader: {
                type: 'json',
                rootProperty: 'responseData.feed.entries'
            }
        }
    },

    detailCard: {
        xtype: 'video',
        scrollable: true,
        styleHtmlContent: true
    },

    listeners: {
        itemtap: function(nestedList, list, index, element, post) {
            this.getDetailCard().setHtml(post.get('content'));
        }
    }
},

当用户单击提要列表然后应用程序播放直接视频
请帮助我。

4

0 回答 0