While stop and resume movie have problem

Hi everyone,
I am created a movie player with JMF.
While playing movies when i stop my movie and again resume playing then my movie starts from another point.
Suppose i stop my movie after playing 5.30 minute and stop,
When i resume playing then it starts from 5.32 minutes.
So where is my 2 seconds movie gone.Please help me.
This is my code.I am opening mpg files.
public void openImage(URL videoPath)
try
////code for opening my movie
if (player != null)
player.close();
player = Manager.createPlayer(videoPath);
player.addControllerListener(this);
player.realize();
catch(Exception e)
System.out.println(e);
public void play()
player.start();
public void stop()
player.stop();
///my listener
public void controllerUpdate(ControllerEvent c)
          if (player == null)
               return;
          /////adding visualComponnt to jpanel
          if (c instanceof RealizeCompleteEvent)
               if ((visualComponent = player.getVisualComponent()) != null)
                    player.prefetch();
                    updateUI();
                    add(visualComponent);
          ////stop code after end of movie
          if (c instanceof EndOfMediaEvent)
               if (player != null)
                    player.stop();
                    player.deallocate();
               setPlayButton(this);
     }

Calling "stop" on the player isn't the same as the concept of pausing it. It takes the player and removes the syncronization of the media and the underlaying clock.
If you want it to restart at exactly the same time it was when you stopped it, you have to reset the media time using setMediaTime to whatever time you want it to start up at.

Similar Messages

  • Disconnected my iphone after software upgrade but while photos and my movies were still downloading. Now I get an error message that iTunes can't connect to the phone. How do I solve this?

    Disconnected my iphone after software upgrade but while photos and my movies were still downloading. Now I get an error message that iTunes can't connect to the phone. How do I solve this? I am using a PC and have version 4.3.4 on my iphone 4.

    In order to use ''nxm://'' links, Nexus Mod Manager must be installed and associated with the ''nxm'' protocol.
    * http://www.nexusmods.com/skyrim/mods/modmanager/
    In case of problems with this third-party program, please refer to its support forum:
    * http://forums.nexusmods.com/index.php?/forum/1413-nmm-code-development-chat

  • I just installed lion and suddenly I have problems starting the computer

    I installed lion on my mac a week ago (mac 20.5 inch) and suddenly I have problems starting the computes, sometimes, but lately almost always, it takes a long time to start up (more than 2 min) and then the keyboard does not work and the mouse works partially i.e. the cursor moves but does not respond to clicks, also, when I move the cursor over the dock it does not appear the tag with the application name I'm over, basically I can't do anything except reboot the hard way. After a few times it usually stops happening but I don't know why exactly. Sometimes after rebooting a message appears indicating that I restarted the computer after having a problem and asks me if I want to open all the applications that I had in the previous session (in this case none) when I say yes the problem keeps happening but when I say no the problem stops. To make thins even more difficult just now it didn't let me choose "cancel" because the keyboard and the mouse have the same problems I explained before.

    Are they each separately paired with the computer via BT preferences?
    You also can check your Startup Disk preferences by selecting your startup volume then clicking on Restart. Does this cause a faster restart?
    You might also try booting into Safe Mode then booting normally. Safe mode takes considerably longer for startup and will require you enter your password.

  • Stop and Resume client deletion

    Hi all,
    I have a strange requirement here, I am planning to execute client deletion using parallel processing.  I will be executing the deletion during weekends Saturday & Sunday. In case, if the deletion still continue on Monday morining, I want to cancel the deletion ( Logically STOP) and resume in next weekend..
    Since, client deletion will resume from the point where it stopped, i would like to know the standard procedure of cancelling the deletion job. Does SCC5 or SCC3 provides any option to STOP the active jobs? If not, which is the correct way to stop the active deletion process?
    Please share your experience & thoughts on this line.
    regards,
    VInodh.

    Hi Vinodh,
    Set a background job for client deletion using transaction SCC5 and stop the active job when you want to....using SM37>Job>Cancel active job ....At this time the client is almost completely deleted. If you need to, you can restart the deletion. Because the users must have been deleted at this point, log on as user SAP* and use the initial password PASS and continue with client deletion.
    Award points accordingly,
    Regards,
    Raju.

  • I accidentally deleted my iPhoto a while ago and don't have money to purchase it is there any way to get it back or download it for free?

    i accidentally deleted my iPhoto a while ago and don't have money to purchase it is there any way to get it back or download it for free?

    Howdid you buy iPhoto originally? Did it come preinstalled on a new macwith MacOS X 10.7 or later? Then you can download it from the Purchased tab of the AppStore:
    See:  OS X: About OS X Recovery
    Restoring iLife applications after Internet Restore of OS X
    If your computer came with OS X Lion or later and you erase your hard disk and install OS X, you can download iPhoto, iMovie, and GarageBand from the Mac App Store.
    Choose App Store from the Apple menu.
    Enter your Apple ID and password when prompted.
    Click Purchases.
    If you haven't previously accepted your bundled iLife applications within the Mac App Store, you should see your iLife applications appear in the Accept portion of the screen. Click Accept.
    You may be asked for your Apple ID and password once again. Your iLife applications now move to the Purchased section. These applications are part of the software that came with your computer. Your account will not be charged for them. Click Install to complete installation of your applications.
    If your Mac came with an earlier system, reinstall iPhoto from the bundled application installation disk.
    And if you bought an iLife disk, use that to reinstall.

  • WHENEVER i SURF THE WEB AND PLAY ITUNES MUSIC, THE ITUNES MUSIC STICKS AND SKIPS AND STOPS AND STARTS. i HAVE BRAODBAND COnNECTION AND AN ADEQUATE MODEM

    WHENEVER i SURF THE WEB AND PLAY ITUNES MUSIC, THE ITUNES MUSIC STICKS AND SKIPS AND STOPS AND STARTS. i HAVE BRAODBAND COnNECTION AND AN ADEQUATE MODEM

    I am experiencing the same problem, not being able to access internet at the same time as streaming iTunes music through an Airport Express.
    Our configuration consists ot; an iMac G5 and an AirPort Express connected to a cable modem.
    This problem first occurred using iTunes 7.0, now updated to iTunes 7.0.1, along with OS X 10.4.8
    I have followed the Apple troubleshooting guide - without success to this point. The internet can be accessed (although slower than usual). However when the AX is set, using the AirPort Admin Utility to provide an AX provided IP address to the computer, the internet disappears, but iTunes can play over the network via the AX station.
    I am suspecting a damaged preference file, or something of that nature, but am not sure what file(s) to be searching for.
    Any help here would be appreciated.
    thanx

  • When i open facebook and only text shows and all is to the left and when i open hotmail nothing shows on my screen and other webpages have problems also when click at a link all the text comes up also to the left in my screen whats wrong ???

    When i open facebook and only text shows and all is to the left and when i open hotmail nothing shows on my screen and other webpages have problems also when click at a link all the text comes up also to the left in my screen whats wrong ???

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    * http://kb.mozillazine.org/Websites_look_wrong
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • Pause, Stop and Resume buttons

    Hi Everyone,
    I've got a fairly short little animation sequence that the folks here at my work would like to insert into one of our web pages on our site.  It's a demo on how to use one of our products, so I'd like to add a few buttons so the user can pause and then resume the entire movie.  There is absolutely no scripting applied to the FLA right now.
    Could someone please get me started with this?  I've been working on another project that involves scripting some buttons with AS3, so I have some knowledge, but am still having a lot of difficulty, so any help would be appreciated.
    Thanks.

    To stop/pause a movie you command it to : stop();
    To play/start a movie you command it to: play();
    That's really all you need to have your buttons do in their event handler functions.

  • Its my first time to use mack book pro and i try to open quick timer and also i have problem in watching movies

    i have macbook pro and can not watch movie

    I'm afraid that what you are trying to open is the format that Quick Time doesn't support. You can install some plugin apps as mentioned above. Or just install some other 3rd party free media player to replace QT, such as Macgo free Mac media player, VLC.
    Notice:
    VLC does not support playback of commercial Blu-ray discs with copy protection. Those require decryption keys, which only a commercial player can provide.

  • How to stop and resume the animations of nested movieclips

    Hi
    I have many nested movieclips  in different positions of the main timeline.
    I have 2 buttons, play_btn and pause_btn.
    I'd like when the user click pause_btn, the animations on the main timeline and in nested movieclips stop.
    Whe he click play_btn the animations resume in both the main timeline and nested movieclips.
    I have created array of nested movieclips on the main timeline.
    var arr:Array = new Array(mc1, mc2, mc3, mc4, mc5);
    play_btn.addEventListener(MouseEvent.CLICK, on_play_btn);
    pause_btn.addEventListener(MouseEvent.CLICK, on_pause_btn);
    function on_play_btn(e:MouseEvent):void
         gotoAndPlay(currentFrame);
         for(var i:Number = 0; i < arr.length; i++)
             if(arr[i] != null)
                 arr[i].play();
    function on_pause_btn(e:MouseEvent):void
         gotoAndStop(currentFrame);
         for(var k:Number = 0; k < arr.length; k++)
             if(arr[k] != null)
                 arr[k].stop();
    but it only stops the animations on the main timeline and dosen't stop the animations in the nested movieclips.
    Help me Please.

    I'm having the same issue.I have a main timeline, which has nested movieclips with there own timelines and motion tweens. Using the new motion tween, and not the classic tween, which may or may not be the problem.
    Was having a similar issue with stopping the timeline, the main timeline would stop, but the nested movieclips would keep going. Found this blog post that helped.
    http://blog.nobien.net/2009/02/05/as3-stopping-all-timeline-animations/
    Used the code below to stop everything by passing the stage as the displayObject. Worked great, but now i'm having the reverse issue. When I resume play, the nested movieclip timeline stays exactly where I stopped it, and the main timeline resumes play. If there are a 100 frames in the nested movieclip, once it reaches the 101st frame, the main timeline kicks in again.
    function stopAllChildMovieClips(displayObject:DisplayObjectContainer):void{
            var numChildren:int = displayObject.numChildren;
            for (var i:int = 0; i < numChildren; i++) {
                var child:DisplayObject = displayObject.getChildAt(i);
                if (child is DisplayObjectContainer) {
                    if (child is MovieClip) {
                        MovieClip(child).stop();
                        stopAllChildMovieClips(DisplayObjectContainer(child));

  • (06 Oct 14) updated firefox and Kaspersky, now have problems with Barclays site - firefox "not responding" and plugin error on trying to close. Help!

    Updated Kaspersky to 15.0.0.463(a) - ( comes with "safe money" - now turned off).
    Updated Firefox from (old) version to 32.0.3.
    Barclays bank site loads properly, and allows access to accounts BUT when I try to look at a statement, Firefox "not responding" and a blank/ unresponsive page is displayed.
    In order to acheive any movement I have to close firefox... this gives rise to windows wanting to send error data, and Firefox apologising for loosing the tab.
    None of which allows me to do essential banking transactions.
    It is this machine that has the problem - I can access without problems via work computer (using google Chrome)

    My guess is that your statement is a PDF document, since banks and other companies often use that format for statements.
    Firefox has various options for viewing PDFs, including a built-in PDF viewer (not as full featured as Adobe's), or the option to use a plugin such as Adobe Acrobat, or to launch the PDF in an external application. This article describes how to experiment with that setting: [[How to disable the built-in PDF viewer and use another viewer]].
    On another subject, your plugin list has various plugins described as "Google Chrome Extension". I haven't seen that before. Could you review the list and see whether they really should be active in Firefox or can be deactivated?
    Open the Add-ons page using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Plugins.
    For those that are not essential, I suggest changing them to "Never Activate". This might not take effect immediately in that window, but should disable them in new windows.

  • Using Expressions to stop and start movement of solid layers

    I have two solid layers ( a red square and a blue square). The position of the red square is [129,239] and the blue square is to the right of the red square with a position [301, 240].  I would like the blue square to move to the right for 2 seconds, 1 second after I start the timeline.  When the blue square stops moving I would like this to trigger the red square to move to the right for 2 seconds.  I would like to perform this using all expressions code without creating keyframes on the timeline and I'm having trouble.  Please help!
    Thanks

    You didn't say how far you want the solids to move in 2 seconds so this example assumes 100 pixels to the right.
    Red position:
    dist = 100;
    startPos = [129,239];
    linear(time,3,5,startPos,startPos+[dist,0])
    Blue postion:
    dist = 100;
    startPos = [301,240];
    linear(time,1,3,startPos,startPos+[dist,0])
    Dan

  • How to stop and resume smart card reader handle using OCF framework

    I need to stop the reader handle and transfer the handle to other application and after reply from that application, i have to resume the reader handle.
    I tried Smartcard.shutdown and then I used SmartCard.start but it doesnt help.
    Can anyone help me to sort out this issue?
    Provide some sample code if possible.
    Thanking you in advance.

    with ocf you have CardTerminal instances to represent readers.
    Did you try the close() method on your CardTerminal instance?
    afterwards, you can open() it.

  • MacBook Air and Safari movie download problems

    I bought a new MacBook Air in August 2013 (OS 10.8.5). After migrating all my files from my iMac I have encountered problems with downloading movies that are playing in Safari (v 6.0.5). On my iMac (OS 10.6.8) and Safari (v 5.1.10) I could go under "Window", select "Activity" and see the files associated with the movie. I could select the movie that was playing, copy the url & then past it into "Downloads" (also under the "Window"). The movie would then download to my preferred folder & I could then view it on my iMac. I can't find the "Activity" or the "Downloads" options under the "Window". How do I get the movies to download now?
    Thanks,
    John..

    The next time you have the problem, note the exact time: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Scroll back in the log to the time you noted above. Select any messages timestamped from then until the end of the episode, or until they start to repeat. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I forgot my apple id password so i create a new one. the problem is i cant remove my first apple id because any time i tried to reset my password i never received any email from Apple.now the problem is my iCloud and ... have problem on my iPhone????

    I have a problem with my I phone5 . after i bought an iPhone6 and i joined it to my iTunes , the same problem happens to my new Iphone.
    i thought with the new Apple ID the problem could be solved. so i create a new Apple ID. now i have 2 I Phones  with the same problem means i can't remove my first Apple ID because any time i try to reset my password and delete the Apple ID i don't receive any Email from APPLE .
    Please HELP me. i would be very appreciated .
    thank you very much.

    Hello ba.t,
    After reviewing your post, it sounds like you tried to reset the Apple ID password but did not receive the email. I would recommend that you read this article, it may be able to help the issue.
    If you didn't receive your verification or reset email - Apple Support
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

Maybe you are looking for

  • My Belkin car charger is no longer supported by my iphone 5. It was bought from the Apple store. Is there a solution from Apple?

    The Belkin car charger I purchased a year ago from the Apple store and has worked fine until recently  is no longer supported and will not charge my  iphone 5 it seems since IOs7 came in.  Is there a solution other than to have to buy a new one?

  • Classic on a Intel Mac

    At the moment only garbage freeware and shareware emulators exist. Does anyone know when a commercial Classic solution will be around? Until one comes, I will remain using a PPC Mac. I just have WAY WAY WAY to many Mac OS 7.x-9.x apps to move. Many o

  • ALV Filter Option

    Dear All         I written a program using ALV in which i can get only 10 characters but i want all characters in the field what settings i should do in ALV or in anything else. Thanks and Regards Suresh

  • Value Adjustments

    Hi, Please explain (theortically) the difference between the following: 1) Individual Value Adjustments 2) Flat Rate Individual Value Adjustments 3) Flat Rate Value Adjustment. I am finding it difficult to understand them conceptually. I understand w

  • ON EXPORT WIDESCREEN/LETTERBOX GOES AWAY?

    Everything when I am editing looks good, it is in widescreen etc. I shot HD with a 1080i 60. When I go to capture using the Easy Setup for 1080 60i everything looks fine, and when I edit everything is fine as well. Its just when its time to export wh