All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.microedition.media.Player Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
/*
 *  MicroEmulator
 *  Copyright (C) 2006 Bartek Teodorczyk 
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package javax.microedition.media;

public interface Player extends Controllable
{

	public static final int UNREALIZED = 100;
	
	public static final int REALIZED = 200;
	
	public static final int PREFETCHED = 300;
	
	public static final int STARTED = 400;
	
	public static final int CLOSED = 0;
	
	public static final long TIME_UNKNOWN = -1;
	
	public void realize() throws MediaException;
	
	public void prefetch() throws MediaException;
	
	public void start() throws MediaException;
	
	public void stop() throws MediaException;
	
	public void deallocate();
	
	public void close();
	
	public long setMediaTime(long now) throws MediaException;
	
	public long getMediaTime();
	
	public int getState();
	
	public long getDuration();
	
	public String getContentType();
	
	public void setLoopCount(int count);
	
	public void addPlayerListener(PlayerListener playerListener);
	
	public void removePlayerListener(PlayerListener playerListener);
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy