Package javax.media.bean.playerbean

Examples of javax.media.bean.playerbean.MediaPlayer


 
  public void testEventStrings()
  {
    if (false)
    {
      assertEquals(new AudioDeviceUnavailableEvent(new MediaPlayer()).toString(), "javax.media.AudioDeviceUnavailableEvent[source=javax.media.bean.playerbean.MediaPlayer[,0,0,0x0,invalid]]");
      assertEquals(new CachingControlEvent(new MediaPlayer(), null, 0L).toString(), "javax.media.CachingControlEvent[source=javax.media.bean.playerbean.MediaPlayer[,0,0,0x0,invalid],cachingControl=null,progress=0]");
      System.out.println(new ControllerClosedEvent(new MediaPlayer(), "why?").toString())// javax.media.ControllerClosedEvent[source=javax.media.bean.playerbean.MediaPlayer[,0,0,0x0,invalid]]
      System.out.println(new ControllerErrorEvent(new MediaPlayer(), "why?").toString());   // javax.media.ControllerErrorEvent[source=javax.media.bean.playerbean.MediaPlayer[,0,0,0x0,invalid],message=why?]
    }
  }
View Full Code Here


        m_panel.setMaximumSize(maxsize);
        m_panel.setMinimumSize(maxsize);
        m_panel.setPreferredSize(maxsize);
        m_panel.setLayout(new MigLayout("fill, flowy"));
        m_maxsize.height -= m_controlButtons.getPreferredSize().height;
        m_player = new MediaPlayer();
        m_player.setFixedAspectRatio(true);
        m_player.setControlPanelVisible(false);
        m_player.setPlaybackLoop(m_replay);
        m_player.setPopupActive(false);
    }
View Full Code Here

 
  public MovieView()
  {
    super( new BorderLayout(), false );
    setOpaque( true );
    mp = new MediaPlayer();
    mp.setPopupActive( false );
    mp.setFixedAspectRatio( false ); // like cocoa player
    add( mp );
    cef = new ComponentEventForwarder( this );
    mp.addControllerListener( this );
View Full Code Here

TOP

Related Classes of javax.media.bean.playerbean.MediaPlayer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.