@twilio/player
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -118,4 +118,4 @@ /// <reference types="react" /> | ||
pause: () => void; | ||
isPlaying: () => void; | ||
isReady: () => void; | ||
isPlaying: () => boolean; | ||
isReady: () => boolean; | ||
setPlaybackRate: (rate?: PlaybackRate) => void; | ||
@@ -137,3 +137,6 @@ toggleSplitChannels: () => void; | ||
} | ||
declare class Player extends React.Component<PlayerProps> { | ||
interface PlayerState { | ||
isReady: boolean; | ||
} | ||
declare class Player extends React.Component<PlayerProps, PlayerState> { | ||
state: { | ||
@@ -144,10 +147,12 @@ isReady: boolean; | ||
mediaElement: HTMLMediaElement | null; | ||
player?: PlayerCore; | ||
play: () => void; | ||
pause: () => void; | ||
isPlaying: () => false | (() => void); | ||
isReady: () => false | (() => void); | ||
core?: PlayerCore; | ||
play: () => void | undefined; | ||
pause: () => void | undefined; | ||
isPlaying: () => boolean; | ||
isReady: () => false | (() => boolean); | ||
setPlaybackRate: (rate?: number | "very_fast" | "fast" | "normal" | "slow" | "very_slow" | undefined) => void | undefined; | ||
toggleSplitChannels: () => void | undefined; | ||
zoomSegment: (segmentIdOrSegment?: string | Segment | undefined) => void; | ||
componentDidMount(): void; | ||
componentDidUpdate(prevProps: PlayerProps): void; | ||
shouldComponentUpdate(nextProps: PlayerProps, nextState: PlayerState): boolean; | ||
componentWillUnmount(): void; | ||
@@ -154,0 +159,0 @@ private onReady; |
{ | ||
"name": "@twilio/player", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"author": "Twilio", | ||
@@ -5,0 +5,0 @@ "license": "Apache", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
909902
14178