Skip to content

Commit 52548ab

Browse files
committed
Fixed MediaDemo bug and pictures res
1 parent 293446b commit 52548ab

File tree

7 files changed

+3
-2
lines changed

7 files changed

+3
-2
lines changed

codenameone_settings.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
#Thu Oct 15 16:17:58 IDT 2020
2+
#Sun Oct 18 13:04:11 IDT 2020
33
codename1.ios.appid=Q5GHSKAL2F.com.codename1.demos.kitchen
44
baseClass=src/generated/StateMachineBase.java
55
codename1.arg.ios.NSCameraUsageDescription=Requires access to camera for capturing video and display it on through the app.
-13.2 KB
Loading

css/images/demos/advanced-icon.png

157 Bytes
Loading
9 Bytes
Loading

css/images/demos/toggles-demo.png

80 Bytes
Loading

lib/CodenameOne_SRC.zip

4.67 KB
Binary file not shown.

src/com/codename1/demos/kitchen/MediaDemo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,11 @@ private void playVideoOnNewForm(String fileURI, Form parentForm) {
136136
video.setNativePlayerMode(true);
137137
}
138138
MediaPlayer player = new MediaPlayer(video);
139-
player.setAutoplay(false);
139+
player.setAutoplay(true);
140140

141141
callSerially(()->{
142142
videoForm.removeAll();
143+
videoForm.setLayout(new BorderLayout());
143144
videoForm.add(BorderLayout.CENTER, player);
144145
videoForm.revalidate();
145146
});

0 commit comments

Comments
 (0)