FileDocCategorySizeDatePackage
Movie.javaAPI DocAndroid 1.5 API2243Wed May 06 22:42:00 BST 2009android.graphics

Movie

public class Movie extends Object

Fields Summary
private final int
mNativeMovie
Constructors Summary
private Movie(int nativeMovie)

        if (nativeMovie == 0) {
            throw new RuntimeException("native movie creation failed");
        }
        mNativeMovie = nativeMovie;
    
Methods Summary
public static native android.graphics.MoviedecodeByteArray(byte[] data, int offset, int length)

public static android.graphics.MoviedecodeFile(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.MoviedecodeStream(java.io.InputStream is)

private static android.graphics.MoviedecodeTempStream(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 voiddraw(Canvas canvas, float x, float y, Paint paint)

public voiddraw(Canvas canvas, float x, float y)

        draw(canvas, x, y, null);
    
public native intduration()

public native intheight()

public native booleanisOpaque()

public native booleansetTime(int relativeMilliseconds)

public native intwidth()