Confirmed users
452
edits
| Line 1: | Line 1: | ||
=Overview= | =Overview= | ||
Suspending Video Decoders for Firefox is a feature that can reduce CPU & memory usage when a video runs in browser background. | Suspending Video Decoders for Firefox is a feature that can reduce CPU & memory usage when a video runs in browser background. | ||
In the prototype (Phase 0), we tried to shutdown video decoder while a video element is invisible. The mechanism can save the CPU & Memory usage but it's hard for Firefox to resume video after user goes back to previous web page which contains videos since video decoders has lost necessary information. Currently (Phase 1), we devoted ourselves to implementing this feature on '''1) | In the prototype (Phase 0), we tried to shutdown video decoder while a video element is invisible. The mechanism can save the CPU & Memory usage but it's hard for Firefox to resume video after user goes back to previous web page which contains videos since video decoders has lost necessary information. Currently (Phase 1), we devoted ourselves to implementing this feature on '''1) video without audio track''' and '''2) low resolution video (480 P)''', and we added a new mechanism. The new mechanism is going to switch to another video decoder (we called blank decoder) while video element is invisible and continuously send white screen (empty data) to video player. In our target release (Phase 2), our goal is to enable this feature on all videos. | ||
The following is a step-by-step description of shutdown decoder working flow. | The following is a step-by-step description of shutdown decoder working flow. | ||