react-video-renderer
Advanced tools
Comparing version 2.4.3 to 2.4.4
@@ -18,2 +18,3 @@ /// <reference types="react" /> | ||
export declare type SetVolumeFunction = (volume: number) => void; | ||
export declare type SetPlaybackSpeed = (volume: number) => void; | ||
export interface VideoActions { | ||
@@ -24,2 +25,3 @@ play: () => void; | ||
setVolume: SetVolumeFunction; | ||
setPlaybackSpeed: SetPlaybackSpeed; | ||
requestFullscreen: () => void; | ||
@@ -70,2 +72,3 @@ mute: () => void; | ||
private setVolume; | ||
private setPlaybackSpeed; | ||
private requestFullscreen; | ||
@@ -72,0 +75,0 @@ private mute; |
@@ -93,2 +93,5 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
_this.setPlaybackSpeed = function (playbackSpeed) { | ||
_this.mediaRef.current && (_this.mediaRef.current.playbackRate = playbackSpeed); | ||
}; | ||
_this.requestFullscreen = function () { | ||
@@ -168,3 +171,3 @@ var sourceType = _this.props.sourceType; | ||
get: function () { | ||
var _a = this, play = _a.play, pause = _a.pause, navigate = _a.navigate, setVolume = _a.setVolume, requestFullscreen = _a.requestFullscreen, mute = _a.mute, unmute = _a.unmute, toggleMute = _a.toggleMute; | ||
var _a = this, play = _a.play, pause = _a.pause, navigate = _a.navigate, setVolume = _a.setVolume, setPlaybackSpeed = _a.setPlaybackSpeed, requestFullscreen = _a.requestFullscreen, mute = _a.mute, unmute = _a.unmute, toggleMute = _a.toggleMute; | ||
return { | ||
@@ -175,6 +178,7 @@ play: play, | ||
setVolume: setVolume, | ||
setPlaybackSpeed: setPlaybackSpeed, | ||
requestFullscreen: requestFullscreen, | ||
mute: mute, | ||
unmute: unmute, | ||
toggleMute: toggleMute | ||
toggleMute: toggleMute, | ||
}; | ||
@@ -181,0 +185,0 @@ }, |
@@ -18,2 +18,3 @@ /// <reference types="react" /> | ||
export declare type SetVolumeFunction = (volume: number) => void; | ||
export declare type SetPlaybackSpeed = (volume: number) => void; | ||
export interface VideoActions { | ||
@@ -24,2 +25,3 @@ play: () => void; | ||
setVolume: SetVolumeFunction; | ||
setPlaybackSpeed: SetPlaybackSpeed; | ||
requestFullscreen: () => void; | ||
@@ -70,2 +72,3 @@ mute: () => void; | ||
private setVolume; | ||
private setPlaybackSpeed; | ||
private requestFullscreen; | ||
@@ -72,0 +75,0 @@ private mute; |
@@ -95,2 +95,5 @@ "use strict"; | ||
}; | ||
_this.setPlaybackSpeed = function (playbackSpeed) { | ||
_this.mediaRef.current && (_this.mediaRef.current.playbackRate = playbackSpeed); | ||
}; | ||
_this.requestFullscreen = function () { | ||
@@ -170,3 +173,3 @@ var sourceType = _this.props.sourceType; | ||
get: function () { | ||
var _a = this, play = _a.play, pause = _a.pause, navigate = _a.navigate, setVolume = _a.setVolume, requestFullscreen = _a.requestFullscreen, mute = _a.mute, unmute = _a.unmute, toggleMute = _a.toggleMute; | ||
var _a = this, play = _a.play, pause = _a.pause, navigate = _a.navigate, setVolume = _a.setVolume, setPlaybackSpeed = _a.setPlaybackSpeed, requestFullscreen = _a.requestFullscreen, mute = _a.mute, unmute = _a.unmute, toggleMute = _a.toggleMute; | ||
return { | ||
@@ -177,6 +180,7 @@ play: play, | ||
setVolume: setVolume, | ||
setPlaybackSpeed: setPlaybackSpeed, | ||
requestFullscreen: requestFullscreen, | ||
mute: mute, | ||
unmute: unmute, | ||
toggleMute: toggleMute | ||
toggleMute: toggleMute, | ||
}; | ||
@@ -183,0 +187,0 @@ }, |
{ | ||
"name": "react-video-renderer", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"main": "dist/es5/index.js", | ||
@@ -13,2 +13,3 @@ "jsnext:main": "dist/es2015/index.js", | ||
"@atlaskit/button": "^7.0.2", | ||
"@atlaskit/field-range": "^9.0.0", | ||
"@atlaskit/icon": "^11.0.0", | ||
@@ -15,0 +16,0 @@ "@atlaskit/single-select": "^4.0.3", |
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
27861
7
15
592