How to stop the ForgeJs player ?

tech@quaqua.com
Posts: 7
Joined: Mon Feb 19, 2018 2:03 pm

How to stop the ForgeJs player ?

Postby tech@quaqua.com » Mon Mar 05, 2018 3:04 pm

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 ?

tech@quaqua.com
Posts: 7
Joined: Mon Feb 19, 2018 2:03 pm

Re: How to stop the ForgeJs player ?

Postby tech@quaqua.com » Tue Mar 06, 2018 3:28 pm

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.

User avatar
bbaudel
ForgeJS Team
Posts: 45
Joined: Wed Oct 26, 2016 9:20 am

Re: How to stop the ForgeJs player ?

Postby bbaudel » Tue Mar 27, 2018 8:15 am

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.

Who is online

Users browsing this forum: Google [Bot] and 2 guests