@remotion/player
Advanced tools
Comparing version 2.1.0 to 2.2.0-alpha.83b2280c
@@ -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.2.0-alpha.83b2280c", | ||
"description": "Remotion Player", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"remotion": "^2.1.0" | ||
"remotion": "2.2.0-alpha.83b2280c" | ||
}, | ||
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
93140
94
1240
2
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedreact@17.0.2(transitive)
+ Addedreact-dom@17.0.2(transitive)
+ Addedremotion@2.2.0-alpha.83b2280c(transitive)
+ Addedscheduler@0.20.2(transitive)
- Removedremotion@2.6.16(transitive)