File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
CodenameOne/src/com/codename1/components Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2828import com .codename1 .ui .Component ;
2929import com .codename1 .ui .Container ;
3030import com .codename1 .ui .Display ;
31+ import com .codename1 .ui .FontImage ;
3132import com .codename1 .ui .Image ;
3233import com .codename1 .ui .events .ActionEvent ;
3334import com .codename1 .ui .events .ActionListener ;
@@ -67,12 +68,17 @@ public class MediaPlayer extends Container {
6768 * Empty constructor
6869 */
6970 public MediaPlayer () {
71+ playIcon = FontImage .createMaterial (FontImage .MATERIAL_PLAY_ARROW , "Button" , 3 );
72+ pauseIcon = FontImage .createMaterial (FontImage .MATERIAL_PAUSE , "Button" , 3 );
73+ fwdIcon = FontImage .createMaterial (FontImage .MATERIAL_FAST_FORWARD , "Button" , 3 );
74+ backIcon = FontImage .createMaterial (FontImage .MATERIAL_FAST_REWIND , "Button" , 3 );
7075 }
71-
76+
7277 /**
7378 * Empty constructor
7479 */
7580 public MediaPlayer (Media video ) {
81+ this ();
7682 this .video = video ;
7783 initUI ();
7884 }
You can’t perform that action at this time.
0 commit comments