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

Tue Dec 20, 2016 4:25 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: 10748
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Tue Dec 20, 2016 5:28 pm

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
Hopki
Garden Gnome Software 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

Wed Dec 21, 2016 10:48 am

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: 58
Joined: Thu May 21, 2020 11:53 am

Mon Jun 15, 2020 4:45 pm

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

Mon Jun 15, 2020 9:54 pm

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 324 times
2.png
2.png (32.29 KiB) Viewed 324 times
3.png
3.png (40.75 KiB) Viewed 324 times


2) To the close button add the actions 4

4.png
4.png (32.03 KiB) Viewed 324 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,
Hopki
Garden Gnome Software 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: 10748
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Mon Jun 15, 2020 9:55 pm

Hi @LProbert
For all things javascript API's please see: https://ggnome.com/doc/javascript-api/
Regards,
Hopki
Garden Gnome Software 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: 7
Joined: Fri Oct 02, 2020 3:05 pm

Sun Oct 11, 2020 6:31 am

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: 10748
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Sun Oct 11, 2020 5:39 pm

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,
Hopki
Garden Gnome Software 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: 7
Joined: Fri Oct 02, 2020 3:05 pm

Mon Oct 12, 2020 8:48 am

Hi Hopki

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

Thank you so much.
Post Reply