diff --git a/package-lock.json b/package-lock.json index bf872e9..76819af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.9.1-SNAPSHOT", "license": "ISC", "dependencies": { - "@antmedia/videojs-webrtc-plugin": "^1.2.1", + "@antmedia/videojs-webrtc-plugin": "^1.2.2", "@antmedia/webrtc_adaptor": "2.9.1-SNAPSHOT-2024-May-17-12-21", "aframe": "1.5.0", "dashjs": "^4.7.4", @@ -68,10 +68,11 @@ } }, "node_modules/@antmedia/videojs-webrtc-plugin": { - "version": "1.2.1", - "license": "MIT", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@antmedia/videojs-webrtc-plugin/-/videojs-webrtc-plugin-1.2.2.tgz", + "integrity": "sha512-xLDsB6IZpFV1lFqQYFoXphvgZVYXVQepDRh91xS9tv+RUFJU+HRQg3uYubkuG0uTojWJlGxqxFWixi/chH3GcA==", "dependencies": { - "@antmedia/webrtc_adaptor": "^2.8.0-SNAPSHOT", + "@antmedia/webrtc_adaptor": "^2.9.0", "global": "^4.4.0", "video.js": "^6 || ^7" }, @@ -7751,9 +7752,11 @@ } }, "@antmedia/videojs-webrtc-plugin": { - "version": "1.2.1", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@antmedia/videojs-webrtc-plugin/-/videojs-webrtc-plugin-1.2.2.tgz", + "integrity": "sha512-xLDsB6IZpFV1lFqQYFoXphvgZVYXVQepDRh91xS9tv+RUFJU+HRQg3uYubkuG0uTojWJlGxqxFWixi/chH3GcA==", "requires": { - "@antmedia/webrtc_adaptor": "^2.8.0-SNAPSHOT", + "@antmedia/webrtc_adaptor": "^2.9.0", "global": "^4.4.0", "video.js": "^6 || ^7" }, diff --git a/package.json b/package.json index 6dfd04a..77b4dde 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ }, "license": "ISC", "dependencies": { - "@antmedia/videojs-webrtc-plugin": "^1.2.1", + "@antmedia/videojs-webrtc-plugin": "^1.2.2", "@antmedia/webrtc_adaptor": "2.9.1-SNAPSHOT-2024-May-17-12-21", "aframe": "1.5.0", "dashjs": "^4.7.4", diff --git a/test/embedded-player.test.js b/test/embedded-player.test.js index c90d361..c95b720 100644 --- a/test/embedded-player.test.js +++ b/test/embedded-player.test.js @@ -464,6 +464,8 @@ describe("WebPlayer", function() { it("play", async function() { + this.timeout(10000); + var videoContainer = document.createElement("video_container"); var placeHolder = document.createElement("place_holder"); @@ -480,6 +482,8 @@ describe("WebPlayer", function() { document.body.appendChild(fixture); var player = new WebPlayer(windowComponent, videoContainer, placeHolder); + + await player.initialize(); var playIfExists = sinon.replace(player, "playIfExists", sinon.fake()); player.play(); @@ -495,6 +499,7 @@ describe("WebPlayer", function() { player = new WebPlayer(windowComponent, videoContainer, placeHolder); + await player.initialize(); var playWithVideoJS = sinon.replace(player, "playWithVideoJS", sinon.fake()); player.play(); @@ -516,6 +521,7 @@ describe("WebPlayer", function() { addEventListener: window.addEventListener}; player = new WebPlayer(windowComponent, videoContainer, placeHolder); + await player.initialize(); var playViaDash = sinon.replace(player, "playViaDash", sinon.fake()); player.play(); expect(playViaDash.calledWithMatch("streams/stream123/stream123.mpd", "mpd")).to.be.true; @@ -908,7 +914,7 @@ describe("WebPlayer", function() { it("sendWebRTCData", async function() { - + this.timeout(10000); var videoContainer = document.createElement("video_container"); var placeHolder = document.createElement("place_holder"); @@ -921,7 +927,11 @@ describe("WebPlayer", function() { document: document, }; - + //videoContainer.innerHTML = STATIC_VIDEO_HTML; + + // Append the fixture element to the document body + document.body.appendChild(videoPlayer); + var player = new WebPlayer(windowComponent, videoContainer, placeHolder); //var playWithVideoJS = sinon.replace(player, "playWithVideoJS", sinon.fake());