How to make the main video pause when pressing on a pop out video

Q&A about the latest versions
Post Reply
3dnative
Posts: 17
Joined: Fri Nov 18, 2016 5:12 pm

Hi all,

Is there a way to pause a panorama video when clicking onto a pop-out video? and then, when closing that pop-out video it resumes the panorama clip.

Any help would be appreciated.

Thanks.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
The 360 Video panorama can be controlled using the madia play, pause and stop actions as well as the others.
So on the hotspot to open a popup video add a stop media, video panorama action. On close, add a start video panorama action.
Cheers,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
3dnative
Posts: 17
Joined: Fri Nov 18, 2016 5:12 pm

Thanks for the reply.

We are new to Pano2vr so we're still getting to grips with the functionality and understanding Pano2vr. When referring to the video popout hotspot I'm assuming that's the floating video clip that pops out when clicked in the panorama, if so how do we go about adding functions such as playing/pausing/stopping to the video hotspot while keeping the popout functionality? We have added media buttons such as play, pause etc through the skin but because popout videos auto play when clicked, the timing of the panorama video and popout video eventually messes up so that both are playing at the same time.
LProbert
Posts: 92
Joined: Thu May 21, 2020 11:53 am

Hey @hopki, on this subject, how can I play and pause the pano media from the javascript api?
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Using the Video popup component for video type "file".

1) to the seek bar element add the actions:

1.png
1.png (30.28 KiB) Viewed 2526 times
2.png
2.png (32.29 KiB) Viewed 2526 times
3.png
3.png (40.75 KiB) Viewed 2526 times


2) To the close button add the actions 4

4.png
4.png (32.03 KiB) Viewed 2526 times

What will happen is when the popup video is selected the active action in the seek bar will pause the video panorama.

When the video ends the media ended action will play the video panorama again.
The next Media Ended action will change the variable and hide the popup video.

The close button has the action to also play the video panorama when the popup video is closed.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi @LProbert
For all things javascript API's please see: https://ggnome.com/doc/javascript-api/
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
ficorfin
Posts: 11
Joined: Fri Oct 02, 2020 3:05 pm

Hi Hopki

Thank you for the instructions for "Using the Video popup component" which worked nicely for a video popup.

I am struggling with how to pause and restart the 360 panorama with an image popup. Any ideas please?

Kind Regards
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi ficorfin,
The buttons/hotspots used to open and close the image popup just need Media Actions.
As an example, the hotspot just needs the action to stop media, videopanorama. and the close button the player media action.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
ficorfin
Posts: 11
Joined: Fri Oct 02, 2020 3:05 pm

Hi Hopki

You are amazing. Saved me a heap of time trying to work it out myself.

Thank you so much.
Post Reply