1

在我的 Sencha touch 2.0 应用程序中,当同时有两个叠加层时,我遇到了 JW javascript 视频播放器无法播放的问题,我想看看是否有人可以更好地详细说明出了什么问题或可能是什么原因造成的所以我可以试着环顾四周,试着弄清楚发生了什么(我是 sencha 和 javascript 的新手)。我在http://www.cox7.com/sean上加载了该项目,即使它只能在 iPad 上运行。

尝试以下步骤以更好地了解我在说什么,并注意许多 jwplayer 事件正在记录在 javascript 控制台中,因此您可以看到发生了什么......

1) 单击主页上的任何面板,这将打开带有视频标题描述和 javascript 视频播放器的叠加层。您将看到可以播放视频。

2)在搜索栏中(主屏幕的右上角)搜索“stem”,这将显示一个带有搜索结果的面板。

3)单击任何搜索结果,然后将打开相同的视频播放器面板,但这次您将无法单击播放按钮。这几乎就像面板不是最顶部的元素,但我仍然可以滚动并且 onTouchStart 事件会触发,但视频永远不会开始。

有谁知道这可能是什么原因造成的?任何帮助深表感谢。

这是我的搜索结果覆盖的控制器设置....

showStreamSearchPopup: function showStreamPopup(list, index, node, record) {
            //alert(record.get('title'));
                        //var record = getData().getStore().getAt(index);
                            StreamVideoSearchPlayerOverlay = Ext.Viewport.add({
                                xtype: 'panel',
                                modal: true,
                                hideOnMaskTap: true,
                                showAnimation: {
                                    type: 'popIn',
                                    duration: 200,
                                    easing: 'ease-out'
                                },
                                hideAnimation: {
                                    type: 'popOut',
                                    duration: 200,
                                    easing: 'ease-out'
                                },
                                centered: true,
                                width: '78%',
                                height: '68%',
                                styleHtmlContent: true,
                                listeners: {
                                    painted: function() {
                                        console.log('StreamVideoSearchPlayerOverlay painted');
                                   },
                                   activeitemchange :function() {
                                        console.log('StreamVideoSearchPlayerOverlay activeitemchange');
                                   }
                                },
                                items: [{
                                style: 'padding:1em;',
                                html:[  "<div class=\"postTitle\">",record.get('title'),"</div><div class=\"postDate\">Added on ",
                                    record.get('date'),"</div><div class=\"postDesc\">",record.get('content'),"</div>"      
                                ].join("") 
                    },


                    {
                    xtype: 'panel',
                    layout: 'card',
                    cls: 'videoPlayeriPad',
                    items:[{
                        xtype: 'jwplayer',
                        playerOptions: {
                            file: record.get('ipadvideo'),
                            image: record.get('poster'),
                            width: 500, 
                            height: 281,
                            plugins: {
                             'gapro-1': { accountid: 'UA-23363754-1', idstring: '||title||' }
                            },
                            skin: 'http://www.cox7.com/wp-content/mediaplayer/skins/beelden/beelden/glow.xml',

                        }
                    }]
                    }

                    ],
                                scrollable: true
                            }

                            );




                    StreamVideoSearchPlayerOverlay.show();
                    StreamVideoSearchPlayerOverlay.setActiveItem(2);
                    },

这是我用于正常主屏幕资产覆盖的控制器设置...

showStreamPopup: function showStreamPopup(list, index, node, record) {

                        //alert(record.get('title'));
                        //var record = getData().getStore().getAt(index);

                            StreamVideoPlayerOverlay = Ext.Viewport.add({
                                xtype: 'panel',
                                modal: true,
                                hideOnMaskTap: true,
                                showAnimation: {
                                    type: 'popIn',
                                    duration: 200,
                                    easing: 'ease-out'
                                },
                                hideAnimation: {
                                    type: 'popOut',
                                    duration: 200,
                                    easing: 'ease-out'
                                },
                                centered: true,
                                width: '78%',
                                height: '68%',
                                styleHtmlContent: true,
                                listeners: {
                                    painted: function() {
                                        console.log('StreamVideoPlayerOverlay painted');
                                   },
                                   activeitemchange :function() {
                                        console.log('StreamVideoPlayerOverlay activeitemchange');
                                   }
                                },
                                items: [{
                                style: 'padding:1em;',
                            html:[  "<div class=\"postTitle\">",record.get('title'),"</div><div class=\"postDate\">Added on ",
                                    record.get('date'),"</div><div class=\"postDesc\">",record.get('content'),"</div>"
                                ].join("") 
                    },

                    {
                    xtype: 'panel',
                    layout: 'card',
                    cls: 'videoPlayeriPad',
                    items:[{
                        xtype: 'jwplayer',
                        playerOptions: {
                            file: record.get('ipadvideo'),
                            image: record.get('poster'),
                            width: 500, 
                            height: 281,
                            plugins: {
                             'gapro-1': { accountid: 'UA-23363754-1', idstring: '||title||' }
                            },
                            skin: 'http://www.cox7.com/wp-content/mediaplayer/skins/beelden/beelden/glow.xml',

                        }
                    }]
                    }
                    ],
                                scrollable: true
                            }

                            );


                    StreamVideoPlayerOverlay.setActiveItem(2);
                    StreamVideoPlayerOverlay.show();
                    }
4

0 回答 0