@remotion/player
Advanced tools
Comparing version 2.1.0 to 2.1.2
@@ -0,1 +1,2 @@ | ||
import './event-target-polyfill'; | ||
declare type SeekPayload = { | ||
@@ -18,7 +19,3 @@ frame: number; | ||
} | ||
declare const PlayerEventEmitter: { | ||
new (): PlayerEventTarget; | ||
prototype: PlayerEventTarget; | ||
}; | ||
export declare class PlayerEmitter extends PlayerEventEmitter { | ||
export declare class PlayerEmitter extends EventTarget { | ||
dispatchSeek(frame: number): void; | ||
@@ -25,0 +22,0 @@ dispatchPause(): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PlayerEmitter = void 0; | ||
const is_node_1 = require("./utils/is-node"); | ||
const PlayerEventEmitter = (is_node_1.IS_NODE ? require('events') : EventTarget); | ||
class PlayerEmitter extends PlayerEventEmitter { | ||
require("./event-target-polyfill"); | ||
class PlayerEmitter extends EventTarget { | ||
dispatchSeek(frame) { | ||
@@ -8,0 +7,0 @@ this.dispatchEvent(new CustomEvent('seeked', { |
@@ -41,3 +41,3 @@ "use strict"; | ||
{ | ||
component, | ||
component: component, | ||
durationInFrames, | ||
@@ -44,0 +44,0 @@ height, |
@@ -37,5 +37,2 @@ "use strict"; | ||
const { current } = container; | ||
if (is_node_1.IS_NODE) { | ||
return; | ||
} | ||
if (!current) { | ||
@@ -200,3 +197,3 @@ return; | ||
controls ? (jsx_runtime_1.jsx(PlayerControls_1.Controls, { fps: config.fps, durationInFrames: config.durationInFrames, hovered: hovered, player: player, onFullscreenButtonClick: onFullscreenButtonClick, isFullscreen: isFullscreen, allowFullscreen: allowFullscreen, onExitFullscreenButtonClick: onExitFullscreenButtonClick }, void 0)) : null] }), void 0)); | ||
// Don't render suspense on | ||
// Don't render suspense on Node.js | ||
if (is_node_1.IS_NODE) { | ||
@@ -203,0 +200,0 @@ return content; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.browserSupportsFullscreen = void 0; | ||
const is_node_1 = require("./is-node"); | ||
exports.browserSupportsFullscreen = is_node_1.IS_NODE | ||
? false | ||
: document.fullscreenEnabled || document.webkitFullscreenEnabled; | ||
exports.browserSupportsFullscreen = typeof document !== 'undefined' && | ||
(document.fullscreenEnabled || document.webkitFullscreenEnabled); | ||
//# sourceMappingURL=browser-supports-fullscreen.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IS_NODE = void 0; | ||
exports.IS_NODE = typeof process !== 'undefined' && | ||
process.versions !== null && | ||
process.versions.node !== null; | ||
exports.IS_NODE = typeof document === 'undefined'; | ||
//# sourceMappingURL=is-node.js.map |
{ | ||
"name": "@remotion/player", | ||
"version": "2.1.0", | ||
"version": "2.1.2", | ||
"description": "Remotion Player", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"remotion": "^2.1.0" | ||
"remotion": "^2.1.2" | ||
}, | ||
@@ -30,0 +30,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93111
94
1240
Updatedremotion@^2.1.2