mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-27 19:17:11 +00:00
feat: reorganize popup tabs and add video debug diagnostics
This commit is contained in:
@@ -146,6 +146,24 @@
|
||||
tryMediaAction(EVENTS.PLAY);
|
||||
}
|
||||
}
|
||||
|
||||
if (message.type === 'GET_VIDEO_STATE') {
|
||||
const video = findVideo();
|
||||
if (video) {
|
||||
sendResponse({
|
||||
paused: video.paused,
|
||||
currentTime: video.currentTime,
|
||||
duration: video.duration || 0,
|
||||
readyState: video.readyState,
|
||||
muted: video.muted,
|
||||
playbackRate: video.playbackRate,
|
||||
url: window.location.href,
|
||||
id: video.id || 'none'
|
||||
});
|
||||
} else {
|
||||
sendResponse({ error: 'No video found' });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Detect native events
|
||||
|
||||
Reference in New Issue
Block a user