Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发视频播放器,在那里我将帧作为位图。只是想知道如何在不使用 while 循环的情况下连续流式传输位图。有样品吗?
您可以在处理过程中调用postInvalidate()(或将渲染限制为合理的值postInvalidateDelayed())onDraw()。
postInvalidate()
postInvalidateDelayed()
onDraw()