It will come as no surprise that playing video and audio in a web browser requires a certain attention to performance. Whether it is by getting the design right, using good implementations of codecs (potentially with hardware acceleration), taking care of using memory properly and avoiding unnecessary copies, or ultimately micro-optimizing some particular hot paths using flashy assembly routines or a clever algorithm, a good experience for an end user doesn’t come without hard work. (…)
Gain access to the profiler by following this link: https://profiler.firefox.com/
More info in the blog article linked below.