NetStream Video Control button issue

The stop button plays as expected.  The play/pause button plays as expected.  The issue is when you press pause which will cause the play button to appear, then press stop.  the video automatically plays and it shouldn't. I have bolded the control button script for convenience.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("LOB2_0644_new.flv");
stop_mc.onRelease = function(){
playpause_mc.gotoAndStop("playing");
ns.seek(0);
ns.pause();
playpause_mc.onRelease = function(){
ns.pause();
  if (this._currentframe == 1)
        this.gotoAndStop("playing");
        movie_mc.play();
    else
        this.gotoAndStop("paused");
        movie_mc.stop();
    } // end else if
} // End of the function
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj){
duration = obj.duration;
function videoStatus(){
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 424;
loader.scrub._x = ns.time / duration * 424;
var scrubInterval;
loader.scrub.onPress = function(){
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,424,this._y);
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function(){
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus,100);
this.stopDrag();
function scrubit(){
ns.seek(Math.floor((loader.scrub._x/424)*duration));
_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);

before executing gotoAndStop("playing") check if playpause_mc is already on the "playing" frame.   if it is, do nothing.  if it's not, execute your gotoAndStop().
also, you probably want:
   else
ns.play();
        this.gotoAndStop("paused");
        movie_mc.stop();
    } // end else if

Similar Messages

  • M30 - Front Mode and Audio/Video Control buttons don't work

    Hi
    The Front Mode and Audio/Video Control Buttons Don't Work
    Any ideas?
    Thanks

    Hi
    As far as I know the Toshiba Controls utility is responsible for key usage.
    Did you try to install Toshiba Controls?
    Check the Toshiba driver page for this driver.
    Bye

  • Video control buttons not working

    I have an embedded video in an Interactive SWF project I am working on and the video control buttons I have built do not work.  Under the buttons panel, I selected "Video" and then used all the various control options available to create a control panel for my video.  It looks great, but none of the buttons work.   My video file shows up in the appropriate drop down menu and I am 100% sure I have done everything correct, but the buttons do not work.   The video is a SWF file, is that the problem?   Any help would be appreciated! 
    Thanks!
    Steve

    Hi
    As far as I know Toshiba controls utility must be preinstalled if you want to have proper functionality. Check this on your unit.
    Bye

  • Mode, audio/video control buttons on Satellite A20-S103

    Hi,
    Can anyone tell me how to set this controls? (this controls buttons are on front of the notebook.)
    I don't have any more original cd which come with this notebook and i don't know how to set them. If i press any of this keys nothing happens. I'm not shore my be this buttons are related only with Toshiba Media Player, if yes where can i find it and download it?
    Thanks in advance
    Darko

    There are not so many drivers that you can miss it. Just download the driver for "Controls" which version is 2.6.2900 and remove the software you installed before so you can be sure that the downloaded one can be properly installed.
    I dont understand why it doesnt works. If you have XP and you installed it by using the "setup.exe" then I dont really dont know where the problem is..

  • Video control buttons

    How can I disable the video butons on a project? I need the users to navigate only through click buttons.

    Hi there,
    You can go to Project > Skin Editor > uncheck show playback control, that will remove the playbar from the project.
    You can also uncheck few options there if you need the progress bar but not forward and backward button etc.
    Thanks.

  • JQuery slideshow control button issue

    Hi! I am new to jQuery and am trying to adapt a slideshow to fit my layout in Dreamweaver. I have one end of the slideshow working fine, as you can scroll left with no issue. However, on the right control, the button does not seem to be clickable.
    The link to the page is here.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>DAVIDE MARCHETTI ARCHITETTO</title>
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    * Slideshow style rules.
    #slideshow {
              margin: 0 auto;
              width: 702px;
              height: 346px;
              background: transparent url(../images/davide%3E) no-repeat 0 0;
              position: relative;
              background-image: url(../images/Davide-border.png);
    #slideshow #slidesContainer {
              margin: 23px auto;
              width: 702px;
              height: 323px; /* allow scrollbar */
              position: relative;
    * Slideshow controls style rules.
    .control {
      display:block;
      width:39px;
      height:323px;
      text-indent:-10000px;
      position:absolute;
      cursor: pointer;
    #leftControl {
      top:0;
      left:0;
      background:transparent url(images/left_control.png) no-repeat 0 0;
    #rightControl {
      top:0;
      right:-50px;
      background:transparent url(images/right_control.png) no-repeat 0 0;
    #slideshow #slidesContainer .slide {
      margin:23px auto;
      width:700px; /* reduce by 20 pixels of #slidesContainer to avoid horizontal scroll */
      height:300px;
    * Style rules for Demo page
              margin: 0;
              padding: 0;
              color: #000;
              font-family: "Courier New", Courier, monospace;
              font-size: xx-small;
              font-style: normal;
              font-weight: normal;
              font-variant: normal;
    a {
      color: #fff;
      font-weight:bold;
      text-decoration:none;
    a:hover {
      text-decoration:underline;
    body {
      background:#FFFFFF;
    #pageContainer {
      margin:0 auto;
      width:960px;
    #pageContainer h1 {
      display:block;
      width:960px;
      height:114px;
      background:#FFFFFF;
      text-indent: -10000px;
    .slide h2, .slide p {
      margin:15px;
    .slide h2 {
      font:italic 24px Georgia, "Times New Roman", Times, serif;
      color:#ccc;
      letter-spacing:-1px;
    .slide img {
      float:right;
      margin:0 15px;
    #footer {
      height:100px;
    #footer p {
              margin: 30px auto 0 auto;
              display: block;
              width: 703px;
              height: 40px;
              color: #000;
              font-family: "Courier New", Courier, monospace;
    body,td,th {
              color: #000000;
    #pageContainer #footer p a {
              color: #000;
    #apDiv1 {
              position: absolute;
              width: 32px;
              height: 1px;
              z-index: 1;
              left: 130px;
              top: 441px;
    #apDiv2 {
              position: absolute;
              width: 22px;
              height: 4px;
              z-index: 1;
              left: 0px;
              top: 327px;
    #apDiv3 {
              position: absolute;
              width: 3px;
              height: 0px;
              z-index: 1;
              left: 214px;
              top: 328px;
    #apDiv4 {
              position: absolute;
              width: 0px;
              height: 0px;
              z-index: 1;
              left: 442px;
              top: 328px;
    #apDiv5 {
              position: absolute;
              width: 0px;
              height: 4px;
              z-index: 1;
              left: 655px;
              top: 328px;
    #apDiv6 {
              position: absolute;
              width: 49px;
              height: 3px;
              z-index: 1;
              left: 1px;
              top: 0px;
    -->
    </style>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
      var currentPosition = 0;
      var slideWidth = 723;
      var slides = $('.slide');
      var numberOfSlides = slides.length;
      // Remove scrollbar in JS
      $('#slidesContainer').css('overflow', 'hidden');
      // Wrap all .slides with #slideInner div
      slides
        .wrapAll('<div id="slideInner"></div>')
        // Float left to display horizontally, readjust .slides width
              .css({
          'float' : 'left',
          'width' : slideWidth
      // Set #slideInner width equal to total width of all slides
      $('#slideInner').css('width', slideWidth * numberOfSlides);
      // Insert controls in the DOM
      $('#slideshow')
        .prepend('<span class="control" id="leftControl">Clicking moves left</span>')
        .append('<span class="control" id="rightControl">Clicking moves right</span>');
      // Hide left arrow control on first load
      manageControls(currentPosition);
              $('slideInner').animate({
    'marginLeft' : slideWidth*(-currentPosition)
      // Create event listeners for .controls clicks
      $('.control')
        .bind('click', function(){
        // Determine new position
              currentPosition = ($(this).attr('id')=='rightControl') ? currentPosition+1 : currentPosition-1;
              // Hide / show controls
        manageControls(currentPosition);
        // Move slideInner using margin-left
        $('#slideInner').animate({
          'marginLeft' : slideWidth*(-currentPosition)
      // manageControls: Hides and Shows controls depending on currentPosition
      function manageControls(position){
        // Hide left arrow if position is first slide
              if(position==0){ $('#leftControl').hide() } else{ $('#leftControl').show() }
              // Hide right arrow if position is last slide
        if(position==numberOfSlides-1){ $('#rightControl').hide() } else{ $('#rightControl').show() }
    // Hide / show controls
    manageControls(currentPosition);
    // Move slideInner using margin-left
    $('#slideInner').animate({
    'marginLeft' : slideWidth*(-currentPosition)
    setTimeout(autoshow, 5000);
    </script>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body text="#000000">
    <div id="pageContainer">
      <h1><a href="">Davide Marchetti Architetto</a></h1>
      <!-- Slideshow HTML -->
      <div id="slideshow"><!-- TemplateBeginEditable name="EditRegion1" -->
         <div id="apDiv6"><a href="index.html"><img src="../images/hd-main.png" width="178" height="20" /></a></div>
        <div id="apDiv5"><a href="contact.html"><img src="../images/hd-contact.png" width="47" height="19" usemap="#Map2" border="0" />
            <map name="Map2" id="Map2">
              <area shape="rect" coords="-5,-1,62,30" href="contact.html" />
        </map>
      </a></div>
      <div id="apDiv4"><a href="projects.html"><img src="../images/hd-projects.png" width="55" height="19" usemap="#Map" border="0" />
            <map name="Map" id="Map">
              <area shape="rect" coords="-2,-1,60,19" href="#" />
            </map>
        </a></div>
      <div id="apDiv3"><a href="studio.html"><img src="../images/hd-studio.png" width="41" height="19" usemap="#studioMap" longdesc="studio.html" border="0" />
            <map name="studioMap" id="studioMap">
              <area shape="rect" coords="-8,-2,78,22" href="#" target="studio.html" />
            </map>
        </a></div>
        <div id="apDiv2"><a href="news.html"><img src="../images/hd-news.png" width="78" height="19" usemap="#newsMap" border="0" />
            <map name="newsMap" id="newsMap">
              <area shape="rect" coords="-12,-10,164,65" href="#" />
            </map>
        </a></div>
        <div id="slidesContainer">
          <div class="slide">
            <!-- IMAGE ONE -->
          </div>
          <div class="slide">
            <!-- IMAGE ONE -->
          </div>
          <div class="slide">
            <!-- IMAGE ONE -->
          </div>
          <div class="slide">
            <!-- IMAGE ONE -->
          </div>
        </div>
      <!-- TemplateEndEditable --></div>
      <!-- Slideshow HTML -->
      <div id="footer">
        <p align="right"><a href="http://erinpellegrino.com">Website  by Erin Pellegrino</a></p>
      </div>
    </div>
    </body>
    </html>

    This is a stacking-order problem caused by the button being layered under your #slidesContainer div.  That's why it's not accessible.
    See Z-Index Guide
    http://www.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/
    Nancy O

  • How to use the video control buttons on YouTube with voice over

    I have a Macbook Pro and since I am totally blind I use the voice over. I am watching YouTube videos but I can't access the buttons at the bottom of the screen. I can't play/pause the videos or use the slider. I ca't use any of those buttons. Is there sometihng I am missing here?

    I dont know if you will be able to connect other device like PS3 or Wii.
    As far as I know only the Xbox 360 could be connected to a Qosmio and could be used with the Windows MCE.
    I presume this is possible due to connection of Microsoft products; MCE and Xbox360
    To be honest; why you dont take a look into the user manual if this notebook is new to you?
    All details are mentioned in the user manual which is already preinstalled on the notebook.

  • Video camera button issues on iphone4 after iOS5 upgrade

    hi
    I have upgraded to iOS5 on my 1 year-old iphone4.  I have a problem with the video camera function - it doesnt work anymore when accesed from the camera app icon:
    When I tap on the camera app icon I can access the camera screen.  On the camera screen, when the slider above the red button is set to the camera icon, both the red button and the volume-up button activate the shutter and a photograph is taken.  However, when the slider is set to the camera icon, the screen freezes when either the red button or volume-up button is pressed to start recording.
    However, when the phone is locked and the home button is pressed twice to access the camera screen, both the still-camera and the video-camera function normally using either the red button or the volume-up button,
    This has all the appearence of and seems to me as though it is a bug in the iOS5 software
    has anyone else observed this problem with the video-camera function?
    Can Apple offer advice on how (and when) this will be fixed please?
    many thanks
    john

    I have noticed that the camera has seemed slower on the iOS 5 updates. I usually just shut it off then turn it back on and use the quick camera as opposed to exiting the app I'm on and going to the home screen and opening it up.

  • Cannot operate youtube videos in Firefox. Cannot use play, pause, volume, or any of the control buttons.

    None of the control buttons work, it's as if the darn video window is part of the backgroun.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Remove Video Controls and add Replay button on page

    Hello,
    I am trying to create a page in Adobe Edge that loads a video without any controls (play, slider bar, volume, full screen) and then displays a replay button after the video finishes which will start it from the beginning.
    Currently I am able to load the video file and have it play to the end and stop, but I can't seem to get a replay button working.  I also can't find a way to disable controls on the video so they do not show.
    Here is the code I am using to load the video:
    // insert code to be run when the composition is fully loaded here
    $("#Stage").css("margin","auto")
    sym.stop();
    // original video play code starts here
    // create a text object called vid;
    var vid = $("<video width='980' height='300' controls='none'>" +
       "<source src='video.mp4' type='video/mp4' />" +
       "<source src='video.webm' type='video/webm' />" +
       "<source src='video.ogv' type='video/ogg' />" +
       "This browser is not compatible with HTML 5" +
    "</video>"
    sym.$("replay_btn").stop().animate({"size":"absolute", "top":"-265", "left":"7", "opacity":"1"}, 0);
    // stage symbol lookup, and append the above vid object to it;
    // in other words, get the div called 'vcontainer' and attach the video control to it;
    sym.$("vContainer").append(vid);
    // additional options for the video object
    vid.attr('autoplay', 'autoplay');
    vid.attr('preload','auto');
    vid.attr('controls', 'none');
    // End original code
    // this is the insert for the action after the video ends
    $(vid).bind("ended", function () {
    sym.$("vContainer").stop().animate({"size":"absolute", "left":"0", "opacity":"0"}, 0);
    sym.$("replay_btn").stop().animate({"size":"absolute", "top":"394", "left":"19", "opacity":"1"}, 0);
    $("#Stage").on('click','#replay_btn',function(){
    vid.pause();
    vid.currentTime = '0';
    vid.play();
    sym.$("vContainer").stop().animate({"size":"absolute", "top":"133", "left":"0", "opacity":"1"}, 0);
    vid.removeAttribute("controls");
    As you can see, I tried a few ways of disabling the controls, and I also tried adding the replay function to the button itself, but neither of those worked.  Any advice or information on controlling the video control display and replay function in Adobe Edge would be very helpful.
    Thanks!

    In case anyone is interested in the replay button, I was able to find code that worked:
    var myVideo = document.getElementById("activeVideo");
    myVideo.currentTime = 0;
    myVideo.play();
    This is executed when the replay button is clicked.  Just be sure to set the video in question's ID to "activeVideo".
    I am still unable to turn off the controls on the video.  It seems like some of the code I have tried should work, but I haven't had success yet.
    I've tried all of the following:
    var vid = $("<video width='980' height='300' controls='none'>"
    var vid = $("<video width='980' height='300' controls='0'>"
    var vid = $("<video width='980' height='300' controls=''>"
    vid.attr('controls', 'none');
    vid.attr('controls', '0');
    vid.attr('controls', '');
    But nothing has worked so far.  Any help would be much appreciated.
    Thanks!

  • Common control buttons for animation+video

    I wan to be able to embed an animation like one of these http://http://www.texample.net/tikz/examples/tag/animations/, which has its own control buttons,
    alongside a regular video, and have both of them run by a common set of control buttons for play/pause/rewind.
    For example, the video could be a video of an actual object or a ball falling, and the animation could be the animated drawing of some math formula related to the fall of the object.
    Message was edited by: Maesumi

    (1) Is it possible to put 3 buttons, say A, B, C, on a PDF page so that pressing A  will be equivalent to pressing B and C?
    (2) And would Adobe Pro allow one button to be placed  on top of another one?
    The simplistic idea here is to manually perform what a program would do. So I will use A as the master control  and place B on top of the control  button for the video and put C on the control button for animation. Then when I click on A it is as if I have pressed B and C simultaneously.

  • Mirroring video without showing controls buttons

    Hi there!
    I want to mirroring live video recording using my ipod touch 5 throu Apple TV3. I did it already and it works well but I'd like to get ride of the controls buttons appearing on the screen (rec button, settings, etc.), I just want to see the video feed only, is it possible?
    Thanks in advance!
    Cheers,

    Thanks for your reply! I'm affraid you are right!
    I wonder how I can get a smooth live video feed wirelessly to a screen? I can't beleive in 2013 it's not possible to do that without a cable!! Anyway ...
    Thanks again!

  • I am no longer able to use the volume control buttons ( /-/or mute) on my key board in Windows 7

    1. HP Pavilion dm4 XO132AV
    2. Windows 7 64-bit
    3. No error message
    4. No changes were made prior to when the issue occured
    5. Question: I am no longer able to use the volume control buttons ( /-/or mute) on my key board in Windows 7

    Hi,
    Try the following.
    Download the IDT Audio installer on the link below and save it to your Downloads folder.
    http://ftp.hp.com/pub/softpaq/sp50501-51000/sp50856.exe
    When done, open windows Control Panel, open Device Manager and open up Sound, Video and Game Controllers.  Right click the IDT device and select Uninstall - you should also get a prompt to remove the current driver, tick the box to allow this and then proceed with the uninstall.
    When complete, restart the notebook and let Windows fully load.  Open your Downloads folder, right click on the IDT installer and select 'Run as Administrator' to start the installation.  When this has completed, restart the notebook again.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • APPLE MACBOOK PRO SOUND BUTTON ISSUE

    Why doesn't my sound button respond on my macbook I have even reset the PRAM

    Sorry man ok so here is the issue sometimes my audio is really weird like the f10 f11 and f12 keys dont work and Sometimes when I put headphones in I cant control the sound using the buttons or the sound icon on the top bar
    there is no red light I have checked the sound preferences I have reset the PRAM what seems to be working is when I slowly insert headphones in and out of the jack I bought this thing mid 2010 so im not covered by apple care and I hate that it costs $19 just to talk to them and I dont feel like spending $700 on a new logic board I bought this to escape my awful microsoft experiences so do you have any other ideas on this sound issue if you do that would be awesome and If I need to post a video of the issue I will thanks
    ALSO im using the macbook pro 13 inch and this seemed to happen after I downloaded some bamboo tablet software

  • Opened quicktime and dont have any play or control buttons

    i cant play any .mov files.  when i open quicktime there arent any control buttons available nor is there a choice for quiecktime preferences. cn anyone help with this issue?

    The player controls are in the video window of the movie you want to play.  Either drop the movie on to the quicktime player icon or use quicktime player's File menu, Open File to open the desired movie.

Maybe you are looking for

  • Problem in Payment Run with Debit Memos

    Hi Every one I am facing the problem in payment run in which vendor debitmemos were picked up but they are in the exception list. I was observing it in various vendors and have tested in QA that as well when there is an invoice to be paid these debit

  • Individual HDD options?

    Is there any way I can manage the way my system shuts down hard drives on an individual basis? I have several external firewire hard drives that I would like to be spun down at certain times of the day. Is there any way I could spin down these drives

  • Case Refunds? Apple & AT&T Cases only? Come on?

    Are they kidding? After I got my iPhone the AT&T store said there was a problem with the antenna and I should buy a case - BUT because everyone was buying one they were totally sold out (except pink ones - no thank you). They directed me to Best Buy

  • HP 7520 eprint services error

    HP 7520 printer on Windows XP, I get the following error when trying to access eprint services: Ajax submit failed: error =403, Forbidden. Any suggestions? This question was solved. View Solution.

  • Replacement for TABLE_FROM_BLOCK

    Is there any replacement for the procedure TABLE_FROM_BLOCK in 10g or not? as this procedure give error on 10g and works fine in 6i.. thanks in advance for commenting