YouTube videos and JavaFX

I’d like to watch a specific youtube video on a JavaFX application how can I do?
I tried with jdic libraries, but I see a gray page instead of the webbrowser.
Then I tried another way and I found this guide
http://rakeshmenonp.wordpress.com/2009/08/02/javafx-youtube/
but I tried the code and it does't work for me... I don't see the videos, but only some images.
Can you help me?

I usually develop on Linux and haven't actually gotten to try this with my own code :). Technically, the Vista computer is my brother's and is not equipped with development tools. I used this [sample here instead|http://javafx.com/samples/VideoCube/index.html].
Also, I didn't use this with Youtube, just a WebM encoded video I downloaded from online and opened with the file chooser activated by the sample.
Maybe if we are lucky, a near future version of JavaFX will include WebM support by default. The video codec is after all the successor to VP6 (JavaFX's current default format) and royalty free! That would make a very good alternative to HTML5 in a major project of my own.
Edited by: aidreamer on Sep 2, 2010 3:53 PM

Similar Messages

  • Taking a long time to load a YouTube video and then it will not play

    Trying to watch youtube videos and connection from news source. It has been taking along time to load and then will not play... Do I have a setting off any ideas? This has not been the case until recently

    Try to restart using your installer disk, by inserting your installer disk and restart while pressing C.
    And after it reboot using installer disk and you select the installer language, got o utilities and repair permission and disk.
    Also try to reset your PRAM and SMC:
    http://docs.info.apple.com/article.html?artnum=303319
    http://docs.info.apple.com/article.html?artnum=2238
    IF the problem still presist, you might have to re-install your OS X.
    Good Luck.

  • HT1338 Hi everybody..i have an enigmatic problem since i bought MacBook Air..i can't watch youtube videos and i did install the latest adobe flash player BUT when i start to install it the system keeps asking me to enter a password ? which password i need

    Hi everybody..i have an enigmatic problem since i bought MacBook Air..i can't watch youtube videos and i did install the latest adobe flash player BUT when i start to install it the system keeps asking me to enter a password ? which password i need ??????

    Your admin account password.

  • I have a macbook pro running snow leopard. Just recently I cannot view youtube videos and other online videos. I recently updated my flashplayer plugin and I believe that is the problem. Is the latest flashplayer plugin compatible with 10.6.8?

    I have a macbook pro running snow leopard. Just recently I cannot view youtube videos and other online videos. I recently updated my flashplayer plugin and I believe that is the problem. Is the latest flashplayer plugin compatible with 10.6.8? If this is so, I need to find an older flash player plugin to reinstall. I do not want to upgrade from 10.6.8 at this time because I have 18 yrs. worth of financial records on Quicken that I have read will not work with Lion and I've read bad things about running music programs on Maverick.

    rayvonr wrote:
    ...I have 18 yrs. worth of financial records on Quicken that I have read will not work with Lion and I've read bad things about running music programs on Maverick.
    1)  Quicken 2007 for Intel (Snow Leopard, Lion, Mt. Lion and Mavericks) is a full featured app that can be downloaded from Intuit for $15 and will work with your data file if you are using Quicken 2005, 2006 or 2007 (if you version is earlier, let me know for more instructions on easy conversion):
    http://quicken.intuit.com/personal-finance-software/quicken-2007-osx-lion.jsp
    2) Partition your hard drive, or add an external hard drive and install Mavericks there and "dual-boot" to operate your music programs in Snow Leopard and experiment with them in Mavericks.
    DO NOT install Mavericks over Snow Leopard!

  • My iPad quit playing YouTube videos and iheart radio

    My iPad no longer plays YouTube videos and I Heart radio.  This started after a recent update to the iOS.  Any ideas on how to fix?

    You can try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
    Try again to see if the problem persists.

  • How can I save a YouTube video and watch it later while I'm offline?

    I'm trying to save a YouTube video and watch it offline.

    Another EASY way:
    Ik the address bar, insert "SS" between http://www. and youtube........
    So: http://www.youtube........ becomes
    http://www.'''SS'''youtube..... (.......is the movie you want to see)
    Click enter.
    You'll see another website, where you can download in MP4 or other extentions, low, medium or high quality.
    DONE! ☺☺☺

  • Play a YouTube video using JavaFX components

    I know that we can play a video ( http://zzz/xx/123.flv ), by using the Media View component in JavaFX. In the similar way, is it possible to play a YouTube video in JavaFX ?
    Thank you, for any help in advance.
    Edited by: prabhakar9885 on Sep 17, 2010 4:00 PM

    You might want to take a look at [this thread|http://forums.sun.com/thread.jspa?threadID=5446865], but barring the theoretically possible "hacks" mentioned there, not really.

  • If more than 12 tabs with youtube, video and sound start corrupted

    If i open more than 12 tabs with youtube videos and let then open, on every new tab video and sound corrupted.
    I'm using Firefox 9 x64 nightly and Flash 11 beta2 x64.

    Hi,
    What operating system are you on?
    Does this only happen with the nightly or can you reproduce this on other browsers as well?
    Are videos playing on the other tabs?
    To confirm what you are seeing:
    12 youtube pages are open by the time you get to 12 or 13 the video and audio are corrupted?
    Thanks

  • HT1711 there is a youtube video, and i wish to locate the audio and place it on my ipod,can this be done?

    there is a youtube video, and i wish to locate the audio and place it on my ipod,can this be done?

    Syncing between iPhoto on your iPhone and iPhoto on your Mac is one-way.  You can sync selected albums, events, faces, places albums from your Mac to iPhoto on your iPhone using iTunes. This will not delete any albums you created on your iPhone, just add new albums. But albums you create on your iPhone cannot be synced to your Mac.
    See this page on how to transfer photos from iPhoto on your iPhone to your Mac:
    http://help.apple.com/iphoto/iphone/2.0/?handbuch#blnk7d8f763e

  • I want to install firefox addon called "youtube video and audio downloader 0.3.5 by Inbasic. How do I check to see if it has malware

    How can I check if the program "youtube video and audio downloader 0.3.5 by Inbasic has any malware.
    When I go to download it has the string
    https://addons.mozilla.org/firefox/downloads/latest/413644/addon-413644-latest.xpi?src=userprofile
    I'm so nervous about downloading anything for fear of getting my browser hijacked or worse as it has already happened twice. Any advice on this program or if there is a similar youtube download program that is known to be squeaky clean?

    Hello,
    If you are trying to download videos, i will suggest you to use DownloadHelper add-on or DownThemAll. I have been using both of them and they works pretty well.

  • Youtube videos and my scroll pad keep sticking

    When i scroll down using two fingers on my scroll pad or whatever you call it it pauses for like a second and then its fine again. It also does it when i'm typing and it does it reallly frequently but for like a nanosecond. I also realised it does it when i'm watched youtube videos, and it does exactly the same thing, like the sound continues the video just stops for a second. I'm guessing their all connected but i just wondered if anyone knew how i could fix it cause it's so annoying!
    Thanks for your help.

    It's a function of signal quality and how much other stuff you may have open.
    Wifi or 3 g?  Both things that you mention are streaming, so you need a decent signal to get decent results.  If wifi, then see what else you might be doing that is using processor or network resources. 
    Double tap the home button to see the task bar.  Touch and hold any of the icons until they jiggle, the delete them by touching the minus sign.
    Grab an app like speed test, and see what your connection speed is.  I have found that anything less than 1.5 mps will lead to spotty video streaming.

  • What is a safe add-on to download youtube video and audio, something virus and malware free?

    What is a safe add-on to download youtube video and audio, something virus and malware free?

    We do not really discuss add-on comparisons here, but note all officially hosted add-on extensions hosted on addons.mozilla.org and available from the Firefox User Interface will have been reviewed and be safe, secure and virus free.
    * Use Menu Button -> Add-ons -> [Search all Add-ons] <br />(Or key in to the Addressbar ''about:addons'')
    * Example [https://addons.mozilla.org/en-US/firefox/search/?q=video+download&sort=users&appver=34.0 search] (You may be able to do a better targeted search from your own machine)
    ** With >5M users top of the list is [https://addons.mozilla.org/en-US/firefox/addon/video-downloadhelper/ Video DownloadHelper]
    N.B. There may be possible legal &/or copyright issues with downloading some material, but that is out of scope of this support forum discussion.

  • Play a YouTube video in JavaFX?

    Moderator action: deleted rant and cleaned up what remains.
    I am trying to make this code play an FLV video, and it doesn't show any video. Only Music. How can I convert, for instance, a YouTube video, to play in JavaFX? If I download a YouTube video, how can i encode it?
    package musica;
    import javafx.application.Application;
    import javafx.beans.property.ObjectProperty;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.GridPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaErrorEvent;
    import javafx.scene.media.MediaPlayer;
    import javafx.scene.media.MediaView;
    import javafx.scene.text.Font;
    import javafx.scene.text.FontPosture;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    import javax.swing.Action;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    //import javafx.io.http;
    * @author André Lopes
    public class Musica extends Application {
        public MediaPlayer MP;
        public Media Media;
        public static String URL;
        public static JFileChooser JFC;
        public static Duration currentTime;
        public MediaView mediaView;
        //Main
        public static void main(String[] args) {
            launch(args);
        public Musica()
         currentTime = Duration.ZERO;
         mediaView= new MediaView(MP);
           URL = "";
         //URL = "http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv";
        @Override
        public void start(Stage primaryStage) {
            primaryStage.setTitle("Hello! This is Yours Music Player!");
            //Botão Play
            Button Play = new Button();
            Play.setText("Play");
            Play.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent event1) {
                    Media = new Media(URL);
                    MP = new MediaPlayer(Media);
                    MP.setStartTime(currentTime);
                    mediaView.setMediaPlayer(MP);
                    MP.play();
                    System.out.println("?"+ MP.getStatus());
                    mediaView.setOnError(new EventHandler<MediaErrorEvent>() {
                    @Override
                    public void handle(MediaErrorEvent arg0) {
                                System.out.println("MP.getStatus: " + MP.getStatus());
            //Botão Hello World
            //Botão pra escolher Musica
            Button SelctFileButton = new Button();
            SelctFileButton.setText("Music Chooser/Finder:");
            SelctFileButton.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                  public void handle(ActionEvent arg0) {
                    System.out.println("Java File Chooser Opened");
                    JFileChooser search = new JFileChooser();
                    search.showDialog(search,URL);
                    URL = search.getSelectedFile().toURI().toString();
                    System.out.println("URL:"+URL);
           //Botão para pausar;
           Button Pause = new Button();
           Pause.setText("Pause");
           Pause.setFont(Font.font(null, FontPosture.ITALIC,15));
           Pause.setOnAction(new EventHandler<ActionEvent>() {
           @Override
                public void handle(ActionEvent arg0) {
                try {
                    currentTime = MP.getCurrentTime();
                    MP.pause();  
                    }catch(java.lang.NullPointerException e)
                     System.out.println("java.lang.NullPointerException \n");  
                     System.out.println("Error: Unable To pause! May happens if you didnt have a music Playing!");  
           //Botão Para Continuar;
           Button Continue = new Button();
           Continue.setText("Continue/UnPause");
           Continue.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent arg0) {
                   //MP.setStartTime(currentTime);
                   MP.pause();
            //Grid ! Layout
            GridPane grid = new GridPane();
            StackPane root = new StackPane();
            grid.setHgap(2);
            grid.setHgap(2);
            grid.setVgap(2);
            Scene Scene = new Scene(root,500,500);
            root.getChildren().add(grid);
            root.getChildren().add(mediaView);
            //Scene.getStylesheets().add(Musica.class.getResource("Musica.css").toExternalForm());
            //grid.getStyleClass().add(Musica.class.getResource("Musica.css").toExternalForm());
            primaryStage.setScene(Scene);
            primaryStage.show();
            //Adicionando Botoes no Grid
            grid.add(Play,10,10);
            grid.add(SelctFileButton,11,10);
            grid.add(Pause,10,11);
    }Edited by: 932269 on 06/05/2012 20:36
    Edited by: 932269 on 06/05/2012 20:37
    Edited by: EJP on 8/05/2012 12:02

    After the question title has been cleaned up, I can see now that it relates to youtube video playback.
    Just embed the youtube html5 video player in a webview and stream video from youtube.
    This will work for videos that youtube has made compatible with their html5 player (about 30% it seems).
    Here is a sample embedding a youtube hosted trailer uploaded by sony pictures.
    import javafx.application.Application;
    import javafx.scene.*;
    import javafx.scene.web.WebView;
    import javafx.stage.Stage;
    public class YouTubePlayer extends Application {
      public static void main(String[] args) throws Exception { launch(args); }
      @Override public void start(final Stage stage) throws Exception {
        final WebView webView = new WebView();
        webView.getEngine().loadContent(
          "<iframe width=\"640\" height=\"390\" src=\"http://www.youtube.com/embed/IyaFEBI_L24\" frameborder=\"0\" allowfullscreen></iframe>"
        stage.setScene(new Scene(webView, 660, 410));
        stage.show();
    }If you have any questions, you can read more about youtube embedding here: https://developers.google.com/youtube/player_parameters

  • I have a Mid 2009 Macbook Pro 13 with no restore disk; it has OS 10.8.4 I believe there is something wrong with the OS due to I can not install flash player to view Youtube videos and the when we plug in a Bose headset the sound out will work sometimes

    I bough a used Macbook Pro mid 2009 that came with OS 10.8.9 it didn't have a backup restore disk with S/N W8******66D
    When trying to view some youtube videos; a window would pop up saying "it needs adobe flash player is required for video play back get the latest flash player" but after downloading the file and during installation would have errors and will not installed.....tried to reboot and install again.....but still the same.
    The othe thing I had noticed is when using a good Bose headset with mic the sound output would noticed the headset and then switch from headset to Internal speekers and headset.....thinking that there might be something wrong with the plug in port of the computer or the headset.....the headset works with no issues on my iPad so there must be something wrong with the computer.....tried to move the plugin around the port but no change....while the headset is plug in can hear a short clicking noise and the sound would get lost and back again......but with nothing plugin to the port there is no issue with the sound or mic.
    Thanks for your feed back......it looks like I have two different issues one is a software issue and the outher is a hardware issue
    <Edited By Host>

    The "restore disk" is built into the Mac. See About Recovery.
    Need more specifics about what error messages you got while installing Adobe Flash.
    However, you can almost avoid Flash altogether by setting YouTube to play the HTML5 version instead.
    Click the Try something new! link at the bottom of the YouTube page.
    I don't know about the sound issue. Might be hardware as you think. Try other headphones to check.

  • I cannot listen to my youtube videos and multitask at the same time after updating to 6.1 !?

    i had just purchased an iphone 5 and had IOS 6 already on it when i recieved it .However i decided to update to IOS 6.1 but now when i go on youtube through a browser such as chrome or safari to play youtube videos , i have to stay on that screen to hear the video . For example when i did not update yet ,i use to listen to music on youtube through my chrome browser and exit the screen and double tap the home button and swipe to the left to play the music in the background as i mulitasked such as texting, web browsing etc. But now i cant do that. When i double tap the home button and swipe to to the left to press the play button , the sound does not start up. This is very frustrating because i cant mulittask and i have to stay on the screen ! Is there a way to fix this myself or is a bug issue that needs a new software update !? thank you !

    Are you loading those videos as Flash or HTML5? It is possible to prevent videos from playing until you click something with Flashblock for Flash or Stop Tube HTML5 for HTML5. You can also stop the commercials with Adblock Plus with an Easylist subscription.
    * https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
    * https://addons.mozilla.org/en-US/firefox/addon/flashblock/
    * https://addons.mozilla.org/en-US/firefox/addon/stop-tube/

Maybe you are looking for

  • How do i add an apple id for family sharing for my husband

    I am trying to set up family sharing and have added my daughters easily but when i try and invite my husband it says we cant as he email address is already associated with my apple id. How can i set him up to use family sharing?

  • Problems with DOS

    Hi guys, I couldn't find an answer on Sun to the following problem. I've downloaded j2sdk1.4.2_01 and put it into the path. I have all of my programs on the c drive in a folder called My Java. When I change the current directory to C:\My Java then ty

  • Iphone activation online is not working

    So heres my issue. I got the iphone 4 yesterday. Did what it said online to activate it, it said it was pending, but my iphone 4 never gave any indication it was in the process of activating nor did i recieve an email saying the process was starting.

  • VBA API: How to get the monitor number?

    Hello, I have written an Excel application which controls an external application (making inputs, reads out the window, etc.). I use a lot of API functions, e.g. as in the code from thisarticle: https://support.microsoft.com/en-us/kb/194578?wa=wsigni

  • How to reverse movement type 647

    Hi Everyone, Need to reverse the GI (movement type 647) posted for Intra Co STO. Tried using MIGO or MBST. We are getting error message: m7130 (Material Document cannot be processed) The only allowed transactions that I found in OMJJ for movement typ