Mediaplayer

I've downloaded media player several times and still it's not working, I can't get movies to play that requries media player, any advice?

try installing flip4mac, which let's you play wmv (windows media) files
http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx

Similar Messages

  • MediaPlayer OnEndOfMedia not working in Webstart application

    I have an issue with a Swing/JavaFX application where I'm using the mediaPlayer to play a video. The application works just fine when it is run in my eclipse but as soon as I pack it and upload it to a webserver the video gets played without a problem but the onEndOfMedia Runnable doesn't get triggered anymore. Anyone got a clue how that's possible? Like I said the code works from eclipse and the video itself works also in webstart.
    mediaPlayer.setOnEndOfMedia(new Runnable() {
    public void run() {
         System.out.println("End of Media!");
    // do something
    });

    >
    Unfortunately I only have a massive project which I can't simply reduce.
    >
    It's really hard to diagnose something without anything to look at. And if this turns out to be caused by a bug in the library itself as opposed to your own code, the lack of a simple code sample demonstrating the activity that is't working is going to make it difficult to file any bug reports. In the absence of a code sample, I'm going to have to ask quite a lot of questions and the best I'm going to be able to give you is advice, not solutions.
    Does the program work the way you expect it to when you run the files given in the dist/ folder as opposed to your website?
    Where is the video relative to the where the application is run?
    Is whatever you are doing in the onEndOfMedia function something Webstart is allowed and/or able to do? What is supposed to happen when the video is over and what is actually happening?
    Have you given the MediaPlayer any onError functions? Have you gathered data from its other events? What do they say? What is happening up until onEndOfMedia is supposed to be called? What is the value of currentTime compared to the value of totalDuration when the video is nearing the end? What does the status variable indicate? Keep track of all the variables in the MediaPlayer and see if you can find any anomalies.

  • How to improve performance of MediaPlayer?

    I tried to use the MediaPlayer with a On2 VP6 flv movie.
    Showing a video with a resolution of 1024x768 works.
    Showing a video with a resolution of 1280x720 and a average bitrate of 1700 kb/s leads to a delay of the video signal behind the audio signal of a couple of seconds. VLC, Media Player Classic and a couple of other players have no problem with the video. Only the FX MediaPlayer shows a poor performance.
    Additionally mouse events in a second stage (the first stage is used for the video) are not processed in 2 of 3 cases. If the MediaPlayer is switched off, the mouse events work reliable.
    Does somebody know a solution for this problems?
    Cheers
    masim

    duplicate thread..
    How to improve performance of attached query

  • Did you hit this error before in javafx MediaPlayer?

    Hi,All
    I 'd like to make a javafx mediaplayer to play mp3 ,and I found some of mp3 wouldn't be supported by javafx mediaplayer,I don't know how can I solve this bug?
    I posted a mp3 file to the public network ,if you are interested in this issue, you can download this mp3 from this line for test.
    https://www.dropbox.com/s/wk2i9amk0kczqxe/And%20the%20Cradle%20Will%20Rock.mp3
    *mediaPlayer.getError() = MediaException: UNKNOWN : [com.sun.media.jfxmediaimpl.NativeMediaPlayer@104fc23] "Error media invalid": "Error media invalid"*
    Exception Message:
    * Copyright (c) 2008, 2011 Oracle and/or its affiliates.
    * All rights reserved. Use is subject to license terms.
    import java.io.File;
    import javafx.application.Application;
    import javafx.scene.media.AudioSpectrumListener;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaPlayer;
    import javafx.stage.Stage;
    * An example of an AnchorPane layout.
    * @see javafx.scene.layout.AnchorPane
    * @related controls/text/SimpleLabel
    * @resource icon-48x48.png
    public class AnchorPaneSample extends Application {
         private MediaPlayer mediaPlayer;
         private Media media;
         private AudioSpectrumListener spectrumListener;
         private void init(Stage primaryStage) {
              initializeMp3();
        public void initializeMp3()
             if (mediaPlayer != null )
                mediaPlayer.stop();
                mediaPlayer.setAudioSpectrumListener(null);
             String fullpath="C:/And the Cradle Will Rock.mp3";//please download this mp3 from this line ,https://www.dropbox.com/s/wk2i9amk0kczqxe/And%20the%20Cradle%20Will%20Rock.mp3
             File file=new File(fullpath);
              media=new Media(file.toURI().toString());
             mediaPlayer=new MediaPlayer(media);
             mediaPlayer.setAutoPlay(true);
             mediaPlayer.setAudioSpectrumNumBands(10);
            mediaPlayer.setAudioSpectrumListener(spectrumListener);
            mediaPlayer.setAudioSpectrumInterval(1d/30d);
             mediaPlayer.setOnError(new Runnable() {
                 @Override public void run() {
                     System.out.println("mediaPlayer.getError() = " + mediaPlayer.getError());
             mediaPlayer.setOnEndOfMedia(new Runnable(){
                   @Override public void run() {
                            //todo
        @Override public void start(Stage primaryStage) throws Exception {
            init(primaryStage);
            primaryStage.show();
        public static void main(String[] args) { launch(args); }
    }Edited by: imtoocute on May 22, 2012 11:21 AM
    Edited by: imtoocute on May 22, 2012 11:22 AM
    Edited by: imtoocute on May 22, 2012 11:34 AM

    It appears that the file is actually encoded as aac, not mp3. Try changing the file extension and see if that doesn't help.
    We'll look at handling this sort of discrepancy, but I'm not sure how reliably we will be able to detect this condition.
    General / Container Stream #1
         Total Audio Streams for this File.................1
         Audio Codecs Used.................................AAC LC
         File Format.......................................MPEG-4
         Play Time.........................................3mn 0s
         Total File Size...................................6.62 MiB
         Total Stream BitRate..............................308 Kbps
         Title (Tag).......................................And the Cradle Will Rock...
         Copyright (Tag)...................................2011 Rockabye Baby! Music
    Audio Stream #1
         Codec.............................................AAC
         Codec (FourCC)....................................40
         Audio Stream Length...............................3mn 0s 513ms
         Audio Stream BitRate..............................304 Kbps
         Audio Stream BitRate Mode.........................VBR
         Number of Audio Channels..........................2
         Audio Channel's Positions.........................Front: L R
         Sampling Rate.....................................44.1 KHz
         Audio Stream Size.................................6.55 MiB (99%)
         Date of Original Encoding.........................UTC 2011-11-09 18:50:15
    Menu / Chapters Stream #1

  • Best practice to use MediaPlayer?

    Is the best practice to use attributes of MediaPlayer (such as playing) or to request the PlayTrait and read its playState attribute?
    (This question comes from a customer.  Reposting here for the OSMF team to respond and for the benefit of the whole group.)
    Sumner Paine
    osmf product manager

    For playback use cases, I'd recommend you stick with MediaPlayer, as it's simpler to use and manages all of the trait event registration.

  • Application crashes on MediaPlayer play() method for a Mp4 file

    Hi All,
    I am using JavaFx 2.2.3 and jdk 1.7.0_09
    I am facing some issue with MediaPlayer behaviour when I am selecting a perticular file and playing the media file it crashes the Application and never reflecting any of the error or Exception.
    I has used the downloaded file from the youtube the file link is as bellow.
    http://www.youtube.com/watch?v=u516F75JcRk

    Hi All,
    I am using JavaFx 2.2.3 and jdk 1.7.0_09
    I am facing some issue with MediaPlayer behaviour when I am selecting a perticular file and playing the media file it crashes the Application and never reflecting any of the error or Exception.
    I has used the downloaded file from the youtube the file link is as bellow.
    http://www.youtube.com/watch?v=u516F75JcRk

  • How to draw 2D shapes on the image generated by JMF MediaPlayer?

    Hello all:
    IS there any way that we can draw 2D shapes on the image generated by JMF
    MediaPlayer?
    I am currently working on a project which should draw 2D shapes(rectangle, circle etc) to
    mark the interesting part of image generated by JMF MediaPlayer.
    The software is supposed to work as follows:
    1> first use will open a mpg file and use JMF MediaPlayer to play this video
    2> if the user finds some interesting image on the video, he will pause the video
    and draw a circle to mark the interesting part on that image.
    I know how to draw a 2D shapes on JPanel, however, I have no idea how I can
    draw them on the Mediaplayer Screen.
    What technique I should learn to implement this software?
    any comments are welcome.
    thank you
    -Daniel

    If anyone can help?!
    thank you
    -Daniel

  • In Serial Element mediaPlayer.bytesLoaded for second video includes first video bytes

    Hi,
    I am using SerialElement for displaying ads and then main video so in my player I set my loading of the progress bar using mediaPlayer.bytesLoaded but the problem is that the loaded bar for the second video includes the loaded bytes from the first video also so my loaded bar gets set slightly larger and when I try to seek then actually there are no bytes at the end of loading bar and seek is not possible for the end portion, it gives a very bad user experience. I tried to confirm this behaviour by taking a 20 min video as first video and then main video so when second video started buffering I traced the mediaPlayer.bytesLoaded and I got value around 760sec, and I dont think my bandwidth is so good that it will load 760 sec video in few seconds.
    Is this behaviour expected? If this is the case then how can I clear the bytes loaded for the second video?
    Regards,
    Amit

    I've been fixing some bugs in this area, you might want to upgrade to public trunk and see if your problem has been resolved.

  • Is it possible to transfer songs in iTunes to Mediaplayer 10...it's just

    .....it's just that my daughter has a Creative Zen Sleek and it has it's own Creative Media Source for the "playlist/library" to store these songs. I have tried to transfer the iTunes "playlist" to the c:drive but when I open the "creative software" and try to import the file the iTunes file does not show up.
    I need ANY help I can get with this I have been at this since yesterday afternoon with updating the computer to Windows XP Pro and all the nice little glitches that come with it and I am just absolutely at my wits-end with this.
    Also I do have the MediaPlayer 10 also available, but I have also been having the same problem.
    Please help a VERY FRAZZLED MOM !!!

    bear with me...I'm trying to get used to the terminology, I have read somewhere about converting songs to "AAC" would this be helpful at all?
    It's just that I have never had to burn a CD and I really don't want to have to learn and figure out something else.
    I am already so frustrated with this whole thing. My daughter still has another $10. worth of itune music money in her account and to think after downloading all this (on dial-up) mind you..I would still need to learn how to transfer these to a CD. Which I THINK we have the software to do this on this computer...and then to trasnfer it to her Zen !! uuuuugggghhhhh!

  • (!apple video) with gnome-mplayer & gecko-mediaplayer

    I'm trying to watch these video lectures for my trig class. Can't get them to play. installed firefox 3 (branded) along with gecko-mediaplayer and gnome-mplayer. I'm running arch32 and am having the same problem in kde as I had in gnome. Not sure what the deal is since it appears to start playing but stops almost immediately. Firefox doesnt crash or anything, but the video window just opens gnome-mplayer and displays stopped in the status bar.
    Here is a link to the video
    http://asp.mathxl.com/info/mmlib_mov.as … 4_MSTR.mov
    BTW arch rocks.
    - Rusty

    Yepp, this doesn't seem to work... If you try to download the file, it actually only downloads a file named mmlib_mov.asp, which contains the following test
    <html>
    <head>
    <title>quicktimemovie</title>
    </head>
    <body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <embed src="http://quicktime.pearsoncmg.com/aw/mml/hat04/hat04_0904_MSTR.mov" width="100%" height="100%" bgcolor="000000" pluginspage="http://www.apple.com/quicktime/download/" autoplay="true" controller="true" scale="aspect">
    </embed>
    </body>
    </html>
    What a piece of bullcrap!

  • Where to put in the Wiki: problems with chromium and gecko-mediaplayer

    Hej,
    I had some problems to  watch embedded wmv files in chromium.
    The gecko-mediaplayer plugin did not work, but complained about not being able to load the windows media plugin, although it was correctly installed in the lib-dirs.
    Seems this is a common problem on a lot of *nixes, although I did not find a lot regarding arch.
    Solution was to use the totem-plugin instead of gecko-mediaplayer.
    I wonder what is the correct place to add this to the wiki. Should I just put a note on the browser plugin page (https://wiki.archlinux.org/index.php/Browser_Plugins)?
    Zane

    It's fairly old, but have you tried https://bbs.archlinux.org/viewtopic.php?id=113548 ?
    However https://wiki.archlinux.org/index.php/Browser_Plugins can be a good place indeed, it already has a troubleshooting entry for gecko mediaplayer.
    EDIT: typo
    Last edited by kynikos (2013-08-19 10:49:47)

  • How to avoid pitch difference during MediaPlayer rate change

    Hi guys, I have been developing one MediaPlayer application for playing the video and I found pitch difference when ever I change the mediaPlayer rate like 0.5,1.5. I have tried to look over the internal API of MediaPlayer but my try was worthless. Found few internal class like GSTPlayer and many of the methods are native which is directly bind with the C library I guess. So I would be grateful if any of you guys have something alternative for this problem's solution. Thanks

    Raghu and Ravi:
    Thanks for your quick responses, but I still need to load data into ODS in a traditional way. Data from R/3 should flow through InfoSource and Update Rules into ODS. Transactional ODS doesn't support that.

  • AdvancedMedia Sample doesn't run video (MediaPlayer)

    Hi!
    Running the AdvancedMedia sample from JavaFX everything works OK.
    Using MediaPlayer class it shows the flash video from http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv
    The problem is if I try to read other flash video... There is no video!
    Looking at the video file example oow2010-2.flv the properties say it is a FLV4 video with format VP6.
    And with this configuration it works fine.
    I've tried to convert a several MP4 videos in to Flash(flv) but I never found a FLV4/VP6 format option to do it.
    So, is there anyway to read "normal" FLVs files using the AdvancedMedia sample ?
    Regards
    Pedro

    >
    Here is an old thread explaining FLV and the format you need: Playing video media
    Can you give us a self contained example of what you are doing between  tags?
    >
    Thanks for your answer.
    First I did the example reading the video file from the Web.
    To be more comprehensive I show a small code reading the file locally with the same problem.
    Here is the Java code that I use:
    package mediaplayer;
    import java.io.File;
    import javafx.application.Application;
    import javafx.collections.ListChangeListener;
    import javafx.collections.MapChangeListener;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaView;
    import javafx.scene.media.Track;
    import javafx.stage.Stage;
    * A sample media player which loops indefinitely over the same video
    public class MediaPlayer extends Application {
        @Override
        public void start(Stage stage) {
            stage.setTitle("Media Player");
            // This file flv/VP6 from Oracle works fine.
            String filename = "C://VideoFromOracle.flv";
            Media media = new Media(new File(filename).toURI().toString());
            javafx.scene.media.MediaPlayer mediaPlayer = new javafx.scene.media.MediaPlayer(media);
            mediaPlayer.setAutoPlay(true);
            mediaPlayer.setCycleCount(javafx.scene.media.MediaPlayer.INDEFINITE);
    // Print track and metadata information
            media.getTracks().addListener(new ListChangeListener<Track>() {
                public void onChanged(Change<? extends Track> change) {
                    System.out.println("Track> " + change.getList());
            media.getMetadata().addListener(new MapChangeListener<String, Object>() {
                public void onChanged(MapChangeListener.Change<? extends String, ? extends Object> change) {
                    System.out.println("Metadata> " + change.getKey() + " -> " + change.getValueAdded());
    // Add media display node to the scene graph
            MediaView mediaView = new MediaView(mediaPlayer);
            Group root = new Group();
            Scene scene = new Scene(root, 520, 200);
            root.getChildren().add(mediaView);
            stage.setScene(scene);
            stage.show();
        public static void main(String[] args) {
            Application.launch();
        }This code is working OK opening the application and showing the video.
    It reads the Oracle video example in the root "C:\" downloaded before from [https://blogs.oracle.com/javafx/entry/mpeg_4_multimedia_support_in].
    The problem is I can´t read any other videos FLV or MP4.
    All the videos I created/converted to FLV or MP4 never work!
    Edited by: 986488 on 7/Fev/2013 13:30

  • How to install gecko-mediaplayer without corrupting kde fonts

    Hi,
    After installing gecko-mediaplayer with pacman, the Sans Serif and Monospace fonts I use in KDE went kind of fuzzy. Removing gecko and its dependencies restored the fonts to their proper state. I'm guessing its something to do with the fact that gecko requires ttf-dejavu as a dependency.  Does anyone know why this might be happening? It's not a huge issue (I'm sure I can live without gecko) I'm just curious to understand why.

    (This is a slightly old post, but not responded to -- I have been looking for details on this for days and finally figured it out for the most part on my own. I figured I'd share my results and respond at the same time)
    You're right, it does have something to do with ttf-dejavu. I could repeatedly install that dependency, close konsole, reopen it -- and the fonts were corrupted. Uninstall it, close konsole, open it -- fonts are fine again. While looking around and not finding anything, I finally came across some faq that said to install all of this crap, which ONLY MADE THINGS WORSE:
    font-bh-ttf ttf-cheapskate ttf-isabella ttf-junicode ttf-ms-fonts ttf-dejavu ttf-mph-2b-damase artwiz-fonts terminus-font font-bitstream-speedo gsfonts ttf-bitstream-vera xf86bigfontproto xorg-fonts-100dpi xorg-fonts-75dpi xorg-fonts-alias xorg-fonts-encodings xorg-fonts-misc xorg-fonts-type1 ftgl font-mathematica ttf-freefont
    It made things 'worse' because even after uninstalling those things (unlike what happened with ttf-dejavu), which had my whole desktop with corrupted fonts, the problem wouldn't go away. It led to the conclusion that ttf fonts clearly screwed everything up. Other fonts seemed to work fine. Checked xorg, and freetype2 was loaded as a module and installed, bitmap was loaded as a module, blah blah. I made a new account just out of curiosity..... amazingly, the fonts were weird but working properly. No more strange corruption. So, I went around looking for font folders or whatnot to get rid of in the hopes that starting over would fix it.
    It did fix it.
    I think all I did was..
    rm -r ~/.fontconfig ~/.fonts ~/.fonts.conf and rebooted for grins. It worked fine for me \o/. Even better, installing ttf-dejavu and all the crap above after that also worked properly after that.
    However, I would note that occasionally when I would open konsole, it would be screwed up again. Closing it and opening it again fixed it. I did fc-cache -fs afterwards (as the NORMAL user) in the hopes it would cure that and I haven't seen it happen since, though it could be a coincidence.
    LONG STORY SHORT:
    (normal user)
    rm -r ~/.fontconfig ~/.fonts ~/.fonts.conf
    fc-cache -fs
    reboot
    Good to go if xorg has the right modules and all the ttf stuff is installed.
    Good luck
    Edit: ...sigh. Wtf. Plasma randomly crashed, and the fonts are corrupted again, and none of the above folders exist anymore...
    Edit2: .....wtf? logging out and in after the above crash, everything is correct again. except konsole, which (like usual after installing ttf stuff) is corrupted until closing it once then opening it again. i wish someone would figure out how to permanently deal with this.
    Edit3: It seems after everything is 'fixed' there are a few things that aren't, so I suspect there's another font file/folder somewhere I need to get rid of. alt+f2 brings up krunner or whatever, and the fonts are totally corrupted as before. I'll post if I figured it out, though it's not a high priority atm.
    Last edited by FrozenFox (2009-03-24 06:49:15)

  • Why are MediaPlayer callbacks all Runnables rather than EventHandlers?

    Every other API in JavaFX with event processing callbacks implements EventTarget and allows EventHandlers to be registered to handle events.
    However the MediaPlayer does not implement EventTarget and callbacks for things which look like they should be events (e.g. onPlaying, onStopped, onPaused) are handled by registering a Runnable.
    Why is MediaPlayer different? Are there any extra considerations which need to be taken into account when programming the MediaPlayer?
    For instance, in code such as this (from forum post How can I solve the error "media corruption error"? =>
    mpLogo.setOnEndOfMedia(new Runnable() {
      public void run() {
        mpLogo.stop();
        mediaView.setMediaPlayer(mpSaludo);
        mpSaludo.play();
        root.getChildren().remove(grupo2);
    });Is the runnable always guaranteed to be run on the JavaFX Application thread? or should you wrap the code in a Platform.runLater call to ensure that the actions manipulating active scene graph objects taken on end of media only happen on the JavaFX Application thread?
    mpLogo.setOnEndOfMedia(new Runnable() {
      public void run() {
        Platform.runLater(new Runnable() {
          public void run() {
            mpLogo.stop();
            mediaView.setMediaPlayer(mpSaludo);
            mpSaludo.play();
            root.getChildren().remove(grupo2);
    });

    I don't know, I think this is an error. I know that there was one part of the media APIs that was called very frequently (the stuff related to histograms) that we didn't use events, but this most certainly should have been events. Dang. If I could find it in email history there must be something on it, but looking at it here I was both surprised and shocked that this one slipped through (since I don't know under what circumstance it would have made sense to use a Runnable here). In fact at first I thought maybe you were looking at some old code (before I knew it was you who posted).
    OK, suppose we all agree this was an error and we need to fix this. What to do? We can deprecate all these methods, but the new methods we'd want to supply would then have the wrong names. We could introduce a proper Event subclass for this and also a special EventHandler which also implements Runnable, just so it can be reused here. We'd then deprecate the methods and just change the hierarchy when we JSR the thing?
    I'm not sure how to recover, any other ideas?

  • Bug with OSMF 1.6 MediaPlayer and swf version = 13.

    When swf version = 13, the MediaPlayer seems to fire the TimeEvent.COMPLETE event twice for a progressive video playback.
    I debugged it down to the NetStreamTimeTrait. It looks like in the case of a progressive video, the "signalComplete" method is called twice.
    First from the onNetStatus event handler (NetStreamCodes.NETSTREAM_PLAY_STOP) and second from the onPlayStatus event handler (NetStreamCodes.NETSTREAM_PLAY_COMPLETE).
    There seems to be an implicit assumption in onPlayStatus that it should not fire for progressive, but yet it does fire. Looks like a bug to me.
    This is not an issue with swf-version=11
    - Abey

    Hi,
    This looks like an issue outside OSMF (might be Flash Player). I can't tell if there's a workaround until we investigate it.
    Please raise a bug in http://bugs.adobe.com/jira/browse/FM so we'll be able to track it further.
    S.

Maybe you are looking for

  • How can I send someone a copy of one of my address lists?

    I need to send a copy of one of my e-mail lists to a friend. How can I select all the names and e-mail addresses on that list and send this information?

  • I need help putting a game on my ipod....

    I feel stupid asking this question since im pretty capable of doing this normally, but for some reason i haven't been able to figure out how to upload my game to my ipod. Ive tried everything i could and nothing seems to work....what do i do?

  • Directory Listing Using Weblogic Server

    Hi all, I need to be able to browse few directories via web page using Weblogic as WebServer ( on Linux RedHat 5.0) for example the directory to be browsed are: /home/oracle/swift /home/oracle/payables Please let me know how I can achieve this !! Tha

  • HT4191 Unable to see my apps in the library

    I am only able to see the 2 apps that I downloaded last week but not the 50+ that were already purchased and downloaded in the last 2 years.

  • How to see the last updates made during Power Nap?

    Hello guys, I am using MacBook Pro with Retina Display with Power Nap turned on. I think it's a great feature, but I wouyld like more control - to be able to see the updates it has made while sleeping. Is there any way to see the last updates made du