From 4780cd3dc6d13a500357c610ab886c1c52144237 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Tue, 9 May 2023 15:06:03 +0800 Subject: [PATCH] flushStashedSamples --- console/client/src/sections/console/containers/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/console/client/src/sections/console/containers/index.js b/console/client/src/sections/console/containers/index.js index 8123c58..efb92da 100644 --- a/console/client/src/sections/console/containers/index.js +++ b/console/client/src/sections/console/containers/index.js @@ -618,6 +618,15 @@ function Index (props) { }); flv.attachMediaElement(container); flv.load(); + + // 初始化 _remuxer + let controller = flv._transmuxer._controller + controller._remuxer = { + flushStashedSamples: function () { + console.log("flushStashedSamples") + } + } + flv.play(); flvPlayer.current = flv }