title: Why Doesn't My Component Appear On Top of The HTML Page Or Media Player In Codename One
body: <p>I've used a media player and I'm trying to do rendering on top of it with progress indication or buttons but the code isn't working.</p>
  
  <p>E.g.:</p>
  
  <pre><code>findInfiniteProgress().setVisible(true);
    Timer timer = new Timer();
    TimerTask timerTask = new TimerTask() {
          @Override
          public void run() {
              Display.getInstance().callSerially(new Runnable() {
                 @Override
                  public void run() {
                      if(findMediaPlayer().getMedia() != null &amp;&amp; findMediaPlayer().getMedia().isPlaying()){
                      findInfiniteProgress(f).setVisible(false);
                      }else{
                      findInfiniteProgress(f).setVisible(true);
                      }
                  }
              });
          }
      };
  </code></pre>