Skip to content

Commit c04b6a8

Browse files
authoredNov 11, 2024··
test: Fix Shaka Player warning (#207)
`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.'`
1 parent 172b65c commit c04b6a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎tests/tests.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,13 @@ describe('Shaka Streamer', () => {
124124
jasmine.DEFAULT_TIMEOUT_INTERVAL = 400 * 1000;
125125
});
126126

127-
beforeEach(() => {
127+
beforeEach(async () => {
128128
video = document.createElement('video');
129129
video.muted = true;
130130
document.body.appendChild(video);
131131

132-
player = new shaka.Player(video);
132+
player = new shaka.Player();
133+
await player.attach(video);
133134
const retryParameters = {
134135
maxAttempts: 5,
135136
timeout: 90e3,

0 commit comments

Comments
 (0)
Please sign in to comment.