hello everyone, a little question about video players
I have a video in a pop-up and I would like it to pause when the pop-up is closed, is it possible to do this without a plug-in? (if not what is the best plug-in?)
thanks a lot
I would like it to pause when the pop-up is closed
Do you mean âPauseâ or âStopâ (i.e. are you wanting the video to resume from its current position if the popup is re-opened, or just to stop playing when the popup is closed).
If itâs the former, I think youâll need either a plugin or some custom javascript for that.
But if itâs the latter then itâs simple to do without plugins or custom codeâŚ
Just make sure that the video source is referring to some dynamic data on the page (i.e. the popupâs data, a custom state value, or any other on-page data).
When the popup is opened set that data to whatever it needs to be.
Then, use a âWhen a Popup is Closedâ workflow to run an action that resets the data that the video refers to (wherever that data is). That will stop the video from playing.
For example, set the popup content type to âtextâ, and leave the datasource empty.
Have the video ID refer to the popupâs âtextâ
When the popup is opened, define the text value as the Video ID (using a Display Data action).
When the popup is closed, clear itâs data using a âReset Dataâ action.
thanks a loot
You can do it easily with this plugin.
You can use 2 properties for this.
When want to stop the video, give âforceStopâ property as true.
On the other hand, give âforcePlayâ as true and âforceStopâ as false.
Check out the demo page for more information.
Thanks
thanks
This topic was automatically closed after 70 days. New replies are no longer allowed.