feat(plugin): add onPlayerApiReady hook

Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
Su-Yong
2023-11-12 01:51:26 +09:00
parent 2097f42efb
commit a4f4ecb569
22 changed files with 273 additions and 291 deletions

View File

@ -41,10 +41,7 @@ const exponentialVolume = () => {
};
export default builder.createRenderer(() => ({
onLoad() {
return document.addEventListener('apiLoaded', exponentialVolume, {
once: true,
passive: true,
});
onPlayerApiReady() {
exponentialVolume();
},
}));