Skip to content

动态加载网络图刷新弹幕能提供下思路么 #16

@george5613

Description

@george5613

现在对应着UpLogoRenderer去实现默认图头像应该是没问题
现在这边想在弹幕prepare的某个时间点去获取网络图片,然后刷新替换默认头像,然后看了sample没发现很好的去加载网络图片时间点回调,这边有建议么,然后刷新弹幕可以用DanmakuPlayer的updateItem对吧?
测试发现updateItem似乎也不能刷新弹幕。。可能也需要作者提供下思路
config = config.copy().apply {
updateMeasure()
updateRender()
}
danmakuPlayer.updateConfig(config)
这样可以刷新这个frame的样式确实可以做到刷新当前弹幕
但是同时发现刷新瞬间会出现icon变大一闪而过的问题,不知道是啥原因。。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions