The application discloses a kind of based on single thread
multiplexing and off-screen rendering Web multi-video concurrent
processing method, comprising: creating globally unique shared decoding thread, for each video distribution virtual
instance identifier and establish the mapping relationship with decoding context, the rendering control right of
canvas element is handed over to the shared decoding thread, decoding is executed in the thread based on identifier routing and direct completion graphic rendering, form the
closed loop that decoding and drawing are both closed in background;Measure first frame rendering time consumption,
limit time trigger fuse degradation makes video instance switch to controlled step mode.The application will thread resource overhead fixation, eliminate pixel data cross thread copy, release main thread rendering load, and realize adaptive degradation alive under extreme load.