« Previous day (Mar 9, 2009) | Main | Next day (Mar 11, 2009) »
 20090310 Tuesday March 10, 2009

JavaFX Mobile, boldly go where no one has gone before

     Click on arrow to PLAY.  Click on picture to PAUSE/RESUME.  Note: If video
     playback is blank or slow, reload the page and make sure QuickTime 7.6
     is installed on your system.


JavaFX Mobile, the final frontier. These are the voyages of the JavaFX Mobile programmers. It's endless mission to program cool things for next generation cell phones. To seek out rich user interfaces. To boldly go where no mobile program has gone before...

The cool part of JavaFX is the simple way to add video to your app. And, because it's JavaFX, you program it the same way on your mobile device as you would for your desktop. Write once, and run wherever Captain Kirk says to run it. Try playing the video above and see what I mean...


Code snippet:

var player = MediaPlayer {
  autoPlay: false
  media : Media {
    source : "{__DIR__}star-trek.flv";
  }
}

var view:MediaView = MediaView {
    visible: true
    mediaPlayer: bind player
}



That's it. It's that easy in JavaFX, for both Mobile and Desktop--a lot easier than the new Captain Kirk will have at Starfleet Academy this summer, I'm guessing. I'm still deciding whether the new Kirk, Spock, and McCoy will be better than the old Kirk, Spock, and McCoy though. Jury is still out until May 8, 2009...

[Java ME and J2ME] ( March 10, 2009 05:03 PM ) Permalink Comments [6]





Theme originally based on design by Bryan Bell