Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * @(#)Movie.java 
  * 
  * Copyright (c) 2011 Werner Randelshofer, Goldau, Switzerland.
  * All rights reserved.
  * 
  * You may not use, copy or modify this file, except in compliance with the
  * license agreement you entered into with Werner Randelshofer.
  * For details see accompanying license terms.
 */
package org.monte.media;
A movie provides an editable container for media data in a time and tracks coordinate system.

Author(s):
Werner Randelshofer
Version:
$Id: Movie.java 299 2013-01-03 07:40:18Z werner $
public interface Movie {
    public final static String PLAYHEAD_PROPERTY = "playhead";
    public final static String IN_PROPERTY = "in";
    public final static String OUT_PROPERTY = "out";

    
Returns the total duration of the movie in seconds.
    public Rational getDuration();

    
Sets the position of the insertion point in seconds.
    public void setInsertionPoint(Rational seconds);

    
Returns the position of the insertion point in seconds. If a movie has a duration of n, then there are n+1 insertion points.
    public Rational getInsertionPoint();

    
Returns the position of the in point in seconds.
    public Rational getSelectionStart();

    
Sets the position of the in point in seconds.
    public void setSelectionStart(Rational in);

    
Returns the position of the out point in seconds.
    public Rational getSelectionEnd();

    
Sets the position of the out point in seconds.
    public void setSelectionEnd(Rational out);

    
Returns the frame number for the specified time in seconds.
    public long timeToSample(int trackRational seconds);
    public void addPropertyChangeListener(PropertyChangeListener listener);
    public void removePropertyChangeListener(PropertyChangeListener listener);
    public Rational sampleToTime(int tracklong sample);
    public int getTrackCount();
    public Format getFormat(int track);
    public Format getFileFormat();
    public MovieReader getReader();
New to GrepCode? Check out our FAQ X