Refactor media message handling

This commit is contained in:
hensm
2021-04-29 01:36:50 +01:00
parent fce3fa31be
commit d6ea8b9856
6 changed files with 150 additions and 158 deletions

View File

@@ -270,10 +270,7 @@ async function registerMediaElementListeners() {
});
mediaElement.addEventListener("ratechange", () => {
// TODO: Fix types
currentMedia._sendMediaMessage("SET_PLAYBACK_RATE", {
playbackRate: mediaElement.playbackRate
} as any);
// TODO: Re-implement this
});
mediaElement.addEventListener("volumechange", () => {