Methods Summary |
---|
public static native android.graphics.Movie | decodeByteArray(byte[] data, int offset, int length)
|
public static android.graphics.Movie | decodeFile(java.lang.String pathName)
InputStream is;
try {
is = new FileInputStream(pathName);
}
catch (java.io.FileNotFoundException e) {
return null;
}
return decodeTempStream(is);
|
public static native android.graphics.Movie | decodeStream(java.io.InputStream is)
|
private static android.graphics.Movie | decodeTempStream(java.io.InputStream is)
Movie moov = null;
try {
moov = decodeStream(is);
is.close();
}
catch (java.io.IOException e) {
/* do nothing.
If the exception happened on open, moov will be null.
If it happened on close, moov is still valid.
*/
}
return moov;
|
public native void | draw(Canvas canvas, float x, float y, Paint paint)
|
public void | draw(Canvas canvas, float x, float y)
draw(canvas, x, y, null);
|
public native int | duration()
|
public native int | height()
|
public native boolean | isOpaque()
|
public native boolean | setTime(int relativeMilliseconds)
|
public native int | width()
|