private void init() throws IOException {
  IStreamableFile streamFile=null;
  String fileName=file.getName();
  if (fileName.endsWith("mp3") || fileName.endsWith("MP3")) {
    streamFile=new MP3(file);
  }
 else   if (fileName.endsWith("mp4") || fileName.endsWith("MP4")) {
    streamFile=new MP4(file);
  }
 else   if (fileName.endsWith("flv") || fileName.endsWith("FLV")) {
    streamFile=new FLV(file);
  }
  reader=streamFile.getReader();
  if (start > 0) {
    seek(start);
  }
}

private void init ( ) throws IOException { IStreamableFile streamFile = null ; String fileName = file . getName ( ) ; if ( fileName . endsWith ( "mp3" ) || fileName . endsWith ( "MP3" ) ) { streamFile = new MP3 ( file ) ; } else if ( fileName . endsWith ( "mp4" ) || fileName . endsWith ( "MP4" ) ) { streamFile = new MP4 ( file ) ; } else if ( fileName . endsWith ( "flv" ) || fileName . endsWith ( "FLV" ) ) { streamFile = new FLV ( file ) ; } reader = streamFile . getReader ( ) ; if ( start > 0 ) { seek ( start ) ; } }
initializes file provider . creates streamable file factory and service , seeks to start position
