From 6384917c617035a4a84af265213f4547ca91c357 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 10 Sep 2025 13:15:38 +0800 Subject: [PATCH] bugfix --- bricks/utils.js | 4 ++-- bricks/videoplayer.js | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bricks/utils.js b/bricks/utils.js index ce9610e..08dfa3a 100644 --- a/bricks/utils.js +++ b/bricks/utils.js @@ -22,8 +22,8 @@ event: domoff: remove from dom */ bricks.dom_on_off_observer=new MutationObserver((mutations)=>{ - for (let mutation of mutations) { - for (let n of mutation.removedNodes) { + for (let m of mutations) { + for (let n of m.removedNodes) { if (n.bricks_widget){ var w = n.bricks_widget; w.dispatch('domoff'); diff --git a/bricks/videoplayer.js b/bricks/videoplayer.js index e41ff65..bc4bea8 100644 --- a/bricks/videoplayer.js +++ b/bricks/videoplayer.js @@ -1,4 +1,11 @@ + var bricks = window.bricks || {} +/* +use hls to play m3u8 + https://cdn.jsdelivr.net/npm/hls.js@latest +use dash to play dash + https://cdn.dashjs.org/latest/dash.all.min.js +*/ bricks VideoPlayer = class extends bricks.VBox { constructor(opts) {