martes, 1 de marzo de 2011

Borrador inicial del proyecto (Clase 1)

A qui va un borrador de mi proyecto, aun que no sea aun mucho, espero conformar con lo que llevo:

Clase main

public class Main {
    public static void main(String[] args) {
        new reproductor().show();
    }
}


Clase mp3

public class mp3{


private Player mediaPlayer;
private Timer tiempo ;
boolean run = false;    
boolean todo_ok = false;
URL mediaURL=null;
String file="";   


    public mp3() {} 
   /* controles de reproduccion */
public String STOP(){        
//comprueba que el reproductor tenga un archivo
    if (todo_ok){
        mediaPlayer.stop();  
        this.todo_ok=false;  
        this.run=false;
        this.file="";
        this.stopAnimation();
    }
    return "Reproductor mp3";
}


Son las clases que se me ocurrieron ademas que las investigue durante un tiempo.





No hay comentarios:

Publicar un comentario