Web Analytics Made Easy -
StatCounter how to stop a flash video with jQuery - CodingForum

Announcement

Collapse
No announcement yet.

how to stop a flash video with jQuery

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to stop a flash video with jQuery

    is there a way to stop a flash video with jQuery??

    I'm using a html5 video with flash fallback.. i'm using the video on a modal pop up..

    when i try to hide the video, the flash video doesn't stop... so before i hide the mask, i must stop or pause the video, then hide..

    i tried various ways, but i can't seem to make them work..


    Code:
    <video id="480p" width="848" height="480" controls="controls" poster="New_Test_Encodes_7-31-11/Test_Encode_Desktop_7-31-11/poster.jpg">
                  <source src="New_Test_Encodes_7-31-11/Test_Encode_Desktop_7-31-11/Marie_Mcray_Test-H264_480p.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
                  <source src="New_Test_Encodes_7-31-11/Test_Encode_Desktop_7-31-11/Marie_Mcray_Test.ogg" type='video/ogg; codecs="theora, vorbis"' />
                  <!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
                  <object id="480pfallback" class="480p" width="848" height="480" type="application/x-shockwave-flash" data="flowplayer/flowplayer-3.2.7.swf">
                    <param name="movie" value="flowplayer/flowplayer-3.2.7.swf" />
                    <param name="allowfullscreen" value="true" />
                    <param name="flashvars" value='config={"playlist":["New_Test_Encodes_7-31-11/Test_Encode_Desktop_7-31-11/poster.jpg", {"url": "New_Test_Encodes_7-31-11/Test_Encode_Desktop_7-31-11/Marie_Mcray_Test-H264_480p.mp4","autoPlay":false,"autoBuffering":false}]}' />
                    <!-- Image Fallback. Typically the same as the poster image. -->
                    <img src="New_Test_Encodes_7-31-11/Test_Encode_Desktop_7-31-11/Marie_McCray_A_O_poster.jpg" width="848" height="480" alt="Poster Image" title="No video playback capabilities." />
                  </object>
                </video><!--480p-->
    My Personal and Portoflio - AndrewFopalan.com
Working...
X