Skip to content

Commit

Permalink
Fix sample
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-lando committed Jan 29, 2025
1 parent 3512825 commit 5ca8233
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions samples/index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
<html>

<head>
<head>
<script src="index.js"></script>
<style>
#target {
width: 640px;
height: 480px;
}
#target {
width: 640px;
height: 480px;
}
</style>
</head>
</head>

<body>
<body>
<div id="target" />
<script>
window.onload = function () {
const player = new PlayerSdk("#target", {
id: "vi2BgDGC8r4sspRnMblc4WVX",
});
/*
setInterval(() => {
player.getPlaying().then(res => console.log(res));
}, 100);
*/
};
window.onload = function () {
window.player = new PlayerSdk("#target", {
id: "vi2BgDGC8r4sspRnMblc4WVX",
});
};
</script>
</body>

</html>
</body>
</html>

0 comments on commit 5ca8233

Please sign in to comment.