Make Video Pause When Clicked?

Hi, I have a flash video that is set to autoplay when the page loads. We've just implemented thickbox/lightbox system on it now so when you click on the video it enlarges into that new frame. Problem is, when that's done the video/audio is still playing while the video in the thickbox is playing too. This leading to ineffective listening. Does anyone know a code that would trigger the video to pause when clicked anywhere on the video screen?
Right now the videos being tested at this link - http://edlevinjewelry.com/indexTEST.html
I don't currently have the video linked up to lightbox, just a link above the video to expand.
With FLVPlayback,this is my current code (it's currently coded and set up so the video autoplay starts at 52 seconds)...
import fl.video.MetadataEvent;
import fl.video.VideoProgressEvent;
import fl.video.*;
my_FLVPlybk.addEventListener(VideoEvent.COMPLETE, rewind);
function rewind(eventObject:VideoEvent):void {
    my_FLVPlybk.seek(52);
    my_FLVPlybk.play();
var fp:FLVPlayback = my_FLVPlybk;
fp.addEventListener(VideoProgressEvent.PROGRESS, videoProgressHandler, false, 0, true);
fp.addEventListener(MetadataEvent.METADATA_RECEIVED, metaDataHandler, false, 0, true);
fp.autoPlay = false;
var startSeekTime:Number = 52;
var videoDuration:Number;
var videoSeeked:Boolean = false;
function metaDataHandler(event:MetadataEvent):void {
     if(event.info.duration != null){
          videoDuration =event.info.duration;
function videoProgressHandler(event:VideoProgressEvent):void {
     var fp:FLVPlayback = event.currentTarget as FLVPlayback;
     var bytesLoaded:Number = event.bytesLoaded;
     var bytesTotal:Number = event.bytesTotal;
     if( !isNaN(videoDuration)){
          if( (bytesLoaded/bytesTotal) >= ( (startSeekTime+4)/videoDuration) && !videoSeeked ){
               videoSeeked = true;
               fp.seek(startSeekTime);
fp.play();

kglad -
When I plugged in the code below, it had these 3 errors:
1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
source - if(!my_FLVPlybk.toggle){
1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
source - my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
1119: Access of possibly undefined property toggle through a reference with static type fl.video:FLVPlayback.
source - my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
I put it in the actionscript, was there anywhere specific I was supposed to plug it with the rest of the code?
Thanks for helping with this.
- Sean
= = =
stage.addEventListener(MouseEvent.CLICK,videoF);
function videoF(e:MouseEvent){
if(!my_FLVPlybk.toggle){
my_FLVPlybk.pause();
} else {
my_FLVPlybk.play();
my_FLVPlybk.toggle=!my_FLVPlybk.toggle;
= = =

Similar Messages

  • Video pauses when clicking out of premiere? can i get it to continue playing?

    Hi all....
    I am watching a video taken from a helicopter and need to track this in google earth.... everytime i click out of the adobe premiere window.. ie. in to google earth, the video pauses in premiere... i really want this video to continue running whilst i navigate in google earth... is there a way i can stop adobe pausing?
    thanks in advance!!
    Neil

    No. Just use Google Earth on another computer next to the PR machine.

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • Webcam Video pauses when recording sound from microphone

    I have a strange problem which i am encountering when recording and playing back webcam video.
    I am developing a small application for recording webcam video and audio using FMS and playing it back later from FMS.
    I am using AS 3.0, FMS 3.5 and flash CS 5.5
    When i record only the video from webcam without sound from microphone the playback is fine. But when i record microphone sound also along with the video, and when i playback the video pauses right where the sound starts for 10 sec or more and then it starts playing. Towards the end the video pauses again and only the sound goes on till the end.
    I tried setting the buffertime to 50 before ns.publish and ns.play but that didnt help either.
    I tried using the flvplayback component and even their it pauses.
    Any help is appreciated.

    Haha, that is such a genius use of common sense! Thank you, I didn't think of that. I certainly will!
    However, does anyone know if there is a way of adjusting the program of garageband to fix this issue? Using headphones certainly fixes the symptoms of my problem, but it doesn't actually address the root cause: garageband should only be recording the input through the microphone. I shouldn't need to wear headphones. (And doing so inhibits my ability to clearly hear myself play, and stay in tune.)

  • Mplayer2 pause+unpause makes video stutter when VDPAU is on

    Hi there,
    since the beginning of the week, mplayer2 is behaving strangely: pausing for some seconds (3-4) then unpausing will make the video stutter horribly (while audio is still fine).
    Same with any mplayer2 or mpv version. mplayer1 is fine.
    I could figure something out: mplayer1 defaults to GL video output, whereas mplayer2 / mpv will default to VDPAU. Switching to any other VO driver than VDPAU works fin indeed. However using vdpau with mplayer1 works fine. But perhaps mplayer1 tells it is using vdpau but cannot, so it falls back to using gl without telling.
    I'm using radeon, and mesa got updated a few days ago to version 9.1.4. I've been experimenting this issue since then. I do not know if mplayer2 was using vdpau automatically before. If I have some time I'll test with 9.1.3 to see what VO mplayer[12] use.
    As a temporary fix I've set 'vo=gl' to ~/.mplayer/config.
    Has anyone the same issue with another video driver? Have you tested with mesa 9.1.3?
    This could help deciding who is to blame here.

    I did test it with Mesa 9.1.3, and mplayer2 still defaults to vdpau. The unpause issue persists.
    Maybe I'm missing something here, but it seems like Mesa did not trigger the change. I'm wondering what update changed mplayer behaviour during the last 2 weeks.

  • Pause when clicking space between clips?

    Timeline.  I've just done an action, like shorten a clip, or move a clip.  Then I click the space between two clips ... with the idea of deleting the space and joining the clips.  But there is a pause of a few seconds before the click will actually highlight the space.  I click, nothing happens, click again, nothing happens, maybe the third or fouth click it takes, then I can delete the space.
    I've noticed this on two separate edit suites loaded with FCP 7.  I don't remember this ever being the case before in FCP.  Actually, I've been putting up with it for the last six months or so.
    I'm just wondering if anyone else is having the same experience?  And if there is a logical explanation?
    Ben

    Looking at your response, I see several items that might have red flags:
    NVIDIA Ge Force GT 120 graphics card ... mmm ... actually running through a Kona card I see.
    The project is in HDV. 
    The project is on a 2.5" drive, which I suspect is not a 7200 rpm.
    Yes, your Mac Pro has much greater bandwidth, but the clockrate is about the same, so it depends on how many cores are getting used... but I seriously doubt it's the issue.
    Although the video card is touted by the DaVinci Resolve crowd as "optimal", Apple claims that the ATI 5770 is 5X faster. Most '09 Mac Pros for video editing got one. Moreover, the problems you mention with playback are suspicious. I use a 5770 in my '08 Mac Pro (2X 3.2GHz Quad core Xeon) and easily run two 27" monitors and my 37" HDTV (when it is not is in grading mode via MXO2 Mini.)
    Irrespective of its "native" status, HDV imposes a very significant load on the processors. You may want to try transcoding the HDV to ProRes 422. The cost in transcode time and filesize is usually outweighed by the faster rendering times, larger colorspace for grading, and lack of "conform" on output.
    I'd revise my position and suggest that when you sort out the display issues and transcode to ProRes things will improve significantly
    Ben Low wrote:
    Could it be me?  Getting older?
    Absolutely! 

  • Application makes a sound when clicking alt + any key

    I have an EventListener that catches the key down and key up events to see if Alt is being pressed for certain hotkeys. I noticed when you hold down Alt + anykey the application makes a sound. I thought this may have been from what I had overwritten, but I opened an application that had nothing in it and hit alt + any key and it made the same sound. Where is this sound coming from and how can I remove it?

    I don't think so. If I hit Alt + 1, while no AIR app is running it doesn't make the sound.
    If I click Alt + 1, when any AIR app is running it makes the sound.

  • Videos pause when i connect external sound card

    Hey guys,
    this problem started a week ago -+, before, everything worked perfectly.
    but in the last week, i can watch video's on youtube or hear songs on Rdio then pause them  connect the card and then when i press Play it shows a loading sign til i disconnect the card. just cant hear or watch online videos/songs. its even happend on Itunes.
    hope you know somthing about that, just say for more information.
    - OSX Yesomite 10.10.2
    - the card connect with USB cable
    thank
    Noy
    MacBook Air, OS X Yosemite (10.10.2), 2014

    I would reset the SMC first,
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on the computer.
    Hers's a link regarding firewire and usb quick assist
    http://support.apple.com/kb/HT1151?viewlocale=en_US
    Are you using the same firewire cable when the second device works? Could it just be a bad cable?

  • Video pauses when streaming from ix2-dl from windows or WD Live TV

    When streaming music videos or any video from my Lenovo ix2-DL to my WD Live TV or PC the videos play but then pause then will pick up a bit further down. In Windows if I refresh my Explorer window it acts like the share isn't there then it reconnects and the video will continue to play. Reboot of computer doesn't fix this. And since this also happens when streaming to my WD Live TV it's not related to windows.
    Firmware Version:4.0.8.23976
    Status is fine. No errors.
    Media Sharing is enabled on all shared folders.
    Media Server is enabled.
    Media aggregation is disabled because I don't want it to scan my other computers for content etc.
    Solved!
    Go to Solution.

    Nevermind. I believe it has to do with the .flv extension on videos I stream. I didn't notice it before because I would just stream them to my computer. If I stream mp4 they work fine, but the flv extension doesn't work. Those videos will pause every so often while streaming to my wd live tv.
    Time to convert a bunch of movies.
    Thanks and you can close this out.

  • AIR SDK 16 (and 15): live stream video pauses when from non-iOS to iOS

    Using either sdk 15 or 16, when live streaming video through media server, if I go from iOS to iOS devices, no issue. If I go from non-iOS device to iOS device, the non-iOS device receives the video and audio fine from the iOS device, but on the iOS device the video it receives freezes (almost from the start, after a couple of frames, then long, long pause of freeze - minutes long - then a few more frames, then freezing, etc.) - the audio is fine, it appears to be just the video. I have tested this with android to android (fine), android to desktop (fine), iOS to iOS (fine), android to iOS (freezing video only on iOS side), iOS to desktop (freezing only on iOS side).

    VideoTexture is a HUGE improvement for video on Windows and iOS. I am testing on Windows 8 and iPhone 6, but VideoTexture is still in beta and will take a few more months to get the kinks worked out. It is working for me on iOS sometimes, and whenever it works the pixels have a transparency applied to them. I have logged that pixel transparency bug here:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3936111
    Also you will notice that Adobe has mentioned the following in the known issues section:
    [Air Desktop] [Video Texture] Video is not playing if texture is used as ConcreteTexture of starling.(3949908)
         (Release Notes | Flash Player® 17 AIR® 17)
    On iOS the VideoTexture seems to work for MP4s loaded directly from the file system, but RTMP is not ready yet. But when it is ready, I suggest that you adopt it immediately since VideoTexture is where Adobe is focusing it's video efforts.

  • Trying to makea report run when clicking a button on a form

    I am trying to run a report by clicking a button on a form (Forms 9i)
    I have modified the registry settings for FORMS90_PATH and REPORTS_PATH to include my development directory, and now at last the report is generating. However the command to display the form in a window is not doing anything at all - no error even. Can someone please help, the trigger code for my button is displayed below:
    DECLARE
         rep_result VARCHAR2(30);
    BEGIN
         SET_REPORT_OBJECT_PROPERTY('INVENTORY_REPORT', REPORT_FILENAME, :GLOBAL.project_path || 'Inventory.rdf');
         SET_REPORT_OBJECT_PROPERTY('INVENTORY_REPORT', REPORT_DESNAME, :GLOBAL.project_path || 'Inventory.htm');
         rep_result := RUN_REPORT_OBJECT('INVENTORY_REPORT');
         --MESSAGE('Rep result: ' || rep_result);
         WEB.SHOW_DOCUMENT('file:///' || :GLOBAL.project_path || 'Inventory.htm', '_blank');
         --WEB.SHOW_DOCUMENT('file:///C:\Temp\Dev\Inventory.htm', '_blank');
    END;
    thx
    adam

    Hi,
    may be this could be helpful for you:
    You have to include the following code to execute a report:
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    BEGIN
    repid := find_report_object(report_name);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,report_server_name);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := report_object_status(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    if rep_status = 'FINISHED' then
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    else
    error report not exists
    end if;
    END;
    Also you have to create the report server with the command:
    "rwserver - install service_name autostart=yes
    report server name must be the same that appears in the code above
    You must add the report to run in the REPORT object type in your .fmb and put there with the same name
    The report server to install ought to be the one and only in you network to avoid mistakes...

  • Stop video audio when clicking on new page of site

    I really really need help with this as I've been stuck for a while. The situation is I have a number of pages with a single movie clip on each, however once the movie is playing and you click the home or contact buttons for example, it will go to the correct page but the movies sound keep playing in the background.
    So I've got a code someone was helping me out with, but I just get an error sayign tanmovstop() does not have a body. I'm very new to action script so am very lost! If anyone can help I'll be extremely grateful.
    The code on the sites main buttons is as follows, with tanmov being the movie whos sound I want to stop:
    home.addEventListener(MouseEvent.CLICK, clickhome2);
    function clickhome2(event:Event):void {
        trace("home");
    tanmovstop();
        gotoAndStop("home");
    films.addEventListener(MouseEvent.CLICK, clickfilms2);
    function clickfilms2(event:Event):void {
        trace("films");
    tanmovstop();
        gotoAndStop("films");
    about.addEventListener(MouseEvent.CLICK, clickabout2);
    function clickabout2(event:Event):void {
        trace("about");
    tanmovstop();
        gotoAndStop("about");
    contact.addEventListener(MouseEvent.CLICK, clickcontact2);
    function clickcontact2(event:Event):void {
        trace("contact");
    tanmovstop();
        gotoAndStop("contact");
    var tanmov:FLVPlayback;
    function tanmovstop()
    if(tanmov != null){
    tanmov.stop();

    yeow, i can't believe how many threads you've started on this and how long you've been working on it.
    if you want to hire me to solve this, send an email via my website:  www.kglad.com

  • My Ipod used to pause when I turned off my car, now (after I updated it) it keeps playing and the battery dies. What setting do I change to make it pause when I turn my car off?

    I feel like I have tried ever stupid settings change there is, but apparently I havent because it isnt working! Helppppp!

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • IPOD Touch pausing when power adaptor cut off

    I listen to my IPOD Touch in my car using an Apple power adaptor. With my two previous IPODs, when I turned off the car, cutting power to the IPOD adaptor, the IPOD would pause, allowing me to resume play from that point when I returned. But my Touch keeps right on playing and I have to manually pause it before getting out of the car. Is there a setting that will make it pause when it loses external power?

    Place the iPod in Recovery Mode and restore via iTunes.
    If not successful, try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • I rented a movie on my iPad. It began to download but then it disappeared. The movie appears in my rented videos, but when I click it, it says, "video rented but not downloaded. Go to downloads to manage downloads". Where did my downloads go?

    I rented a movie on my iPad. It began to download but then it disappeared. I freed up a ton of storage space to make sure I had the room for it. The movie appears in my rented videos, but when I click it, it says, "video rented but not downloaded. Go to downloads to manage downloads". Where did my downloads go? I re-booted my iPad, signed off/on iTunes etc. I can't find a folder with downloadable items anywhere. ITunes just tells me, "you've already rented this video. Do you want to rent it again?" What happened to my movie?

    Did you check the Videos app?

Maybe you are looking for

  • Considering Apple TV.

    My environment is as follows - can you recommend me best way to hook up ATV. 1) HDTV - currently hooked up to a "media PC (WinVIsta)" BD Player, DVD Player, Cable Box, 2) Audio - 5.1 Sony Receiver with JBL Speakers. TV in analogue, Optical In from BD

  • ORABPEL-05002 or ORA-03111: break received on communication channel

    We are on 11.1.1.3 and one of the SOA processes needed to make an oracle stored procedure call...The stored procedure call was returing a nested object type as a a parameter...500 rows at a time...in a loop. The first few iterations would work but at

  • Can't delete old files from used TC

    I bought a 500GB time capsule on ebay. No problem with the wireless, but I can't do a back up because it looks like the files from the old user are still on there.

  • Whats happened to applescript runner app in 10.9

    My applescripts wont run under Mavericks because they are calling for Applescript Runner App which does not appear to exist in 10.9. How do you call a script from within a script without this ?

  • Discoverer 10g Connectivity

    Hi I'm trying to connect to discoverer installed in network (say A) through another network (say B).Both viewer and plus works fine when accessed within the network A but when i try to connect through B (using B_ipaddress) which is NATED to A_ipaddre