-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我给了 100条数据 就是显示了 4条数据 #19
Comments
弹幕是不会碰撞的,发送服务器的弹幕不用这个函数接口[self.danmakuView sendDanmaku:model forceRender:YES],demo注释里面有详细的描述,numberOfLines设置2表示只显示两行,弹幕2s内没显示都会过滤掉,可以设置HJDanmakuConfiguration对象里面tolerance属性,增大弹幕的过期时间 |
我设置 config.tolerance = 10; 然后isPrepared 一直是no,- (void)prepareCompletedWithDanmakuView:(HJDanmakuView *)danmakuView 这个方法也不回掉了 |
你先看下代码,我现在还不是很清楚你的调用逻辑 |
}
} |
sendDanmakus 是在prepare函数后面调用的,初始化弹幕可以通过prepared函数传入,你这都没有调用prepare函数,你先看下demo |
改成了[self.danmakuView prepareDanmakus:arr]; 也设置了config.tolerance = 600; 现在只显示 2条数据了, model里面的time 要设置么, 这个参数做什么的 |
我给了 100条数据 就是显示了 4条数据 numberOfLines 我设置的 2, 就显示了两排 数据
The text was updated successfully, but these errors were encountered: