mirror of
https://github.com/LuanRT/googlevideo.git
synced 2026-06-13 08:42:31 +00:00
chore(sabr-shaka-example): Use player#attach instead of element
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user