This commit is contained in:
yumoqing 2025-09-10 13:15:38 +08:00
parent 9bf8eea56f
commit 6384917c61
2 changed files with 9 additions and 2 deletions

View File

@ -22,8 +22,8 @@ event:
domoff: remove from dom domoff: remove from dom
*/ */
bricks.dom_on_off_observer=new MutationObserver((mutations)=>{ bricks.dom_on_off_observer=new MutationObserver((mutations)=>{
for (let mutation of mutations) { for (let m of mutations) {
for (let n of mutation.removedNodes) { for (let n of m.removedNodes) {
if (n.bricks_widget){ if (n.bricks_widget){
var w = n.bricks_widget; var w = n.bricks_widget;
w.dispatch('domoff'); w.dispatch('domoff');

View File

@ -1,4 +1,11 @@
var bricks = window.bricks || {} 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 { bricks VideoPlayer = class extends bricks.VBox {
constructor(opts) { constructor(opts) {