Skip to content

Commit

Permalink
Merge pull request #30 from ant-media/update_webrtc_adaptor_and_version
Browse files Browse the repository at this point in the history
Adapt MenuButton to VideoJS 8
  • Loading branch information
mekya authored Oct 7, 2024
2 parents b647b25 + aaee630 commit 535cf31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antmedia/videojs-webrtc-plugin",
"version": "1.3.0",
"version": "1.3.1",
"description": "streaming via WebRTC with Ant-MediaServer",
"main": "dist/videojs-webrtc-plugin.cjs.js",
"module": "dist/videojs-webrtc-plugin.es.js",
Expand Down
5 changes: 2 additions & 3 deletions src/components/ResolutionMenuButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class ResolutionMenuButton extends MenuButton {

constructor(player, options) {
super(player, options);
MenuButton.apply(this, arguments);
}

createEl() {
Expand All @@ -17,11 +16,11 @@ class ResolutionMenuButton extends MenuButton {
}

buildCSSClass() {
return MenuButton.prototype.buildCSSClass.call(this) + ' vjs-icon-cog';
return `${super.buildCSSClass()} vjs-icon-cog`;
}

update() {
return MenuButton.prototype.update.call(this);
return super.update();
}

createItems() {
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class WebRTCHandler {

const webRTCSourceHandler = {
name: 'videojs-webrtc-plugin',
VERSION: '1.1',
VERSION: '1.3.1',

canHandleSource(srcObj, options = {}) {
const localOptions = videojs.mergeOptions(videojs.options, options);
Expand Down

0 comments on commit 535cf31

Please sign in to comment.