hi,
I am using jquery mobile ,
when I close popup, the video continues to play...
have any solution?
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Aplic. Web de jQuery Mobile</title>
- <link href="jquery-mobile/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
- <script src="jquery-mobile/jquery-1.6.4.min.js" type="text/javascript"></script>
- <script src="jquery-mobile/jquery.mobile-1.0.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function(e) {
- $("#openVideo").click(function(){
- $.mobile.changePage('#page2', {transition: 'pop', role: 'dialog'});
- });
-
- $("#page2").live("pagebeforehide", function(event) {
-
- //----> HOW STOP VIDEO?
-
- });
- });
-
- </script>
- </head>
- <body>
- <div data-role="page" id="page">
- <div data-role="header">
- <h1>START</h1>
- </div>
- <div data-role="content">
- <a href="" id="openVideo" data-inline="false" data-role="button">abrir</a>
- </div>
-
- </div>
- <!-- ****************************PAGE 2*************************** -->
- <div data-role="page" id="page2" data-theme="a">
- <div data-role="header">
- <h1>VIDEO</h1>
- </div>
- <div data-role="content" data-theme="a">
- <div data-role="popup" id="popupVideo" data-overlay-theme="a" data-theme="d" data-tolerance="15,15" class="ui-content">
-
- <iframe id="vid" src="video.avi" width="420" height="298" seamless></iframe>
-
- </div>
- </div>
-
- </div>
- </body>
- </html>