Skip to content

Commit 07999a4

Browse files
committed
chore(sabr-shaka-example): Use player#attach instead of element
1 parent 9f992e6 commit 07999a4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • examples/sabr-shaka-example/src

examples/sabr-shaka-example/src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function main() {
4343
console.log('[Main] Innertube initialized');
4444

4545
// Now init the player.
46-
player = new shaka.Player(videoElement);
46+
player = new shaka.Player();
4747
player.configure({
4848
abr: { enabled: true },
4949
streaming: {
@@ -52,6 +52,8 @@ async function main() {
5252
}
5353
});
5454

55+
await player.attach(videoElement);
56+
5557
const ui = new shaka.ui.Overlay(player, videoContainer, videoElement);
5658

5759
ui.configure({

0 commit comments

Comments
 (0)