We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32bb251 commit 5d22a19Copy full SHA for 5d22a19
src/players/Vidyard.js
@@ -15,9 +15,12 @@ export default class Vidyard extends Component {
15
this.props.onMount && this.props.onMount(this)
16
}
17
18
- load (url, isReady) {
+ load (url) {
19
const { config, onError, onDuration } = this.props
20
const id = url && url.match(MATCH_URL_VIDYARD)[1]
21
+ if (this.player) {
22
+ this.stop()
23
+ }
24
getSDK(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then(Vidyard => {
25
if (!this.container) return
26
Vidyard.api.addReadyListener((data, player) => {
@@ -50,6 +53,7 @@ export default class Vidyard extends Component {
50
53
51
54
stop () {
52
55
window.VidyardV4.api.destroyPlayer(this.player)
56
+ delete this.player
57
58
59
seekTo (amount) {
0 commit comments