Merge commit '7621e2f8dec938cf48181c8b10afc9b01f444e68' into beta

This commit is contained in:
Ilya Laktyushin
2025-12-06 02:17:48 +04:00
commit 8344b97e03
28070 changed files with 7995182 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<style>
body { margin: 0; width:100%%; height:100%%; background-color:#000; }
html { width:100%%; height:100%%; background-color:#000; }
.container iframe, .container object, .container embed { position: absolute; top: 0; left: 0; width: 100%% !important; height: 100%% !important; }
</style>
</head>
<body>
<div class="container">
<iframe id="player" src="%@" width="100%" height="100%" frameborder="0"></iframe>
</div>
<script>
var iframe;
var player;
function invoke(command) {
iframe.contentWindow.postMessage(JSON.stringify({ "event": "inject", "command": command }), "*");
}
(function(){
iframe = document.querySelectorAll("iframe")[0];
iframe.onload = function() {
invoke("initialize");
};
})();
function playPause() {
invoke("playPause");
}
function receiveMessage(evt) {
if ((typeof evt.data) != "string")
return;
if (evt.data == "playbackStarted")
window.location.href = "embed://onPlayback?data=";
}
window.addEventListener("message", receiveMessage, false);
</script>
</body>
</html>