Skip to content
ctiao edited this page May 16, 2016 · 3 revisions

Welcome to the DanmakuFlameMaster wiki!

常见问题

弹幕丢失怎么办,我本来有10条视频五秒钟的弹幕不显示怎么办 public void cutDanmakuSourceAndStart(String json) { if (mDanmakuContext != null && mDanmakuView != null) { nextVideoRestartDanmaku(); InputStream byteArrayInputStream = new ByteArrayInputStream(json.getBytes()); InputStream inputStream = TextUtils.isEmpty(json) ? mContext.getResources().openRawResource(R.raw.precomments) : byteArrayInputStream; mParser = createParser(inputStream, DanmakuLoaderFactory.TAG_ACFUN); mDanmakuView.prepare(mParser, mDanmakuContext); } }

而且就进去的时候走了Parser的parse方法 后边重新执行mParser = createParser(inputStream, DanmakuLoaderFactory.TAG_ACFUN); mDanmakuView.prepare(mParser, mDanmakuContext); 之后就不再执行parse了

Clone this wiki locally