Saturday Jun 13, 2009

Finally JavaOne 2009 is over. A lot of excitement in the floor, keynotes and exhibits. Being behind the scene for most of the keynotes, now I realize the importance of testing the demos and testing them again and again. You first need to please the demo gods before you can go on the stage to setup ;-)


There were a lot of interesting questions at the Utopia lounge on JavaFX. Some related to technology, maturity of the product and tools, some related to testing, and support. I think our roadmap should answer most of these questions and you can always ask JavaFX marketing for more clarification at javafx-interest-AT-sun-DOT-com. As part of JavaFX team, we perform a lot of testing and use existing tools with some modification to accommodate JavaFX testing needs. Authoring tool was something a lot of people were interested in. This is how JavaFX will bridge the gap between developers and designers.


The most exciting experience that I had at Utopia was when a 10 year old kid came by and asked - "What is this and how can I build it". Now that is the audience we can get interesting feedback from. Talking of which, I am excited to announce the commencement of first school taught course on JavaFX. This will be taught at San Jose State University, California this summer (CMPE-297). Nearly 25 students have registered, and will be the first set if industry candidates ready to explore, develop and spread JavaFX in the industry. The tools we teach the students are the ones they will use in the industry and will proliferate as they improve their skills in this area.


I also wanted to acknowledge Sophia for her phenomenal contribution to solving PIETheory.com challenges at her web site and all you folks who have made it your goal to solve the challenges and learn JavaFX in the process.

Tuesday Mar 24, 2009

Have you heard of P.I.E network. Have you heard about a strange phenomena occurring on the net. Follow the clue and see what you uncover.

JavaFX 1.1.1 is live at javafx.com. Fixes mainly involve platform stability for FLV playback on Mac, and handling of unsupported FLVs on both Windows and Mac platforms.

Thursday Jul 31, 2008

JavaFX SDK has a lot of features and among them the best one I like is the media. It allows me to play my favorite media in a player that has my style. A sample code to play a media with bare bones player could look something like this:



/*

* PlayVideo.fx

*

* Created on 31 Jul, 2008
*/


import javafx.ext.swing.*;

import javafx.scene.paint.*;

import javafx.scene.geometry.*;

import javafx.scene.media.*;

import javafx.scene.text.*;

import javafx.scene.*;

import java.lang.*;

import javafx.input.*;


public class PlayVideo {

   private attribute mediaURL = "{__DIR__}MySampleMedia.wmv";


   private attribute player:MediaPlayer = MediaPlayer {

       media: Media {

           source: mediaURL;

       }

       autoPlay: false

       repeatCount: MediaPlayer.REPEAT_FOREVER

   }

   attribute frame:SwingFrame = SwingFrame {

       content: Canvas {

           content: [

               MediaView {

                   mediaPlayer: player

               },

               Group {

                   content: [

                       Rectangle {

                           width: 100

                           height: 50

                           fill: Color.GRAY

                           onMousePressed: function(e:MouseEvent):Void {

                               player.play();

                           }

                       },

                       Text {

                           content: "Play"

                           fill: Color.WHITE

                           translateX: 36

                           translateY: 34

                       }

                   ]

                   translateX: 110

                   translateY: 190

               }

           ]

       }

       visible: true

       closeAction: function() {

           player.pause();

           frame.close();

           System.exit(0);

       }

       title: "Close window to exit"

   }

}

var app:PlayVideo = PlayVideo{}



 You should be able to play most media on Windows that is not DRM protected or from CD/DVD tray.