From 6b92b700ec7e9d42746b7d5fd64f586ebe7205f3 Mon Sep 17 00:00:00 2001 From: Arnas Date: Mon, 4 Feb 2019 23:07:07 +0200 Subject: [PATCH] Add on error callback to wistia player --- src/players/Wistia.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/players/Wistia.js b/src/players/Wistia.js index cb1b516f..a112fd9b 100644 --- a/src/players/Wistia.js +++ b/src/players/Wistia.js @@ -17,7 +17,7 @@ export class Wistia extends Component { return url && url.match(MATCH_URL)[1] } load (url) { - const { playing, muted, controls, onReady, onPlay, onPause, onSeek, onEnded, config } = this.props + const { playing, muted, controls, onReady, onPlay, onPause, onSeek, onEnded, config, onError } = this.props getSDK(SDK_URL, SDK_GLOBAL).then(() => { window._wq = window._wq || [] window._wq.push({ @@ -38,7 +38,7 @@ export class Wistia extends Component { onReady() } }) - }) + }, onError) } play () { this.callPlayer('play')