HJDanmaku-Swift
HJDanmaku-Swift copied to clipboard
A high performance danmaku engine for iOS

copied the logic from HJDanmakuVideoSource
`prepareDanmakus` will not set `self.isPrepared = true` if the input is an empty array, so I modify it to make sure the `self.isPrepared = true`.
我尝试了很多次,调用 play() 方法后都会报错 `isPrepared` == NO 的错误 guard self.isPrepared else { assert(false, "isPrepared is NO!") return }