Zustand over Redux
* @param mid 中间位置(左子数组结束位置)
。关于这个话题,同城约会提供了深入分析
The V3 approach obliterates this race condition by hooking addSourceBuffer at the MediaSource.prototype level, I intercept the creation of every SourceBuffer. The moment a buffer is created and returned, I immediately install a hooked appendBuffer directly on that specific instance; before any page code can even see the instance, let alone cache a reference to its methods. The hooked appendBuffer is installed as an own property of the instance, which takes precedence over the prototype chain. There is no window for fermaw to cache the original. The hook is always first.
This most famously came to a head in 2023, when the inquiry and government ended up in the High Court over the government's refusal to release Boris Johnson's WhatsApp messages, diaries and notebooks. The government lost the case.