1

私の Sencha touch 2.0 アプリで、同時に 2 つのオーバーレイがある場合に JW JavaScript ビデオ プレーヤーが再生されないという問題が発生しました。だから私は周りを見回して、何が起こっているのかを理解しようとすることができます(私は煎茶と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