Page 1 of 1

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

Posted: Tue Nov 01, 2022 10:47 am
by Dreamfoot
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.

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

Posted: Tue Nov 01, 2022 11:15 am
by Hopki
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 522 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 522 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,

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

Posted: Wed Nov 02, 2022 4:52 am
by Dreamfoot
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?

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

Posted: Wed Nov 02, 2022 5:24 am
by Dreamfoot
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.