Page 1 of 1

How to stop the ForgeJs player ?

Posted: Mon Mar 05, 2018 3:04 pm
by tech@quaqua.com
I want to have a close icon anywhere over the player upon clicking on that Forge player should get closed.Is there any stop event which I can call upon clicking on close icon ?

Re: How to stop the ForgeJs player ?

Posted: Tue Mar 06, 2018 3:28 pm
by tech@quaqua.com
We have resolved this issue by using the below code

let video = this.viewer1.story.scenes[0].media.displayObject;
video.pause();

Is this is the right approach to stop or pause the forge js player, I want forcefully destroy the player. If there is any other way to accomplish it please update me.

Re: How to stop the ForgeJs player ?

Posted: Tue Mar 27, 2018 8:15 am
by bbaudel
You want to stop a video playback only or do something else?
There are also many destroy methods if you're looking after a removal.