Quantcast
Channel: support.jwplayer.com :: Streaming
Viewing all articles
Browse latest Browse all 2800

Pausing Video in iFrame

$
0
0
I'm using a service that embeds a live stream into a web page for a church. The page in question is here http://www.thecrossingchurch.com/live-theme-test-2/ If you let the page load the stream starts. However there is a button below that toggles out the live video and goes to live audio. When you do that it is just hiding the div with the video in it. The video just keeps playing. I would love to in addition to hiding the video for it to pause the JW player. The JW player is on a separate domain so I can't exactly add any javascript to the page or target the JW player within the iFrame to make it pause. Any thoughts about how to accomplish this?? I can do something like this to reload the src of the iFrame to make it not autostart... var newsource = $("iframe", '.livestream').attr("src") + "&autostart=no"; $("iframe", '.livestream').attr("src", newsource); But it is a kind of messy solution and causes unnecessary load on the server. Any thoughts or help would be much appreciated. Thanks.

Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>