@twilio/player
Advanced tools
Comparing version 1.0.0-beta.10 to 1.0.0-beta.11
/// <reference types="react" /> | ||
/// <reference path="./declarations.d.ts" /> | ||
import * as React from "react"; | ||
@@ -6,3 +7,3 @@ import WaveSurfer from "wavesurfer.js"; | ||
import { WaveSurferParams as WaveSurferParams$0 } from "wavesurfer.js"; | ||
import EE from "eventemitter3"; | ||
import * as EE from "eventemitter3"; | ||
import CanvasEntry from "wavesurfer.js/src/drawer.canvasentry.js"; | ||
@@ -106,2 +107,3 @@ import MultiCanvas from "wavesurfer.js/src/drawer.multicanvas.js"; | ||
error: [Error]; | ||
finish: []; | ||
"hot-load": []; | ||
@@ -135,2 +137,3 @@ play: []; | ||
private wsHandleError; | ||
private wsHandleFinish; | ||
private wsHandlePlay; | ||
@@ -137,0 +140,0 @@ private wsHandlePause; |
@@ -318,2 +318,5 @@ 'use strict'; | ||
}; | ||
this.wsHandleFinish = () => { | ||
this.emit("finish"); | ||
}; | ||
this.wsHandlePlay = () => { | ||
@@ -514,2 +517,3 @@ this.emit("play"); | ||
this.ws.on("error", this.wsHandleError); | ||
this.ws.on("finish", this.wsHandleFinish); | ||
this.ws.on("audioprocess", this.wsHandleAudioProcess); | ||
@@ -516,0 +520,0 @@ this.ws.on("redraw", this.wsHandleRedraw); |
{ | ||
"name": "@twilio/player", | ||
"version": "1.0.0-beta.10", | ||
"version": "1.0.0-beta.11", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
420688
33
1938