Skip to content

Commit

Permalink
Improvements in fallback full screen button plugin using dynamic vide…
Browse files Browse the repository at this point in the history
…o layouts
  • Loading branch information
ferserc1 committed Feb 20, 2024
1 parent 4db6ee6 commit f48dc40
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/paella-basic-plugins.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/paella-basic-plugins.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paella-basic-plugins",
"version": "1.44.3",
"version": "1.44.4",
"description": "Basic plugins for Paella Player",
"main": "src/index.js",
"module": "dist/paella-basic-plugins.js",
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/es.upv.paella.fullscreenButton.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Events, bindEvent, ButtonPlugin } from 'paella-core';
import { Events, bindEvent, triggerEvent, ButtonPlugin } from 'paella-core';
import BasicPluginsModule from './BasicPluginsModule';

import fullscreenIcon from '../icons/fullscreen.svg';
Expand Down Expand Up @@ -62,6 +62,9 @@ export default class PauseButtonPlugin extends ButtonPlugin {
else {
this.player.containerElement.classList.add("paella-fallback-fullscreen");
}
setTimeout(() => {
this.player.resize();
}, 100);
}

async action() {
Expand Down

0 comments on commit f48dc40

Please sign in to comment.