public void run() {
                           
                      try {
                          File f = new File ( filename );
                          MediaLocator locator = new MediaLocator ( f.toURI().toURL());
                          player = Manager.createPlayer ( locator );
                          player.addControllerListener(new ControllerListener() {
                            public void controllerUpdate(ControllerEvent event) {
                               if (event instanceof EndOfMediaEvent) {
                                  player.setMediaTime(Player.RESET);
                                  player.realize();
                                  player.start();
                               }
                            }
                         });
                         player.realize();
                         player.start();
                      } catch (Exception e) {
                         e.printStackTrace();
                      }
                   }