How to add delay in media player?

I want to play a video in my GUI and I want to add some delay so their is any method to add delay before the the player start to play a video.

The following code would wait 10 seconds and then start a player...
SwingUtilities.invokeLater(new Runnable() {
    public run() {
        try {
            player.realize();
            player.prefetch();
            Thread.sleep(10000);
            player.start();
        catch(Exception e) {
            e.printStackTrace();
});

Similar Messages

  • (HELP!)How can I import Windows Media Player Playlists, into iTunes Playlists, with Music . .  for an iPod

    How can I import Windows Media Player Playlists, into iTunes Playlists, with Music . .  for an iPod
    We are having no luck with the thousands of songs we have to manualy add to a particular playlist in iTunes alone. .. there must be a simpler way! How can this be done . . . if there is and it's complicated, is the Genius allowed to help us out with this? They seem to only master Mac's only. .  or can they help us? PL E A SE E E  HELLPPP!

    tt2,
    Your very helpful and knowledgeable. I for one appreciate all the hardwork and help you have been giving the people on theses lists, especially with the problems associated with the "importing playlists" from windows media. Unfortunately I need more help if you or someone else can provide it. I followed all the steps you have instructed so far in the threads I have seen. Unfortunately nothing so far works for me. Maybe you or someone can help me, I'd really appreciate it. I tried the notepad++ method and when I click on save I always get a notepad file that my iTunes can't do anything with. I click the "convert to UTF-8 without BOM" then click save as and it still saves as a notepad file. I am also unable to find the \n\ file path to replace with my \C:\ filepath. Here is a copy of the first part of one of my playlists:
    <?wpl version="1.0"?>
    <smil>
        <head>
            <meta name="Generator" content="Microsoft Windows Media Player -- 12.0.7601.17514"/>
            <meta name="ItemCount" content="161"/>
            <author/>
            <title>Power Surge</title>
        </head>
        <body>
            <seq>
                <media src="..\Various Artists\Mixed Tape 2\13 Out of Control.wma" tid="{650561AF-AA9D-4EA3-84CC-2F09C24DF3B3}"/>
                <media src="..\Various Artists\Mixed Tape 1\12 One Step Closer.wma" tid="{EE5ADD9D-A879-404A-BC60-CE841045BCB6}"/>
                <media src="..\Various Artists\Mixed Tape 1\15 Click Click Boom.wma" tid="{0F71941C-1B67-425F-BDAA-246618709179}"/>
    Now I went and switched the part from  <media src="..\ to <media src="C:\ in all the files in hopes that was where I am supposed to have my drive letter but it didn't seem to help. Please forgive my encoding ignorance if that's what my problem is. I hope you can help.  Thanks in advance.
    Madmaxneo

  • How to remove "Ads by Media Player" using Chrome? Online solutions are for Windows

    How to remove "Ads by Media Player" using Chrome? Online solutions are for Windows.
    Having relentless pop up ads which open new browser windows. Searched all over for a Mac solution and can't seem to find one. Help please!?

    http://www.adwaremedic.com/index.php
    (Read the whole page to learn about adware!)

  • How do I stop Windows Media Player importing my iTunes library? It's most annoying, aghhhh. Please someone help me.

    Can anyone please help me work out how to stop my Windows Media Player grabbing all my iTune's music. (& is there any way of getting my old operating system back on my iPhone as I'm less than impressed with the new one)?

    Asking on a Windows forum would be your better option...  http://forums.windowsforum.org/

  • How do I download Windows Media Player to my Windows 7 - 32 bit laptop?

    As the title suggests, I am having a bit of difficulty going to the Microsoft Website and downloading Windows Media Player - version 11 to my Windows 7 Hewlett Packard laptop - the Pavilion dv4.    Any suggestions?  I do not see WMP in
    my list of applications nor is it under the Control Panel in Add/Remove programs.   I cannot therefore run the Demos with Microsoft has on using MS-WORD 2007 which is the version that came installed with my laptop in 2011.      
    Please give me some step by step instructions for finding if I have WMP at all.  Second, please tell me how I can then download from Microsoft's site.  I really need to learn the ins and outs of Word and I'm used to the prior Word version. 
    thanks.
    Marlund

    If you purchased the pc in Europe or South Korea, you may have a Win 7 "N" or "KN" version which does not ship with Windows Media Player. Please see
    http://windows.microsoft.com/en-au/windows7/products/what-is-windows-7-n-edition
    To check your Windows version see
    http://windows.microsoft.com/en-au/windows7/find-which-edition-of-windows-7-you-are-using
    To install Windows Media Player on Win 7 N or KN, see
    http://www.microsoft.com/en-us/download/details.aspx?id=16546
    ...and WMP version 12 was released in 2009.

  • How to blur the windows media player in windows form on a button click?

    Assaliam-o-Alaikum
    i want to disable the functionality of media player by default.But when button clicked it would enabled.
    Any idea how to implement it.
    thanks

    Assaliam-o-Alaikum
    i want to disable the functionality of media player by default.But when button clicked it would enabled.
    Any idea how to implement it.
    thanks
    Hi,
    It seems that you want to disable that media player, the way shared by Pisteuon works for creating a blur for both window and controls.
    If you want to disable that media player, you could consider using the following way, in this case we need the class below.
    ImageCapture.
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Linq;
    using System.Runtime.InteropServices;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    namespace YourNamespace
    public class ImageCapture
    [StructLayout(LayoutKind.Sequential)]
    public struct RECT
    public int left;
    public int top;
    public int right;
    public int bottom;
    [DllImport("User32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    public static extern IntPtr SendMessage(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
    [DllImport("User32.dll")]
    public static extern IntPtr GetDesktopWindow();
    [DllImport("User32.dll")]
    public static extern IntPtr GetWindowDC(IntPtr hWnd);
    [DllImport("User32.dll")]
    public static extern IntPtr ReleaseDC(IntPtr hWnd, IntPtr hDC);
    [DllImport("User32.dll")]
    public static extern IntPtr GetWindowRect(IntPtr hWnd, ref RECT rect);
    public const int SRCCOPY = 0x00CC0020;
    [DllImport("gdi32.dll")]
    public static extern bool BitBlt(IntPtr hObject, int xDest, int yDest, int width, int height, IntPtr hObjectSource, int xSrc, int ySrc, int dwRop);
    [DllImport("gdi32.dll")]
    public static extern IntPtr CreateCompatibleBitmap(IntPtr hDC, int width, int height);
    [DllImport("gdi32.dll")]
    public static extern IntPtr CreateCompatibleDC(IntPtr hDC);
    [DllImport("gdi32.dll")]
    public static extern bool DeleteDC(IntPtr hDC);
    [DllImport("gdi32.dll")]
    public static extern bool DeleteObject(IntPtr hObject);
    [DllImport("gdi32.dll")]
    public static extern IntPtr SelectObject(IntPtr hDC, IntPtr hObject);
    public static Image CaptureControlImage(Control c)
    IntPtr hSrc = c.Handle;
    IntPtr hdcSrc = GetWindowDC(hSrc);
    RECT rWindow = new RECT();
    GetWindowRect(hSrc, ref rWindow);
    int width = rWindow.right - rWindow.left;
    int height = rWindow.bottom - rWindow.top;
    IntPtr hdcDest = CreateCompatibleDC(hdcSrc);
    IntPtr hBitmap = CreateCompatibleBitmap(hdcSrc, width, height);
    IntPtr hOld = SelectObject(hdcDest, hBitmap);
    BitBlt(hdcDest, 0, 0, width, height, hdcSrc, 0, 0, SRCCOPY);
    SelectObject(hdcDest, hOld);
    DeleteDC(hdcDest);
    ReleaseDC(hSrc, hdcSrc);
    Image img = Image.FromHbitmap(hBitmap);
    return img;
    Add a panel to bring to front, and draw what that media player looks as its background image.
    Panel myPanel; //add that panel to disable that media player
    private void button2_Click(object sender, EventArgs e)
    if (this.myPanel == null)
    myPanel = new Panel();
    myPanel.Size = this.axWindowsMediaPlayer1.Size;
    myPanel.Location = this.axWindowsMediaPlayer1.Location;
    DWM_BLURBEHIND bb = new DWM_BLURBEHIND(true);
    DwmEnableBlurBehindWindow((IntPtr)this.axWindowsMediaPlayer1.Handle, ref bb);
    myPanel.BackgroundImage = ImageCapture.CaptureControlImage(this.axWindowsMediaPlayer1 );
    this.Controls.Add(myPanel);
    myPanel.BringToFront();
    //remove that panel to enable that media player
    private void button3_Click(object sender, EventArgs e)
    { if (this.myPanel != null)
    this.Controls.Remove(myPanel);
    myPanel = null;
    Result:
     Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I install Windows Media Player on iBook

    I have downloaded Windows Media Player to my desktop, but do not know how to find an appropiate progam in which to install it with. I would very much like to satch sports over the internet and Windows media palyer is required for most of my current subscriptions.
    Forgive my ignorance, as it is my first day with an iBook or any Mac for that matter. (Really prefer it over my past PC's thus far)
    Thanks to all.

    Stuffit Expander is required to open the WMP download
    any many others you'll encounter while using a Mac.
    It's available free from Stuffit.com.
    Thanks. Will do.

  • How do I open Windows Media Player 11 in a new window via labview 8.5 using ActiveX

    Hello,
    Although familiar with Labview, I am new to the ActiveX Controls. I have managed to open and play movie files in Labview with ActiveX controls but the player is embedded in Labview's front panel. How can I control what file is played and when it starts in Labview but have Windows media player 11 open in a separate window.
    Additionally, where can I find a description of the ActiveX properties.
    Thank you

    I'm trying to accomplish this same thing and am having a hell of a time finding the right Class, right Methods, and/or right Properties for a solution.  Some classes seem to return obscure errors when I try to create them use the invoke node "launchURL" (the WMPLib.ICore for example).  If I use the Player base class (which MSDS says is the root class and the class that is used when you create an embedded player) I don't get anything.
    What I would like is to progmatically launch Windows Media Player to play a particular video clip in full screen on the secondary monitor.  It seems like this should work:
    But doesn't... any ideas for this?  The C# examples are difficult to understand for me.  Also, the WMP class library is a MESS! (IMHO).  Thanks for your input.

  • How do I change which media player adobe reader X uses when I click a link that directs me to a vid

    There is a link in a pdf file I use, and when I click on it i receive this message:
    "This media requires an additional player. Please click 'Get Media Player' to download the correct media player. To play the media, you will need to close and restart the application once the player installation is complete."
    However, I am in possession of several media players that I know are able to play the file that the link is referring to.
    I do not want to download additional media players. I just want to figure out how to play the video when I click on the link.
    Thanks for your time.

    Andy, is your profile signature "iMac (27-inch Mid 2010), Mac OS X (10.7.5)" still correct or has your system changed since you set it up?
    the Aperture database that is under Media - Photo is the wrong one
    This may be a problem of a wrong entry in the Aperture preferences file. The Media Browser will use the most recently opened Aperture library . Try first to switch to a new empty Aperture library and then back (you can switch using the File menu in Aperture (File > Switch to Library > Other/New). Then restart your Mac to ensure, that all applications terminate properly.
    If you are running Aperture 3.5.1 in Mt. Lion or later, you may need to enable the option "Share XML with other applications" in the Aperture preferences "Preview" tab. This is only necessary for non-Apple apps (Aperture 3.5: Set "Share XML with other applications" to "Never" for better performance and faster quit times).
    If that does not correct the Aperture library in the Media Browser, quit Aperture and remove the "com.apple.Aperture.plist" file from the Preferences folder as described in Aperture 3: Troubleshooting basics.
    -- Léonie

  • HTML Add to Adobe Media Player link

    Hi,
    I have a series of FLV videos on a site and I want to add a link in Dreamweaver that will automatically download and add the video to the Adobe Media Player. Does anyone have any ideas?
    Cheers
    Ali

    Hi
    The media players will have to consume your flv as an rss feed,you can find full instructions and documentation here - http://www.adobe.com/devnet/mediaplayer/.
    PZ

  • Open a pdf - how can I stop Windows Media Player ASSUMING default

    I download a pdf - and I want to store it in a file I keep for Adobe pdf's but I download it and it comes in and Windows Media player ASSUMES - it is a job for Windows - how do I fix this - because Windows Media Player - is not all it is cracked up to be and I want to choose all the defaults for myself - would it be better to uninstall Media Player - I have Media Monkey - and the only program to download a pdf - IMnsHO is Adobe so I would want to make Adobe my default for opening and storing - pdf's
    My Purpose is to download and store in pdf format - recipes from Noreen's Kitchen - for this I MUST have Adobe and I do - the latest version - but When Windows Media dives in - it seems to cut Adobe off
    Bad that - please help

    Thank you cor-el you have helped me AGAIN and I am - as I was last time BEST PLEASED - the solution looks simplicity itself and all the best solutions are supposed to be the simple ones - what I must do now it to save the two on my Top Sites Homepage until I can print them off - they will need saving they are so good

  • How do I download Windows Media Player for Mac?

    I keep downloading it from the Microsoft website..and...it doesn't work. My husband bought a new MacBook (Leopard) and he's trying to figure out how to look at something on a website that gives him a link to download this. I helped him download Flip4 Mac...Windows Media Player 7.1 for Mac. Quicktime something-or-other. Windows STX 1,2,3 4, 5 and on...and...It still doesn't open. What am I doing wrong?

    WMV's player application will work as a standalone application, but the browser plug-in will not work because it is not a universal binary. For that you will need to install Flip4Mac. The last Mac version of WMV is 9.0 and can be downloaded here.You will need an appropriate dearchiver such as Stuffit or The Unarchiver - VersionTracker or MacUpdate.
    Be sure you properly uninstall whatever items you've previously installed. You should quit the browser before installing any of the above.

  • How can the built in media player (MP3 etc.) be disabled in Firefox for Android?

    I am trying to figure out how to disable the media player so that media files get downloaded for playback later using my preferred Android media player. In my search for a solution I found the about:config method for the desktop version of Firefox but settings don't appear to be implemented in the Android version at this time. I'm on a rooted phone so command line / config file hacking is an option if that's what it takes.

    Unfortunately not as it's a redirect link for a podcast (see: http://twit.tv/show/this-week-in-tech/407 for example the audio link takes you to http://www.podtrac.com/pts/redirect.mp3/aolradio.podcast.aol.com/twit/twit0407.mp3 ) Since this is how they get paid for their content, I'd rather not try to bypass it if I can help it. What I'd really like is behavior Firefox (on the desktop, at least) used to have: click the link and it treats it as an unknown file and just downloads it.

  • How can I use Microsoft Media Player with my new iPod Nano?

    I do not like the iTunes player.  I want to use the Microsoft Media Player with my iPod Nano.  I dislike the iTunes player so much that if I don't get this resolved I will have to return the iPod Nano.

    Michelle,
    You can download media components for QuickTime which will enable you to play WMA files through QuickTime on your Mac:
    http://windows.microsoft.com/en-gb/windows/windows-media-components-quicktime
    Alternatively, Get the free VLC player for Mac, which will play almost all media types:
    http://vlc-media-player.en.softonic.com/mac
    If the interview requires Windows Media Player to be running to conduct the interview, then I fear you may be stuck, there is not a version of Windows Media Player for Mac - It is for Windows.  Your options in this case would be to borrow a Windows PC or install a valid copy of Windows on your MacBook under BootCamp.

  • How do I uninstall Windows Media Player 11 (from Windows XP)

    I tried to uninstall Windows Media Player 11 using the 2 methods in http://support.microsoft.com/kb/934372/en-us
    The 1st method rolled back Windows Media Player 11 , but I want to uninstall it.
    The 2nd method gave me the following pop-window:
    Run
    C:\WINDOWS\$ntUninstallwmp11$\spuninst refers to a location that is unavailable. It could be on a hard drive on this computer, or on a network. Check to make sure that the disk is properly inserted, or that you are connected to the Internet or your network,
    and then try again. If it still cannot be located, the information might have been moved to a different location.
    I am surprised that Microsoft supplies a product that one cannot uninstall.
    I would very much like to uninstall Windows Media Player 11 -
    If that is not possible, I could re-install it.
    Thanks for any helo.
    OK  

    Is this a CM07 question?
    Does the directory/ file exist?
    http://www.enhansoft.com/

Maybe you are looking for

  • 6680 sync: The mobile phone has not responded.

    Hello, When I try to sync via bluetooth I am getting the following message The mobile phone has not responded. It worked about 3 weeks ago but hasn't worked since!! I have looked at the help section and it says that you can't restore settings on this

  • 98.18.78.XT907.Verizon.en.US is it here yet for My Droid Razr M

    I understand that there is a maintenance update for the Droid Razr M but I have not received it , I wondered if it had not made its way out into the OTA system yet. 98.18.78.XT907.Verizon.en.US is showing up on the Motorola Website but I have yet to

  • How to trigger a standard workflow task in customizing program?

    Hi experts, Does any1 have any ideas about how to trigger a standard workflow task in customizing program? Is there any FMs can be used to do this? Thx in advance. Points will be rewarded. Vincent

  • Vc webdynpro DOM parsing

    hello there i tryed the DOM parsing on the returned paramter from the <u>portal eventing</u> between<u> visual composer and webdynpro</u> and i get this error : <b>com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex)

  • How to get to the bottom of iphone photo library more quickly?

    I have about 8000 pics in here and most are in albums so I can find them reasonably easily. Some that haven't been put in an album and are located halfway down or more take FOREVER to scroll and find. Is there some way to jump further down the album