207
edits
Line 5: | Line 5: | ||
The mechanism is that, when a video element is invisible, we replace its original video decoder with '''blank video decoder''' which only produces white frames with right resolution and right time information. The original video decoder is released and the black video decoder is light so that we reduce CPU/GPU & memory usage. | The mechanism is that, when a video element is invisible, we replace its original video decoder with '''blank video decoder''' which only produces white frames with right resolution and right time information. The original video decoder is released and the black video decoder is light so that we reduce CPU/GPU & memory usage. | ||
== | == Trade-off == | ||
The | The trade-off is that, while the suspended-video-element is switched back to be visible again, we should resume its original video decoder. | ||
The resuming operation must be asynchronous and might be time-consuming which depends on the resolution of the video file and whether it contains audio tracks or not. | |||
== Project stage == | == Project stage == |
edits