refactor(core): CORE-06 type media surfaces and playback hosts

This commit is contained in:
Harvey Zhao committed 2026-09-11 01:18:14 +08:00
1 parent 97d320bd74
commit ee859e4804
27 files changed
+2152 -79

No files matched your search

+4 -3
View File
@@ -3482,6 +3482,7 @@ function qualityMix(art) {
});
}
function rectMix(art) {
const host = art;
def(art, "rect", {
get: () => {
return getRect(art.template.$player);
@@ -3492,18 +3493,18 @@ function rectMix(art) {
const key = keys[index];
def(art, key, {
get: () => {
return art.rect[key];
return host.rect[key];
}
});
}
def(art, "x", {
get: () => {
return art.left + window.pageXOffset;
return host.left + window.pageXOffset;
}
});
def(art, "y", {
get: () => {
return art.top + window.pageYOffset;
return host.top + window.pageYOffset;
}
});
}