/** Construct a media list player component. */
 public EmbeddedMediaListPlayerComponent() {
   // Create the native resources
   MediaPlayerFactory mediaPlayerFactory = getMediaPlayerFactory();
   mediaListPlayer = mediaPlayerFactory.newMediaListPlayer();
   mediaList = mediaPlayerFactory.newMediaList();
   mediaListPlayer.setMediaList(mediaList);
   mediaListPlayer.setMediaPlayer(getMediaPlayer());
   // Register listeners
   mediaListPlayer.addMediaListPlayerEventListener(this);
   // Sub-class initialisation
   onAfterConstruct();
 }
 @Override
 protected final void onBeforeRelease() {
   onBeforeReleaseComponent();
   mediaListPlayer.release();
   mediaList.release();
 }