How to stop sound of video?

Hi,
I have an issue. In the landing page of my site I have loaded a video with standard html5 code. When I click on an anchor link I would like to mute the video, or even better set it to the last frame. (In the video I have removed the controls it is a fullscreen landing page video)
Example:
www.mysite.com (plays the video us usual)
www.mysite.com#howto(stops the video and set it to the last frame or mute it)
Hope I made it clear...
Thank you all in advance,
Frank

You could add an onclick javascript event to pause the video on the anchor links. The anchor link should look something like...
<a href="#anchor_id" onclick="document.getElementById('my_video_id').pause();">My Anchor Link</a>
After further review, you could just mute it  I suppose, it doesn't seem as clean though since the video will still be running...
<a href="#anchor_id" onclick="document.getElementById('my_video_id').muted = true;">My Anchor Link</a>

Similar Messages

  • How to stop autoplay of videos?

    June 2013: videos on websites start playing without my permission, how to stop this?
    What I tried:
    I uninstalled Adobe Flash (disabling Flash add-on didn't work), existing "stop autoplay" add-ons are no longer working according to reviews, tried solution described in "How can I stop videos on websites from automatically playing?" (Type in the address bar: about:config Then search for: plugins.click_to_play Double click and it will be set to true) - doesn't stop videos from playing either. Sent feedback to FireFox about the issue.
    From what I had read in reviews, this is not only about Flash: YouTube disabled add-ons and searches for anything that can play videos installed in Windows, including using HTML5 for this. Have no information how other websites do it.
    How to stop this?
    Thank you.

    For those of you who do not wish to use StopTube, the click to play plugin in the about:config works. You may just be missing one final step. Once you set the boolean to true, navigate to your firefox addons page and look for shockwave (adobe) flash plugin or whatever you use to play videos. Select the drop down to "ask to activate" and there you have it. When the boolean was set to false, the "ask to activate" dropdown option was unavailable.
    Hope it helps.

  • Video file how to stop and find Video is completed.

    hi
    we have load the .flv file the following code:
    //===================================
    var vid:Video = new Video(310, 174);
    vid.y=24;
    vid.x=308;
    addChild(vid);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    vid.attachNetStream(ns);
    var listener:Object = new Object();
    listener.onMetaData = function(evt:Object):void {};
    ns.client = listener;
    ns.play("Best Ford Commercial Ever!!!.flv");
    //===================================
    video play fine. i using close btn close the Video. the folloing code:
    //===================================
    removeChild(vid)
    //===================================
    problem:   1.  Video will be closed but audio is running. How to stop the audio and video.
    2. How to trace the video is completed.
    thks

    Use NetStatusEvent.NET_STATUS event listener for netstream and trace(event.info.code);
    if info.code is NetStream.Play.Stop the video is finished playing.
    use NetStream.close() method to Stops playing all data on the stream

  • How to stop sound from playing everytime we go to 1st frame ?*

    Hi everyone, my app has 3 frames and a sound playing on background so everytime i go to 1st frame the music play's over himself,
    is easy to get 5 instances of the music playing at same time.
    How to stop this behavior ?
    Music file imported to library.
    Sound Linkage: export for actionScript
    Sound Linkage: export in frame 1
    Any help are welcome
    Flash CS6 - AIR 3.4 Android and iOS > CODE:
    //sound
    var bgSound:BGLoop = new BGLoop();
    var channel:SoundChannel=new SoundChannel();
    playMusic();
    //making mute;
    soundBtn.addEventListener(MouseEvent.MOUSE_UP , mute);
    function mute(event:MouseEvent) {
        //removing mute function then adding unmute function to same button
        soundBtn.removeEventListener(MouseEvent.MOUSE_UP , mute);
        soundBtn.addEventListener(MouseEvent.MOUSE_UP , unMute);
        //making symbol to visible;
        soundBtn.gotoAndStop(2);
        //set the volume false;
        SoundMixer.soundTransform = new SoundTransform(0);
    //making unmute
    function unMute(event:MouseEvent) {
        soundBtn.removeEventListener(MouseEvent.MOUSE_UP , unMute);
        soundBtn.addEventListener(MouseEvent.MOUSE_UP , mute);
        soundBtn.gotoAndStop(1);
        //set the volume true;
        SoundMixer.soundTransform = new SoundTransform(1);
    function playMusic():void {
        channel = bgSound.play();
        channel.addEventListener(Event.SOUND_COMPLETE, loopMusic);
    function loopMusic(e:Event):void {
        if (channel != null) {
            channel.removeEventListener(Event.SOUND_COMPLETE, loopMusic);
            playMusic();

    Another way to do this is to create a boolean right off the start. Lets say var createMusicTrack:Boolean and set it to true
    Then load your music and start playing it and at the end of that load code add a line that sets the boolean to false so that when you come back to frame 1 the boolean will be false and the code will not load and play, but this could be problematic too. Djnr suggestion is better for your purposes.

  • How to stop FCP exported videos from having a popping noise?

    I have made a video in FCP X and when I export the video there is popping in the audio. How can I change the video audio to aiff so it wont pop? It's the actual video's audio, not imported sound. I know how to split the audio and video, but it did not help me at all. I have tried everything I can think of including changing the sound from surround to stereo. Help would be greatly appreciated. This is the first time I have run into this problem.

    It actually allowed me to export a different one, but not this one.

  • How to combine sound with video to an AVI Using IMAQ?

    I need to combine sound with video I capture and write it out as an AVI. Is there anyway in Labview to combine sound with and AVI? Or an easy to use third party product?

    Hello,
    The AVI tools that are provided with Vision allow for data to be added to your video.  Sound information can be stored this way, but if you are looking for a way to add audio support to your video (such that it will play the sound file when the video is played in Windows Media Player or other applications) you may want to look into finding a shareware or freeware product that can accomplish this.  LabVIEW does not have tools specifically targetted to this operation.
    Good luck,
    Robert

  • How to stop sound playing at a embed FLV video

    Hello,
    I would not a piece of code, which will stop the sound
    playing in a embed
    flv video. Following situation:
    I have a "main.swf" file which loads two swf as following:
    loadMovie ("Teenies.swf", _root.contenedor);
    loadMovie ("CananIntro.swf", _root.mc_video);
    The "CananIntro.swf" includes (embed) the flv video "canan
    PART1.flv".
    I would need the action sript code to make the sound at
    "canan PART1.flv" ON
    or OFF.
    Thank you for any hint.
    Walter

    Another way to do this is to create a boolean right off the start. Lets say var createMusicTrack:Boolean and set it to true
    Then load your music and start playing it and at the end of that load code add a line that sets the boolean to false so that when you come back to frame 1 the boolean will be false and the code will not load and play, but this could be problematic too. Djnr suggestion is better for your purposes.

  • How to stop and (rewind) videos.

    Hi.
    I am trying to create my first 100% to be the page of a Multi-Artistic Performance i have with some friends.
    All the content of the site is being displayed inside a Movie Clip (called "pageContainer_mc").
    I have then 6 diferent pages, each with different content that load inside the "pageContainer_mc" acording to the use of the menu buttons.
    the navigation worked fine.
    But now i ran into a problem that i cannot find how to solve.
    Inside 4 of the 6 pages i would like to put a video.
    I have put it there with the FLVPlayback and then created Play, Stop and Pause Buttons.
    The problem is, that when i click to go to another page the video continues playing back and then, when i come back to the previous page it is still going...
    What i would like is, for instance, when i am at Page2 and click to go to Page3, then the Video on Page2 will stop.  Once i click back to Page2 i would like that the video is again ready to start from the Begining (and not the place where it stoped previously).
    The code animating the menu and loading the diferent contents is on Scene 1. The code animating the buttons for the videos is on each page.
    Any ideas on how to achieve this?
    you can take a look at the .FLA file here:
    http://www.4shared.com/file/9Zos4HVd/four_elements.html?refurl=d1url
    Thank you for your time and help.

    well, if there is someone out there with the same kind of problem, this seems to have done the trick
    FLVPlayback.addEventListener (Event.REMOVED_FROM_STAGE, killVideo);
    function killVideo(e:Event){
    FLVPlayback.stop();

  • How to stop the commercial video and Karspersky AV

    Hi, I just bought my PC today and I'm a bit T'd off by the commercial video that kicks in within a very short time if I don't move the mouse.  Is there a way of stopping/re-configuring this please.  Also it keeps asking me to activate the Karspersky antivirus software which I don't want.  (I'm new to windows 7)
    Solved!
    Go to Solution.

    Hi Angie,
    This is just a quick comment to add to sarbin's good advice. Sometimes even though it appears that an anti-virus has been removed, there may be remnants left in various places such as the registry.You did not activate the software or update it, so that makes it eaier to remove, but it might be good to run Kaspersky's Removal Tool as well. There is more info here: http://support.kaspersky.com/faq/?qid=208279463
    ThinkPad: T530 / X1 Gen 2 / Helix - Yoga: Tablet 2 Pro (Win) / Yoga 3 Pro
    If you find a post helpful and it answers your question, please click the "Accept As Solution" button.
    Lenovo Advocate ~ I am not employed by Lenovo or Microsoft. I am a volunteer.
    Microsoft MVP - Consumer Security
    SpywareHammer

  • How to extract sound from video

    Is there a way to extract the sound track from a video file (avi, etc) using java ?
    I've searched everywhere for this and it seems that it can't be done with java, only with c# and others.... This would be annoying, since i really like java and wouldn't want to write C# code...
    The only 'solution' I've found is running an external application (with Runtime.exec())...
    If I'm wrong please point me in the right direction.
    Thanks

    "Use the right tool for the job." If you know it can be done easily with C#, go with it. It's widely accepted that Java is not very good for multimedia applications.
    But if you really have to do it in Java, perhaps JMF can help.
    http://java.sun.com/products/java-media/jmf/

  • How to record sound using video setting of camera?

    using camera as a video recoder works fine but no sound. is sound recording with video possible? Ipad 2

    Hallo there,
    I am intrested on the same topic but I am not so good to modify the sound sdk demo. Is there anyone willing to share some code?
    Thanks
    Matteo

  • How to get sound on videos

    Have 11.7 flash but no sound---is shockwave not part of adobe flash??   I have taken acobat off pc and was told this was not necessary

    http://forums.adobe.com/thread/1195540

  • How to playback sound and video in Adobe Reader in Linux?

    Hi one of the killer features of Adobe Acrobat is the ability to embed multimedia content in .PDF documents. (I do hope Adobe extend this functionality).
    In Windows Adobe Reader plays these files back just fine (so for example you can make an audio book), but in Linux whenever a .PDF is opened containing multi media content, the application complains that no supported media player is installed.
    I have real player installed, as this appears to be the only supported media player - but the acroread executable appears to be unable to find it. (Or at least it seems to not be able to use it). Where exactly is it looking for the executable? (Or is it looking for it at all?
    Is there a way to play back embedded media content in PDF documents when using Linux?
    I'm using Ubuntu 7.10.

    Hello,
    If you would like to be a part of the pre-release program for the next release of Adobe Reader on Unix, please contact Anupam Garg (agarg at adobe dot com), the Program Manager for this project.
    Regards,
    Rishi

  • How stop ambient sound when video sound starts?

    I play ambient background music in my movie. I've written
    Actionscript to attach an mp3 and control the overall sound volume.
    The code to control the overall sound is:
    _global.allSounds = new Sound ();
    _global.allSounds.setVolume(50); for example
    However, in my movie there are also video clips (w/sound)
    that I have embedded using the FLVPlayback component and one of the
    designer skins. The problem? I don't know how to stop the ambient
    music when the user clicks the "Play" button on the skin. Both the
    ambient sound and video sound play at the same time creating a
    cacophony. And if the user happens to click the "mute" button on
    the skin, my _global.allSounds.setVolume() commands have no effect.
    How do I integrate the way sound is controlled by
    Actionscript vs. the way it is controlled by video components?
    Thanks.

    The obvious answer would be: remove the Beep VI that's probably in there. Please show us your code.

  • How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share form

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

Maybe you are looking for