Skip to content

Commit 6399f9c

Browse files
committed
add a working example to use the movie class
Signed-off-by: Umair Khan <[email protected]>
1 parent f8d1f0a commit 6399f9c

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import in.omerjerk.processing.video.android.*;
2+
3+
Movie movie;
4+
5+
void setup() {
6+
size(1280, 1280, P2D);
7+
movie = new Movie(this, "transit.mov");
8+
movie.loop();
9+
movie.play();
10+
}
11+
12+
void draw() {
13+
image(movie, 0, 0);
14+
}
Binary file not shown.

src/in/omerjerk/processing/video/android/Movie.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import java.io.IOException;
44

5-
import com.sun.xml.internal.ws.wsdl.writer.UsingAddressing;
6-
75
import in.omerjerk.processing.video.android.callbacks.MediaPlayerHandlerCallback;
86
import android.content.res.AssetFileDescriptor;
97
import android.media.MediaMetadataRetriever;

0 commit comments

Comments
 (0)