|
|
@@ -221,20 +221,9 @@ export function fix (node) {
|
|
|
return false
|
|
|
}
|
|
|
})
|
|
|
- // 所有带视频组件均有效且无输出时
|
|
|
// 仅有一个视频时,默认输出
|
|
|
// 多个时,询问
|
|
|
- if (volumeWidgets.length && !volumeWidgets.some(widget => {
|
|
|
- if (widget.type === WidgetType.LIVE) {
|
|
|
- if (!widget.url) {
|
|
|
- return true
|
|
|
- }
|
|
|
- }
|
|
|
- if (!widget.sources.length) {
|
|
|
- return true
|
|
|
- }
|
|
|
- return widget.mute === 0
|
|
|
- })) {
|
|
|
+ if (volumeWidgets.length && !volumeWidgets.some(({ mute }) => mute === 0)) {
|
|
|
if (volumeWidgets.length === 1) {
|
|
|
volumeWidgets[0].mute = 0
|
|
|
} else {
|