Skip to content

Commit

Permalink
test: Fix Shaka Player warning (shaka-project#207)
Browse files Browse the repository at this point in the history
`WARN LOG: 'Player w/ mediaElement has been deprecated and will be
removed in v5.0 . We are currently at version v4.11 . Additional
information: Please migrate from initializing Player with a
mediaElement; use the attach method instead.'`
  • Loading branch information
avelad authored Nov 11, 2024
1 parent 172b65c commit c04b6a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,13 @@ describe('Shaka Streamer', () => {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 400 * 1000;
});

beforeEach(() => {
beforeEach(async () => {
video = document.createElement('video');
video.muted = true;
document.body.appendChild(video);

player = new shaka.Player(video);
player = new shaka.Player();
await player.attach(video);
const retryParameters = {
maxAttempts: 5,
timeout: 90e3,
Expand Down

0 comments on commit c04b6a8

Please sign in to comment.