Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created June 25, 2009 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalmiray/135615 to your computer and use it in GitHub Desktop.
Save aalmiray/135615 to your computer and use it in GitHub Desktop.
import griffon.builder.fx.FxBuilder
def fx = new FxBuilder()
fx.stage(title: "Embedded Player", width: 200, height: 100) {
scene {
mediaView(fitWidth: 200, fitHeight: 100) {
mediaPlayer(autoPlay: true) {
media(source: "http://sun.edgeboss.net/download/sun/media/1460825906/1460825906_2956241001_big-buck-bunny-640x360.flv")
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment