How do I get video player to close if a Video is Completed

Q&A about the latest versions
Post Reply
Dreamfoot
Posts: 25
Joined: Mon Oct 17, 2022 11:01 am

Hello Forum members,

I have several video_url in my project. I want that after media viewing is complete (video has reached end) the player closes.
I think it would be a complex series of actions I would have to set on Mouse click of video container - something which makes them return to the node they were on prior to clicking video container.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
If you are using one of the skins or components that come with Pano2VR then the closing of the video will be done with a close button.
So for example looking at the Venis skin that comes with Pano2VR 7.x.x, the video popup elements have a close button:

1.png
1.png (476.4 KiB) Viewed 489 times

What you can do is in each video element, for example, video_url_hs_popup_play, add the action, Media End, Trigger Click, video_hs_popup_close.

2.png
2.png (59.38 KiB) Viewed 489 times

So as the action suggests when the media, in this case, the video has ended, it will trigger a click of the close button closing the video after it has finished.
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/
Dreamfoot
Posts: 25
Joined: Mon Oct 17, 2022 11:01 am

Hello Hopki,

I am using customised Feather_orb skin. (made few tweaks as per my project requirement)
I am sharing two screenshots of my video popup structure. I tried using the option but it doesn't work. Can you check screenshots and advise?
Attachments
Screen Shot 2022-11-02 at 09.19.15 AM.png
Screen Shot 2022-11-02 at 09.19.15 AM.png (1.56 MiB) Viewed 474 times
Screen Shot 2022-11-02 at 09.19.08 AM.png
Screen Shot 2022-11-02 at 09.19.08 AM.png (1.51 MiB) Viewed 474 times
Dreamfoot
Posts: 25
Joined: Mon Oct 17, 2022 11:01 am

It is solved. Instead of the button, I had to make the Video Element URL trigger the click of the video close button. Don't bother about my immediate previous comment. Problem solved. Thanks again.
Post Reply