master.flame.danmaku.controller.IDanmakuView Java Examples

The following examples show how to use master.flame.danmaku.controller.IDanmakuView. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DanmakuTouchHelper.java    From letv with Apache License 2.0 5 votes vote down vote up
public static synchronized DanmakuTouchHelper instance(IDanmakuView danmakuView) {
    DanmakuTouchHelper danmakuTouchHelper;
    synchronized (DanmakuTouchHelper.class) {
        danmakuTouchHelper = new DanmakuTouchHelper(danmakuView);
    }
    return danmakuTouchHelper;
}
 
Example #2
Source File: VideoPlayActivity.java    From BlueBoard with Apache License 2.0 5 votes vote down vote up
private void danmuku(InputStream inputStream) {
        if (mDanmakuView != null) {
            mParser = DanmakuHelper.createParser(inputStream);
            mDanmakuView.setCallback(new DrawHandler.Callback() {
                @Override
                public void updateTimer(DanmakuTimer timer) {
                }

                @Override
                public void danmakuShown(BaseDanmaku danmaku) {

                }

                @Override
                public void drawingFinished() {

                }

                @Override
                public void prepared() {
                    mIsDanmakuReday = true;
                }
            });
            mDanmakuView.setOnDanmakuClickListener(new IDanmakuView.OnDanmakuClickListener() {
                @Override
                public void onDanmakuClick(BaseDanmaku latest) {
//                    Log.d("DFM", "onDanmakuClick text:" + latest.text);
                }

                @Override
                public void onDanmakuClick(IDanmakus danmakus) {
//                    Log.d("DFM", "onDanmakuClick danmakus size:" + danmakus.size());
                }
            });
            mDanmakuView.prepare(mParser, mDanmakuContext);
            mDanmakuView.enableDanmakuDrawingCache(true);
//            mDanmakuView.showFPS(true);
        }
    }
 
Example #3
Source File: DanmakuTouchHelper.java    From letv with Apache License 2.0 4 votes vote down vote up
private DanmakuTouchHelper(IDanmakuView danmakuView) {
    this.danmakuView = danmakuView;
}
 
Example #4
Source File: DanamakuAdapter.java    From GSYVideoPlayer with Apache License 2.0 4 votes vote down vote up
public DanamakuAdapter(IDanmakuView mDanmakuView) {
    super();
    this.mDanmakuView = mDanmakuView;
}
 
Example #5
Source File: DanmakuVideoPlayer.java    From GSYVideoPlayer with Apache License 2.0 4 votes vote down vote up
public IDanmakuView getDanmakuView() {
    return mDanmakuView;
}
 
Example #6
Source File: CustomMediaController.java    From MyHearts with Apache License 2.0 4 votes vote down vote up
public void setTanMuView(IDanmakuView tanMuView, DanmakuContext mDanmakuContext, BaseDanmakuParser mParser) {
    this.mDanmakuView = tanMuView;
    this.mDanmakuContext = mDanmakuContext;
    this.mParser = mParser;
}
 
Example #7
Source File: CustomMediaLiveController.java    From MyHearts with Apache License 2.0 4 votes vote down vote up
public void setTanMuView(IDanmakuView tanMuView,DanmakuContext mDanmakuContext,BaseDanmakuParser mParser ) {
    this.mDanmakuView = tanMuView;
    this.mDanmakuContext=mDanmakuContext;
    this.mParser=mParser;
}