We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
player#attach
1 parent 9f992e6 commit 07999a4Copy full SHA for 07999a4
1 file changed
examples/sabr-shaka-example/src/main.ts
@@ -43,7 +43,7 @@ async function main() {
43
console.log('[Main] Innertube initialized');
44
45
// Now init the player.
46
- player = new shaka.Player(videoElement);
+ player = new shaka.Player();
47
player.configure({
48
abr: { enabled: true },
49
streaming: {
@@ -52,6 +52,8 @@ async function main() {
52
}
53
});
54
55
+ await player.attach(videoElement);
56
+
57
const ui = new shaka.ui.Overlay(player, videoContainer, videoElement);
58
59
ui.configure({
0 commit comments