Java Reference
In-Depth Information
}
}
// volume down
ImageView {id:"volup" image:imgVolup
onMouseClicked :function(e){
mediaPlayer.volume =
mediaPlayer.volume + 0.4;
}
}
]}
// progress bar
Line {
startX:0 startY:40 endX:100 endY:40
stroke:Color.MAROON
}
Circle {
radius:5
fill:Color.MAROON
centerX:bind
if(mediaPlayer.media.duration > 0ms)
(mediaPlayer.currentTime /
mediaPlayer.media.duration)*100
else 5
centerY :40
}
Text {
x:105 y:35
textAlignment:TextAlignment.LEFT
textOrigin:TextOrigin.TOP
font:Font.font(“Sans Serif", 10)
content: bind timestat
}
]
}
override protected function create () : Node {
return controls
}
}
 
Search WWH ::




Custom Search