Keyword

Pause/Stop when loses focus

More
9 years 4 months ago #149882 by Luis
Pause/Stop when loses focus was created by Luis
Hi, is there any way to pause or stop a video when the focus is lose?

I'm using tabs with embedded videos in each one, and I want to stop/pause the video when changing tabs... is that possible?

Cheers,
Luis.

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #149913 by Lefteris
Replied by Lefteris on topic Pause/Stop when loses focus
Hi,

It depends on which video provider you are using. If the video provider has an API then you could write some javascript code to be executed when the tab is changed. However, this is not supported in AllVideos ( could not be supported with that many video providers ) .

You have to write the code on your own.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #149926 by Luis
Replied by Luis on topic Pause/Stop when loses focus
Oh sorry for not pointing that out, it is a local mp4 file

Please Log in or Create an account to join the conversation.

More
9 years 4 months ago #149935 by Lefteris
Replied by Lefteris on topic Pause/Stop when loses focus
AllVideos is using the JWPLayer for MP4 videos. It has a javascript API:

support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference

You have to use the player API inside your tabs script.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum