yjPlay icon indicating copy to clipboard operation
yjPlay copied to clipboard

Does this library support local ads from the phone instead of IMA

Open hafiz013 opened this issue 6 years ago • 2 comments

Hi dear developer, does this library support local ads from phone(meaning that we store file video inside phone play when certain amount time and pause content current video play)?

hafiz013 avatar Aug 20 '18 09:08 hafiz013

Realize advertising on any index.

.addOnWindowListener(new VideoWindowListener() {
                    @Override
                    public void onCurrentIndex(int currentIndex, int windowCount) {
                        if (currentIndex == 0) {
                            Log.d(TAG, "setOnWindowListener:" + currentIndex);
                            exoPlayerManager.next();
                            //屏蔽控制布局Shielding control layout
                            exoPlayerManager.hideControllerView(true);
                            //true如果屏蔽控制布局 但是需要显示全屏按钮。手动显示。
                        } else {
                            //恢复控制布局Recovery control layout
                            exoPlayerManager.showControllerView(true);
                        }
                    }
                })

yangchaojiang avatar Aug 20 '18 10:08 yangchaojiang

could you have fully code?

hafiz013 avatar Aug 21 '18 04:08 hafiz013