[8.2.2][fix]乘客屏修复因广告播放器多实例引起的tts播报时视频无法静音问题

This commit is contained in:
xinfengkun
2025-09-04 18:45:05 +08:00
parent 6f0cc126f1
commit 949d06a841
3 changed files with 31 additions and 5 deletions

View File

@@ -120,6 +120,18 @@ class CustomManager : GSYVideoBaseManager() {
}
return customManager
}
/**
* 获取所有指定tag对应的CustomManager
*/
@Synchronized
fun getCustomManagersByTag(tag: String): List<CustomManager> {
if (tag.isBlank()) {
return emptyList()
}
return sMap.filterKeys { key ->
key.startsWith(tag)
}.values.toList()
}
fun onPauseAll() {
if (sMap.isNotEmpty()) {