MediaView doesn't display video; opens new window instead

Hello,
I'm having some trouble working with the MediaView/MediaPlayer classes.
Using Netbeans' composer, I've configured correctly (I think) a MediaView component so that it should load the MediaPlayer, which loads a local Media file. However, when executed, the MediaView area just remains blank, while a new "ActiveMovie" window opens, rendering the video.
I've done some searching over here and on google but I really haven't found any solution. I know the ActiveMovie window is probably just DirectShow opening the video; why, though, does this happen, if I explicitly designed the application so that the MediaView component alone displayed the video?
It's as if, by instanciating a Media component, the code was issuing a Open File system call and Windows - not JVM - was doing the rest.
Any help is very welcome.
Thanks,
Leo

aidreamer wrote:
I don't know how to fix it, assuming that is even possible without rewriting DirectShow or the JavaFX platform, but I can tell you about my own experiences with this issue.
I was trying to figure out a way to run WebM video files in JavaFX and installed a Direct Show filter from Xiph to enable it. It sort of worked, except that it caused the same issue you just described. I tried playing other video formats handled by Direct Show, and they ran normally, so I'm assuming that it is an issue specific to some of the filters.Thank you for your reply, I think now I've finally understood what the problem is!
Indeed, I've ran into some cases where one tried to use recent HD Youtube videos (VP8-encoded, which is what WebM uses: see http://en.wikipedia.org/wiki/WebM#Services) and have also failed.
Apparently, JavaFX only really supports VP6 videos. Probably that's the reason the SimpleMediaPlayer sample (http://javafx.com/samples/SimpleVideoPlayer/) uses a VP6 video, and not, say, an WMV or whatever other encode.
The main problem is the strange deceitfulness of all documentation related to video playback on JavaFX: while most articles and docs state rather ambiguously that "any video supported by the system will run on the JavaFX platform", only one document explicitly states that that's not quite the case:
Video Codecs
Cross-Platform: On2 VP6
Windows XP and Vista: All the codecs supported by Windows Media Player
Mac OS X 10.4 and 10.5: All the codecs supported by Mac through Core Video
Ubuntu 8.04 and OpenSolaris 2009.06: All the codecs supported by GStreamer.http://download.oracle.com/javafx/1.2/tutorials/media/format.html#audio
Well, that clears things up! Natively, JavaFX only really supports On2 VP6 encoding, whilst any other encoding will depend solely on the operating system and 3rd party software installed. So that's the reason why, when trying to open any other video which isn't VP6-encoded, JavaFX calls the 3rd party codec, which opens an ActiveMovie DirectShow window, failing to display the player in the appropriate MediaView container. Please do correct me if I'm wrong; I've only been playing with JavaFX for a day or so!
The deceitfulness is that JavaFX is fanfared as a "ultimate, play-all media API", which lead me to thinking that it would easily handle the most popular video encoders. This assumption is enforced if we remember that the old Java Media Framework (JMF) API did indeed suport MPEG-1.
Once again, thanks!

Similar Messages

  • Some programs open new window instead of new tab in open window

    Firefox 17.0.1. I have the option "Open new windows in a new tab instead" set, I use the Tree Style Tab 0.14.2012111201 addon (and others unrelated to tabs or windows), and I have multiple profiles. It seems that since I started using multiple profiles some programs (MediaMonkey's help, for example) insist on opening a new Firefox window. If I select any of the one or more currently open profiles it says "Profile in use". Some programs that want to open an internet site to show their help files do open a tab in the current browser window, as expected and desired. But more programs cause the Choose a profile box to display.

    Make sure that you do not start Firefox with the -no-remote switch or have set the environment variable MOZ_NO_REMOTE=1 (Control Panel > System > Advanced > Environment variables).
    If you need to have more than one profile open at the same time then start subsequent instances with the -no-remote command line switch.<br />
    You can not send links from other programs to a Firefox instance that is started with the -no-remote switch.
    In such a case you need to drag links in a Firefox window or paste the link in the location bar.
    *http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • Firefox homepage button opens new window instead of new tab

    When I hit the homepage button on the Firefox toolbar, it now opens a whole new window instead of a new tab. It used to work until I upgraded to Firefox 9. Any suggestions as to how to fix this?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Unable to open link in new tab in same window; opens new window instead. Preference is checked correctly. Is this new to version 3.6.11?

    Before I updated to the latest of Firefox 3.6.11, I would click on a link in the window and it would open a new tab in the same window. Now whenever I do the same thing and entirely new window is opened. In preferences "Open new windows in a new tab instead" is checked. I'm using a Mac OS 10.4.11. Should I downgrade to an earlier version to solve this problem?

    After clicking the preference on, off, then on again, the tabs feature has returned to normal upon a restart.

  • When i right-click 'open in new tab', it opens new window instead.

    that's pretty much it - when i want to open a link and i right click on it and select OPEN IN NEW TAB, firefox opens a new window instead. this started quite recently and i have not made any changes to cause it.

    I had this problem too. Inspired by cor-el's suggestion, I just disabled Tab Mix Plus 0.4.0, and the problem went away.
    What is a little weird about it is that for me, all new tabs opened in the '''same''' windows. I could have several windows open, but every new tab opened in just one window, and always the same one.

  • Firefox 4 new tab opens new windows instead

    After upgrade to Firefox 4, the feature "mouserightclick-open new tab" opens a new window, instead.
    From then on, all "open new tab" operations open new tabs in the other window, the second one created.

    Thanks for the hint, cor-el , but problem persisted even with all Add-ons disabled.
    But after some 8 days and several O.S. reboots, the problem disappeared .
    No action was taken, I suppose that it was some bug that the developers corrected.
    Issue solved.

  • Firefox opens new windows instead of tabs on my mac laptop not on my PC

    Firefox 3.6.8 opens multiple windows instead of new tabs no matter how I select the options in preferences. This happens on my Macbook Pro but not on my Windows PC.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    You can also try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.

  • 'open in new tab' opens new window instead

    My system just went through a bunch of updates, maybe that was Windows 7, but I'm unsure. I didn't initiate them. Anyway, now when I right click 'open in new tab' instead a new window opens. I have read a bunch of other similar posted questions the answers to which do NOT solve the problem I'm having. I've gone into Tools>Options>Tabs and selected the appropriate boxes. PLEASE read this post carefully and only respond if you have a working answer. Thank you very much!
    My system is Windows 7
    I use Firefox as my default browser

    The items on the right-click context menu should be independent of your settings and should work as described.
    I think there might be an exception for links with certain kinds of scripts attached, so if this only affects some links or links on a particular sites, you could post some page addresses and describe which links cause the problem.
    Do you have any tab-related extensions such as Tab Mix Plus? If so, please review the settings to make sure they haven't become changed or corrupted.
    You also could test whether Firefox works with extensions disabled. One way is to try Firefox's Safe Mode. That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Why is firefox opening new window instead of tabs?

    Until today when I clicked on a link it would open a new tab. For some reason when I click on a link now it opens a new window. I'm not sure why. I check my options and it's set up to open tabs. Yesterday it was opening in tabs. I just don't know what's going on, hope you can help.
    Markita Larsen

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • No matter what settings I change Firefox opens new windows instead of new tabs. How can I stop it?

    After the last update when selecting a searched item a new window opens. Then when you select an item in the newly opened search window, it takes you to the item in another new window. It will continue each time you search and select. Very frustrating. Like Firefox better before the udpate.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Why doesn't the option "open new windows in a new tab instead" work in the newest version of Firefox when it worked fine in previous versions?

    In previous versions when using Google search and clicking on a link it would open in a new tab. Now it opens on top of the Google search preventing a comparison of two links by switching from one tab to another.

    Hello,
    I found this useful extension:
    https://addons.mozilla.org/en-US/firefox/addon/open-bookmarks-in-new-tab/
    not sure if it solves your issue
    Regards
    Teppei

  • I just upgraded Firefox, and now it's opening new windows instead of news tabs when I click on links. It's driving me nuts. How do I get pages I click on to open in new tabs instead?

    I'm using Firefox 3.5.14, and had no similar problems with an earlier edition.
    I believe I've already selected the "open in new tab" option. Am I missing something?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • How do I change the default settings for opening new window?

    Everytime I click on a link, new window would only open in new tab not new window. How would I change this default to open new windows instead of new tab?
    Thanks.

    HI,
    From the Safari Menu Bar click Safari/Preferences (or Command + comma on your keyboard).
    Click Tabs. You can set your preferences there.
    Carolyn
    Message was edited by: Carolyn Samit

  • If i open a new window instead of a new tab, in the new window does not appear the menu tab

    i want to open new windows instead of tabs and in the new window should appear the menu tab and scrolling up and down, but now with the new version the menu tab does not appear and i cannot scroll up and down.

    Do you mean opening a window via the File menu (File > New Window) or do you always want to open links that you click on web pages in a new window?
    See also:
    *http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • Links gose to new window instead of adding as tabs even I chose not to in preferences

    Whenever I click any links, it opens new windows instead of new tabs on existing window as used to be even I deselected the "open new window in a new tab instead" at the preferences. It's started from new Firefox 4.0.

    ''Chinamoon [[#question-1046902|said]]''
    <blockquote>
    Because of my work I have to be free to set side by side images and for that I need only windows no tabs - some work resolutions does not work in tabs - I am going crazy trying to do that since all the options I have tried so far are null.
    </blockquote>
    I had that add on and it didn't solve the problem. I cannot put two
    tabs side by side to compare slides. I hate to go back to IE but so far outside no longer supported Safari is the only answer. Thank you anyway.
    China

Maybe you are looking for