chore(sabr-shaka-example): Use player#attach instead of element

This commit is contained in:
Luan
2025-09-17 18:06:58 -03:00
parent 9f992e624a
commit 07999a4a20

View File

@@ -43,7 +43,7 @@ async function main() {
console.log('[Main] Innertube initialized');
// Now init the player.
player = new shaka.Player(videoElement);
player = new shaka.Player();
player.configure({
abr: { enabled: true },
streaming: {
@@ -52,6 +52,8 @@ async function main() {
}
});
await player.attach(videoElement);
const ui = new shaka.ui.Overlay(player, videoContainer, videoElement);
ui.configure({