I'm working on a project and needed to work with an existing livestream which use IBM uStream. I checked the documentation about the API and then another issue with React / NextJS here. But I can't use callMethod() as expected.
I just want to create a button that start the video (and the other commands too).
To facilitate the understanding I have recreated a small simple project with these few lines :
I'm working on a project and needed to work with an existing livestream which use IBM uStream. I checked the documentation about the API and then another issue with React / NextJS here. But I can't use callMethod() as expected. I just want to create a button that start the video (and the other commands too).
To facilitate the understanding I have recreated a small simple project with these few lines :
Codesandox : https://codesandbox.io/s/vigilant-carlos-hly3ji?file=/src/App.js:0-1118
Everything works good except the moment when we are supposed to call
playerAPI.callMethod("play")
. Nothing is happening at this moment.Thank you for your help