Media Player setting size

Hi all,
I'm creating a screen which lists a number of MP3 files and an option to play the song. I'm using javax.media.Player. I am also displaying a Visual Component using getVisualComponent in a Jpanel.
My problem is how to "stretch" the component.
Following is the code I'm using :-
    private class EventHandler implements ControllerListener {
        public void controllerUpdate(ControllerEvent e) {
            if (e instanceof RealizeCompleteEvent) {
                // load Visual and Control components if they exist
                Component visualComponent = myCurrentPlayer.getVisualComponent();
                if (visualComponent != null)
                    jPanelMusic.add(visualComponent, BorderLayout.CENTER);
                    Component controlsComponent = myCurrentPlayer.getControlPanelComponent();
                if (controlsComponent != null)
                    jPanelMusic.add(controlsComponent, BorderLayout.CENTER);
                jPanelMusic.setSize(new Dimension(300, 300));
                jPanelMusic.validate();
    } Thanks in advance

Thanks for following up on your post, we were experiencing the same issue.
LOL, i was hoping i wasn't the only person having a hard time with this.
Thanks for your help.
[Brian B|http://www.propayperclickmanagement.com/about-us.php]

Similar Messages

  • How to change default media player setting in Mountain Lion

    I right click on the desired media player, then I click on "get info" and another pop up appears,
    but there is no "open with" selection!  See pic below:
    I open the application folder in the Finder window, I highlight the desired media player, I go to the top and
    click on File and in the drop down menu, the "open with" is grayed out.  Why?
    How do I change the default media player setting or better yet, where do I find what is the default player?  Help Please!

    CheeMiss8
    you need to find the file you are trying to have open with a specific application.
    for example, I'm going to use an MP4 file titled cat_adventure video.
    here it is in finder
    I right click (secondary click) it in finder, and then hold down the option key on my keyboard.
    the Open With dialogue should change to "Always Open With" and then you choose your application from the pull out menu when you hover that.
    You can make it so all MP4 or whichever file you are using (AVI, MKV, etc) to open with a specific app by right clicking the file choosing get info
    The difference here is I'm not selecting the application but a file with the extension of the video format I always want to be opened with a specific application
    once in the get info menu I can then select to have the video always open with a certain app.
    1.click the open with accordion menu arrow if it is pointing to the left. it should be pointing down.
    2.select the application you want to always be associated with that file format
    3.select Change All to have that file format always be opened with that Application.
    Where this isn't working for you is because you are doing this to the Application itself. you don't do it like that. You need to find the type of file you are trying to open with itunes and then go through these steps.
    selecting the application (itunes) instead of the file (mp4, avi, mkv, flv) will not allow you to set what the file format lets you use to play your video.
    having said that, itunes is very limited in what it can and can't play. Mainly .mov and mp4's (apples proprietary extensions)

  • Windows Media Player set-up

    I am planning to join a webinar and, using their web page facilities, am testing my MacBook Pro set-up to ensure that I can participate actively. The Windows Media Player test has revealed the following failing:
    +Browser/Player Communication: Failed.+
    +Media Slide Flip: Failed.+
    +Synchronized webcast features including slides, polling questions and post-event surveys require that your preferred media player communicate with your Internet browser. Failing one or both tests above indicate you may not be able to view all elements of the presentation. Your browser, player, or network security settings may be responsible for the failure message+.
    Is there a setting or some way to correct this?

    I used your suggestion and the system would not let me change. I am the administrator. Thanks for your help.

  • Windows Media Player size

    Hi, I am new to Labview software
    and I am currently using it for my project, and I try to embed Windows Media Player on it. However, the size always changes depend on the video size that it plays. My question is: How can I size the WMP, so that eventhough I play the 800x600 pixels it will just stay in in original size?
    Thanks
    Solved!
    Go to Solution.

    Just create a property node, and set it to all write, put in values and your control will be limited to what size you have put in.
    LabVIEW 8.2,8.6,2009...still learning
    Attachments:
    containerbounds.PNG ‏18 KB

  • HT204291 Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Here are the steps for AirPlay:
    Before starting Azul from your (running iOS 5.x/6.x) home screen where have have all your apps we need to turn on mirroring
    On your iPhone 4S/5 or iPad 2 or 3, double-click the Home  Button to view your recently-used apps.
    Swipe all the way to the right to until you see the  icon.
    Note: If the icon does not appear, go to the "If AirPlay Mirroring is not visible or available on your mobile iOS device" section.
    Tap the  icon to see the list of available AirPlay devices.
    Enable AirPlay Mirroring in this menu by tapping on an available Apple TV, then sliding the Mirroring slider to ON.
    Now you should be seeing your iPad/iPhone on your TV.
    Start up Azul now and using the settings icon on the top right corner go to the option that say "TV out" ON.
    When you do that you will see an Orange screen
    Now click "Done" and play the video you want to watch and it will AirPlay

  • What is the best setting for compressing to a Window Media Player?

    I now have the latest Compressor, just now need to figure out which is the best setting to use for compressing to a Windows Media Player. Does anyone know which is the best method?

    I'd propose you buy a licence for Telestreams FLip4MAC (flipfactory) Quicktime components to enable ENCODING for HD and SD as you need. It works ok however none of my work requires specifics for windows player. I have a licence just the same.
    If you have Flip4mac already installed, you can use the system preferneces  panel to order a an ENCODER component licence. There may be others around as well.
    You can just use compressor.app and change the inspector video to use "quicktime components/windows media encoder" in the batch job.. its pretty easy.
    hth

  • Want to download information but tries to do it in media player and says not possible, want to change setting but how???

    When I try to read an internet document in PDF or another format it tries to read it in Media Player and then says it's not possible. This means I cannot access information I need. I looked at every Menu I can, including Help and cannot change this setting. Please help me, I've obviously inadvertently chosen this option and now can't unchoose it. Please help me, it's very frustrating!!

    Thank you. Actually I stumbled across that solution myself last night, really not having a clue but browsing through all the drop down menus and did what you said. The only option that seems to work is if I use Internet Explorer. Haven't downloaded any documents yet, but hopefully it will work next time.

  • Perfect iframe size for widescreen media player

    hey folks,
    I have been mucking about with varied success with the size of my media player. The files are 384x 216. But when I make my iframe that size. It's tiny. So, is there a perect sized iframe snippet for a widescreen player? Or should I keep playing around to find the right one?
    At the moment my player is too big and looks a little pixelated. But it's working, so i don't want to muck around too much. Cause I may not be able to make it work again: )
    Peace.
    m
    iweb 08
    flash skins player
    http://www.hspmusic.com.au/HeadspacePost_Music/HeadspaceMusic.html

    So, is there a perect sized iframe snippet for a widescreen player?
    There is no perfect iframe size. The size of an iframe depends on what you want to display within a webpage.
    You decide what the width and height should be.
    Or should I keep playing around to find the right one?
    Yes.
    At the moment my player is too big and looks a little pixelated.
    It's made in Flash. Make it larger in Flash.
    Here are some (Flash) video samples with code for your pleasure to study and nim :
    http://www.wyodor.net/iFrame/
    http://www.wyodor.net/MoreEmbed/
    http://www.wyodor.net/Tutorials/ImageWidget/ClickMovie.html

  • Error setting as default media player

    Earlier today I tried to set iTunes as my default media player. When I clicked "set as default" it said back to me, "An error occured while updating the default player for audio file types. You do not have enough access privileges for this operation." I don't get it, how do I not have enough access privileges when I'm the computers Admin.
    I'd love some help please.

    Try this:
    http://discussions.apple.com/message.jspa?messageID=3862128#3862128

  • Can not set up iTunes as default media player in windows

    Using Start,Programs,set programs access and defaults,Custom, select iTunes as default media player will not work. Using iTune, Edit, Preferences,Advanced, General will do work either, Get error message "You do not have enough access privileges for this operation."
    Can anyone help solve this problem?

    I used your suggestion and the system would not let me change. I am the administrator. Thanks for your help.

  • HELP Audio problem when setting windows volume at max and media player at max

    im using msi eclipse x58
    whenever i set my windows volume at max and media player at max also, after few seconds it suddenly not hearing audio but my media player is still playing
    on other applications like skype wenever i set windows volume at max and after few seconds of voice chat with my friend the error says audio device disconnected.
    On  game applications while playing game same thing happens audio is gone
    it is really stressful can someone pls help me out thanks

    Quote from: NovJoe on 17-February-10, 17:01:40
    Please list out your full system specs and PSU specs amps for verification first.
    My Power Supply is Cooler Master Real Power 550W
    i7 core 920
    Nvidia GTS 250
    hard drive
    320gb
    640gb
    2x 2gb 1333 ddr3 ram

  • Can't set Quicktime as default media player

    I have Quicktime Pro 7.1.3 on Windows XP Pro (SP2)
    When I insert a DVD movie to play...the dialogue box for me to choose an application only has Windows Media Player. I can use Quicktime to watch the movie. Also, I can't even set Quicktime as my default media player under "Start->Set Program Access and Defaults->Custom"
    There isn't an option for me to set Quicktime as my default player anywhere. I've tried setting the preferences in Quicktime to recognize those file types but still nothing. I know that Quicktime is installed correctly because I can use it to watch .mov files and watch Quicktime content on the web.
    Any suggestions as to how I can get Quicktime to be my default media player or watch a movie using QT?
    PC   Windows XP Pro  

    QuickTime Player is not licensed for MPEG-2 playback (the format found on DVD's). It will never be able to view "Hollywood" DVD's because those contain CSS (encryption).

  • My CD track titles no longer show up on Windows Media Player; just Track 1, Track 2, etc. Is there a setting to correct this?

    No matter which CD I play on my computer (using Windows Media Player), the title shows "Unknown Album", and each track is listed a s Track 1, 2, etc. instead of showing the song title. When I click on "Find album info", a message pops up saying "You must change your privacy settings in Tools, Options, to update information about the audio media you have selected". I don't see anything in the Privacy tab that has to do with audio media. All of this began when I changed to Firefox. I'm using Version 3.6.12

    The Tools|Options it is talking about are those listed in WMP not FF.

  • How to set mw600 as stereo bluetooth headset in HP pavilion dv6 and control media player?

    i have mw600 and it works great when paired with my satio. i was able to pair it with my HP pavilion dv6 64-bit windows 7 home premium but the audio quality is mono and not stereo. i tried installing lenovo and broadcom bluetooth drivers like i read in the website but still didn't fix the problem. i also cannot control the media player and itunes through my mw600. can anyone help me with this please?

    HPdc7900 Win7 x64 with lenovo BT driver package (from Web) works for me on MV600
    although it did not said stereo (like before in WinXP) there are two distinct L/R channels
    Try some movies with strong L/R channel signatures .. hope it works for you

  • Spry menu bar hidden behind embedded windows media player in IE but Not Firefox

    Hi ppl.. My spry menu bar submenus are hidden below my embedded windows media player when I go over the menu. Is there anything I can do to solve this. This doesn't happen in Firefox.(The submenu appear on top of the embedded player) Pls help.. Thank you!
    Here's my spry menu bar css code:
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 9em;
        float: left;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 9em;
        position: absolute;
        left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 9em;
        border-bottom-width: thin;
        border-bottom-style: solid;
        border-bottom-color: #CCC;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
        background-color: #333;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;
        color: #FFF;
        text-decoration: none;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: bold;
        padding-top: 1.1em;
        padding-right: 0.75em;
        padding-bottom: 1.1em;
        padding-left: 0.75em;
        text-align: center;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        color: #000;
        background-image: url(../images/navimg2.gif);
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        color: #000;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarDown.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarRight.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image: url(../images/navimg2.gif);
        background-repeat: repeat-x;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarRightHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
        display: inline;
        f\loat: left;
    Here's my embedded windows media player code.
    <OBJECT ID="MediaPlayer" WIDTH="425" HEIGHT="344" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
              <PARAM NAME="FileName" VALUE="aqeedah1v7.wmv">
              <PARAM name="autostart" VALUE="true">
              <PARAM name="ShowControls" VALUE="true">
              <param name="ShowStatusBar" value="true">
              <PARAM name="ShowDisplay" VALUE="false">
              <EMBED TYPE="application/x-mplayer2" SRC="aqeedah1v7.wmv" NAME="MediaPlayer"
    WIDTH="425" HEIGHT="344" ShowControls="1" ShowStatusBar="1" ShowDisplay="0" autostart="1"> </EMBED>
    </OBJECT>

    Add
    <param name="WindowlessVideo" value="-1">

Maybe you are looking for

  • Can a pdf be added within a contact profile in contacts

    Can a pdf be added within a contact profile in CONTACTS

  • Error Msg when uploading book

    getting error message "Unable to parse opf file: container.xml" at Book  (help!)

  • Lsmw error - no fields with the same name

    Dear Experts, I am trying to upload master data through LSMW through Standard Batch/Direct Input but when i am executing the step READ DATA it is throwing me error as File 'C:\Documents and Settings\Guest\Desktop\DMS.TXT' and source structure 'ZEQUI_

  • Problem reloading swfs inside movieclip in IE

    I'm not quite sure whats going on. I have a website i'm working on http://www.tulum14.com and it works fine in safari and firefox, but when I run it in explorer it doesn't.  Whats going on is that when you go to the homes section of the site, each ho

  • Error with opa4228?

    I'm trying to build a second order low pass filter using OPA4228 and when I run the AC Analysis of the filter I keep getting the results that I should get if I had built an high pass. In fact, if I exchange the OPA4228 with another opamp (NE5532 for