From 7102efb35f36bd1969b66b8465d843eab4302010 Mon Sep 17 00:00:00 2001 From: Ana <45183304+mih-ana@users.noreply.github.com> Date: Tue, 23 Nov 2021 10:47:18 +0100 Subject: [PATCH] Update npm.sdk.ts - updated setupForm() call Entering a playback URL inside the url field and clicking the 'Load' button was throwing an error in console and was not loading the newly entered playback url. By updating the setupForm() call inside the npm.sdk.ts file to accept an arrow function instead of a pointer to the method in the demo instance, this error is not thrown anymore and the newly entered playback url is loaded. --- samples/npm-sdk/npm-sdk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/npm-sdk/npm-sdk.ts b/samples/npm-sdk/npm-sdk.ts index aa75f0a..2c23be8 100644 --- a/samples/npm-sdk/npm-sdk.ts +++ b/samples/npm-sdk/npm-sdk.ts @@ -109,4 +109,4 @@ class PlayerDemo { } const demo = new PlayerDemo(getFormStream()); -setupForm(demo.loadAndPlay); +setupForm((stream: string) => demo.loadAndPlay(stream));