1 Reply Latest reply: Jul 31, 2012 7:53 AM by adninjastrator RSS

    Video inserted into AP Element - Audio keeps playing on rollout

    Macnimation Community Member

      Hi,

       

      I have created an AP Element that on rollover a thumbnail video plays of the full video.

      This works fine.

      However on rollout, the video does disappear, but the Video Audio keeps playing.

       

      How do I stop the Audio playing when the user rolls out of the link?

        • 1. Re: Video inserted into AP Element - Audio keeps playing on rollout
          adninjastrator CommunityMVP

          It keep playing because your rollout action doesn't specifically turn off the audio (it only makes the video invisible). It probably doesn't stop the downloading of the video either. So while the video isn't displaying, it continues to download the entire file..... not a good idea!

          Depending on how you are playing the video, you'll have to devise a means of controlling the video (NOT just making it invisible).

          For example:

          If the player is a Flash player using NetStream, a simple ns.close(); button would work.

          If a JWPlayer, you can use javascript to stop the player, something like this:

          <a onclick="jwplayer().stop();"...........

          I know that's an onclick event, but you should get the idea.

          You'll have to adapt the principle to match your specific vid player.

          To eliminate this very common video player issue, you MUST stop the video (and audio) as the very first action, BEFORE you make the video player disappear.

          Best wishes,

          Adninjastrator