Media Player error

I am trying to create a Media Player.
Good thing is that using this code i can play mp3 and wmv files correctly.
The problem is that i cant play mp4 files
in fact i can hear the music but cant see its video.
public-read def listView: javafx.scene.control.ListView = javafx.scene.control.ListView {
        disable: false
        layoutX: 60.0
        layoutY: 6.0
        layoutInfo: __layoutInfo_listView
        items: [ "C:\\Users\\JUGAL\\Tera Zikr.mp3", "D:\\Wavin Flag.mp4", "C:\\Users\\Public\\Videos\\Sample Videos\\Wildlife.wmv", ]
        cellFactory: null
function buttonOnMousePressed(event: javafx.scene.input.MouseEvent): Void {
        mediaPlayer.stop();
        var path = listView.selectedItem.toString();
        print(path);
        mediaPlayer.media = if (path == null) then null else
                    Media {
                        source: new File(path).toURI().toString();
                        onError: function(error: javafx.scene.media.MediaError): Void {
                            print(error.message);
                        //mediaErrorLabel.text = error.message;
        slider.min = 0;
        mediaPlayer.play();
    }Edited by: 794221 on Nov 24, 2010 9:30 AM

Can your computer's default movie player run it correctly? MP4 is not a format that JavaFX supports by default, so it would rely on one of the native back-ends, such as Direct Show (Windows), GStreamer (Linux), and CoreVideo (Mac) to play it.

Similar Messages

  • Streaming media player error

    Hi, I have a brand new yoga 10 tablet and I'm getting a streaming media player error on every streaming video on the internet that I have seen.   My friend has the same tablet and everything works fine.   I have made a factory default command but the error is still there, I'm getting desperate, does anyone have an idea on this matter?
    thanks
    Solved!
    Go to Solution.

    Hi calibant,
    thanks for posting and welcome to the community. Was reading through your post and wondering if you've updated your table with the latest firmware available? You may want to compare firmwares with your friend as see if you have matching firmware. If it found to be same, I believe there maybe something internally causing this and you will have to seek the assistance of our service team.
    Another thing I'd like to as if you downloaded another player are you facing the same issue? How about streaming video such as youtube? do you get the same results?
    Hope to hear back.
    Regards

  • Windows Media Player Error; Troubleshooting Error

    Question #1
    When I try to play music in windows Media Player I get the following message:
    Windows Media Player cannot play the file because there is a problem with your sound device.  There might not be a sound device installed on your computer, it might be in use by another program, or it might not be functioning properly.
    The sound was working about a week ago, and I do have IDT High Definition Audio CODEC driver on my laptop. 
    Question @2
    When I run any Troubleshooting program I get the following error code:
    Pkg ID: AudioPlaybackDiagnostics  (This varies depending on what I'm troubleshooting)
    Path: Unknown (This varies)
    Error Code:  0x8E5E0247  (This error code is always the same)
    Source:  Engine
    User: Leyna-PC\Leyna
    Context:  Elevated  (This is usually restricted)

    Hi Mike,
    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/sp63501-64000/sp63555.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 done, download and reinstall the Chipset driver on the link below.
    Chipset Driver - Windows 8.1
    When complete, shut down the notebook by holding down the Shift key as you click Shutdown to temporrily prevent a hybrid boot.
    Start the notebook and let Windows fully load - it will automatically load an audio driver, but just let this complete.  Then open your Downloads folder, right click on the IDT installer and select 'Run as Administrator' to start the installation.  When this has completed, right click the speaker icon in the Taskbar and select Playback Devices.  Left click 'Speakers and Headphones' once to highlight it and then click the Set Default button - restart the notebook and try playing the mp3 file.
    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

  • Windows media player error

    I have been trying to burn an audio cd. I start the program and it prepares my disc and burns about 5 tracks out of 20 then it stops and finalizes my disc and says the tracks are complete. then a dialog box pops up and says the process was unable to burn
    my cd because the burner is busy or needs to have a software update. I checked the update status and it says it's up to date. I tried burning at a slower rate bur the same problem persists. I also uninstalled and reinstalled and the same problem persists.
    media play plays any type of cd with no problem.
    Windows Media Player could not complete burning because the disc is not compatible with your drive. Try inserting a different kind of recordable media or use a disc that supports a write speed that is compatible with your drive.
    this also pops up from time to time. is there any solution.

    Hi,
    This error message usually caused by incompatible between DISC with CD drive. Maybe the speed of Disc was too high, please try to use other type of disc for test.
    Roger Lu
    TechNet Community Support

  • No speaker Sound, Mouse won't drag cards in Solitaire, Windows media Player error

    My computer is an HP Pavilion dv6 running Windows 7.  Suddenly, the following problems came up:
    1.  No sound from the internal speakers.  Only sound from headphone jack
    2.  Mouse Cursor won't drag cards in Solitaire game.  Mouse works OK otherwise
    3.  Windows Media Player shows error: "Windows Media Player encountered a problem while playing the file."

    Have you tryed to do a Windows Restore to a point in time before you were having this issue?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Windows Media Player error message

    On Saturday mornings for the last couple of years, I have tuned in via the internet to a radio station and particular program using the radio station's website and clicking on their link for my connection speed (cable). The Windows Media Player opens up and the broadcast begins. The past two weeks, when the Player window opens, I now get a message that says "The host is unreachable." I restarted my computer; same message. I've seen reference on some websites that it is a router problem. So I reset the router; still doesn't work. I reinstalled Media Player 9; same message. I'm baffled as to why this is happening all of a sudden. Can anyone help direct me? The router is Netgear and is about three years old. Thanks.

    I have no problem doing so. You don't need Windows Media Player. Make sure you have Flip4Mac WMV installed:
    http://www.versiontracker.com/dyn/moreinfo/macosx/28842

  • Flash media player errors

    On certain websites such as Myspace and PureVolume, the
    embedded flash media players refuse to work; instead returning a
    message such as "Error Loading XML Document". At first, I could
    activate the standalone playeroption and the player would function
    as it was intended. Now it has gotten to the point that the players
    won't work at all. and it happens on my work PC running Win2000 and
    my home PC running XP home. I have tried upgrading to flashplayer
    8,0,22,0, I tried reinstalling the older version of flash, updating
    IE, reinstalling IE, restoring my security settings in IE to their
    defaults and all for naught. and nobody on any of the usenet groups
    knows what the problem is and nobody at Myspace or PureVolume know
    what to do about it either. What could cause the error message? I
    suspect it might be a registry key problem of some sort but that
    kind of thing is waaaay over my head.
    Any ideas from you guys at macromedia?

    Captain Bemo wrote:
    > On certain websites such as Myspace and PureVolume, the
    embedded flash media
    > players refuse to work; instead returning a message such
    as "Error Loading XML
    > Document". At first, I could activate the standalone
    playeroption and the
    > player would function as it was intended. Now it has
    gotten to the point that
    > the players won't work at all. and it happens on my work
    PC running Win2000
    > and my home PC running XP home. I have tried upgrading
    to flashplayer
    > 8,0,22,0, I tried reinstalling the older version of
    flash, updating IE,
    > reinstalling IE, restoring my security settings in IE to
    their defaults and all
    > for naught. and nobody on any of the usenet groups knows
    what the problem is
    > and nobody at Myspace or PureVolume know what to do
    about it either. What
    > could cause the error message? I suspect it might be a
    registry key problem of
    > some sort but that kind of thing is waaaay over my head.
    >
    > Any ideas from you guys at macromedia?
    Here's what I recommend..
    1. Get the -exact- error messages. If you can get some screen
    shots and
    post them to the web all the better.
    2. Open a support case with Myspace and PureVolume. As the
    Flash/Flash
    Media Server developers they have the ability to open support
    cases with
    Adobe. I'd suggest you ask them to do so.
    Bentley Wolfe
    Senior Support Engineer, Flash/Flash Player
    *Macromedia, now a division of Adobe Systems

  • Playbook media player error

    I recently downloaded the free audio bible - world english bible version. It took several hours to download but seemed to work fine for a couple of inquiries. The next time I tried to use it, nothing would come up when I pressed the icon, only grey. I decided to unistall it and install again. This time it only took a minute to reinstall so I figured something was not right. I have since unistalled it again as there was still no response, only the color grey. I have also noticed that none of my music will play now, I keep getting the error "not communicating with media playe"r. The slacker radio app also will not work. It seems as if all music has shut down. I can get youtube video to work with audio. So what can be done??

    I dont see any other solution than wiping your Playbook.
    But you should try following @blackberryhelp ask them to follow you and ask them to follow you.
    You should also try writting to the developers I guess they are [email protected], you can see the address in My world, inside the app at the top right corner
    Pearl 9105 6.0 Bundle 2950
    Playbook 2.1.0.1032

  • Problem with windows media player

    hallo, mine is hp pavilion entertainment pc
    model:dv5-1110eg
    i have a problem regarding windows media player when i use to click on it it is showing an error message like this
     Windows Media Player Error Message HelpYou've encountered error message C00D1199 while using Windows Media Player.

    Hi,
    Just install Codecs. Download here.
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Error message when Burning CDs in Media Player

    When I burn cds in media player, i get error on about half of the songs in the playlist. I delete the errored songs, re-import them and then try to burn. same problem. then the cd tray locks up and i ether use the paper clip trick to open the tray or restart the computer. Using i tunes is not a problem for any songs or the burning of cds. satellite/vista

    Hi, Anthony.
    If, as it sounds, your problem is with Windows Media Player, then your best bet is to post over at Microsoft's Windows Media NewsGroup .
    Good Luck.

  • Error Message on Windows Media Player 'ONE OR MORE ARGUEMENTS NOT ALLOWED'

    THIS FEELS LIKE THE COMMERICAL ...
    I'm trying to use Windows Media Player on my Mac Intel -- brand new.
    I keep getting this error message -- no kidding!
    "One or more arguements, not allowed"
    Intel Mac Mini 1.66Mhz   Mac OS X (10.4.9)   2gb RAM Installed

    WMP for Mac has been discontinued and is not written for Intel Macs.
    Instead you should use the free Flip4Mac QuickTime WM plugin available free from Flip4Mac.com
    If you choose to stick with WMP, you'll get better response if you use a forum dedicated to Microsoft's Mac products such as <http://groups-beta.google.com/group/microsoft.public.mac.office> rather than an Apple forum.
    Be sure to search the forum first in case someone has already had a similar question answered. You'll get your answer faster this way. Post your question in the forum if you don't find anything that helps you.

  • Error with Windows Media Player ActiveX control

    When I try to drop in a Windows Media Player control I get an error:
    "Error loading type library/DLL"
    Any ideas?

    If upgrading is out of question. Like a budget stopping it. You could try to this http://www.microsoft.com/download/en/details.aspx?id=8002 That will allow you to run XP inside windows 7. It is also other media players like VLC and Apple quick time that have ActiveX controllers. I have tested the Quicktime version and it is quite good.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • HP Pavilion dm4 - Windows 7, 64-bit. Error message: Windows Media Player won't play my DVD

    Here is the actual error message. The video card has an updated driver. I can't figure out how to resolve this -
    Windows Media Player cannot play this DVD because there is a problem with digital copy protection between your DVD drive, decoder, and video card. Try installing an updated driver for your video card.

    Hi,
    First of all, if you've recently installed any virtual drive software ( an exmple of this is Daemon Tools ), temporarily uninstall it, restart the notebook and see if this has corrected the error.
    If the above doesn't apply, try downloading and installing the free KLite codec pack on the following link.
    http://www.filehippo.com/download_klite_codec_pack/
    When the installation has completed, restart the notebook and check again.
    Let me know.
    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

  • Error Message When Trying to Download Adobe Media Player

    I can not download Media Player. I've tried using Internet Explorer and Mozilla Firefox. I receive an error message that says . . . "Sorry and error has occurred. The application could not be installed. Try installing it again. If the problem persists, contact the application author. Error # 2032". I called Adobe customer service who informed me there is no technical support for Media Player. Anyone have this same problem?

    Yes, I have had the same problem but I don't know what to do for it. Did Adobe customer service tell you what to do for the problem? It's to late at night for me to call, no one is at the customer care center now. If you could please tell me if you got the problem fixed and if so what did you do to get it fixed??
    Thank You
    Michelle Moore
    [email protected]

  • OSMF Player Error: URL missing from Media tag - HTTP Live

    When I try to play an HTTP Live Stream using OSMF Player, I get "URL missing from Media tag" error.
    I installed Flash MS4.0 with Apache2.2.
    My live manifest file (f4m) is below.
    http://localhost/live/events/livepkgr/events/_definst_/liveevent.f4m
    <manifest>
    <id> livepkgr/events/_definst_/liveevent </id>
    <mimeType> </mimeType>
    <streamType> live </streamType>
    <duration> 0 </duration>
    <media streamId="livestream1" bitrate="100">
    <metadata> </metadata>
    </media>
    <media streamId="livestream2" bitrate="200">
    <metadata> </metadata>
    </media>
    <media streamId="livestream3" bitrate="350">
    <metadata> </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i1/livestream%i1.bootstrap" id="bootstrap2386"></bootstrapInfo>
    <media streamId="livestream%i1" url="../../../../streams/livepkgr/streams/_definst_/livestream%i1/livestream%i1" bootstrapInfoId="bootstrap2386">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i2/livestream%i2.bootstrap" id="bootstrap6801"></bootstrapInfo>
    <media streamId="livestream%i2" url="../../../../streams/livepkgr/streams/_definst_/livestream%i2/livestream%i2" bootstrapInfoId="bootstrap6801">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    <bootstrapInfo profile="named" url="../../../../streams/livepkgr/streams/_definst_/livestream%i3/livestream%i3.bootstrap" id="bootstrap1"> </bootstrapInfo>
    <media streamId="livestream%i3" url="../../../../streams/livepkgr/streams/_definst_/livestream%i3/livestream%i3" bootstrapInfoId="bootstrap1">
    <metadata>
    AgAKb25NZXRhRGF0YQgAAAAAAAhkdXJhdGlvbgAAAAAAAAAAAAAMYXVkaW9jb2RlY2lkAgAEbXA0YQAFd2lkdGgAAA AAAAAAAAAABmhlaWdodAAAAAAAAAAAAAAMdmlkZW9jb2RlY2lkAgAESDI2NAAKYXZjcHJvZmlsZQBAUIAAAAAAAAAI YXZjbGV2ZWwAQD4AAAAAAAAABmFhY2FvdAAAAAAAAAAAAAAPYXVkaW9zYW1wbGVyYXRlAEDfQAAAAAAAAA1hdWRpb2 NoYW5uZWxzAEAAAAAAAAAAAA52aWRlb2ZyYW1lcmF0ZQD/+AAAAAAAAAAJdHJhY2tpbmZvCgAAAAIDAAZsZW5ndGgA AAAAAAAAAAAACXRpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkDAAZsZW5ndGgAAAAAAAAAAAAACX RpbWVzY2FsZQBAj0AAAAAAAAAIbGFuZ3VhZ2UCAANlbmcAAAkADXNtcHRlVGltZUluZm8DAAtzbXB0ZU9mZnNldAAA AAAAAAAAAAAACQAHY3VzdGRlZgoAAAAAAAAJ
    </metadata>
    </media>
    </manifest>
    It seems to me that it is a configuration issue, but I have no clue.
    I compared above manifest with a sample manifest that I found on Adobe's site, the attributes are same but the structure is not. Maybe that is causing OSMF to fail.
    Thanks for any suggestion!

    I am using other encoder than FMLE. I am publishing 3 streams.
    rtmp://x.y.z.w/livepkgr
    H264 BL3.0 60kbps, 160kbps and 310kbps & AAC-LC Stereo 32kHz 40kbps & Fragment duration 4 sec
    >>> matches C:\Program Files\Adobe\Flash Media Server 4\applications\livepkgr\events\_definst_\liveevent Event.xml and Manifest.xml files.
    <FragmentDuration>4000</FragmentDuration>
    <media streamId="livestream1" bitrate="100" />
    <media streamId="livestream2" bitrate="200" />
    <media streamId="livestream3" bitrate="350" />
    (e.g. 60kbps video + 40kbps audio for the 1st stream)
    I have Common output parameters > Stream Name configuration on my Live Transcoder and I write the following:
    livestream%i?adbe-live-event=liveevent&adbe-http-streaming-ver=1.0
    Then Admin Console > View Apps > Live Log includes the following:
    Stream name is: livestream%i1 and live event is: liveevent
    Stream name is: livestream%i2 and live event is: liveevent
    Stream name is: livestream%i3 and live event is: liveevent
    As you say, it seems %i above causes the problem, but how to fix it?
    My f4m includes the bitrates:
    <id> livepkgr/events/_definst_/liveevent </id>
    <mimeType> </mimeType>
    <streamType> live </streamType>
    <duration> 0 </duration>
    <media streamId="livestream1" bitrate="100">
    <metadata> </metadata>
    </media>
    <media streamId="livestream2" bitrate="200">
    <metadata> </metadata>
    </media>
    <media streamId="livestream3" bitrate="350">
    <metadata> </metadata>
    </media>
    Thanks!

Maybe you are looking for

  • Error occurred while writing cube data - PCon

    Hi, Could you help me? I have created new application, but when I try to enter and save PCon values, I get a message: "Error occurred while writing cube data.". What could be the reason? I was able to update other data forms. Thank you in advance

  • Declaring variables or constants at the start of a class

    Hi, I have a question. I am in an introductory java course and my instructor says that anything that is declared outside of a method (ie. very beginning of a class) must be a final constant. She says that I must use public static final int EXAMPLE_CO

  • Sequence Layers with Transition

    Because when I do a sequence of layers, with the transition "Cross Dissolve Front and Back Layers", the first layer is "0" in opacity and no have keyframes like others layers? System Windows 8.1. After Effects CC 2014.2.

  • Manage my alerts and reminders not showing in personal settings in project server 2013

    I as an administrator can see the Manage my alerts and reminders in personal setting in the server setting page. Other than administrators, no body else can view this option. For example, a user who is assigned to the team members group with the My t

  • UOM Metres - KG issue

    Hi Guys, I have a quick question regarding Unit of Measures. We store Material A in Meters and we purchase in KG 1 M = 9.7 KG  when MRP Runs it will create Reqs in Meters. When we convert the Reqs it will look at the conversion factor and create the