All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.caprica.vlcj.player.component.AudioListPlayerComponentBase Maven / Gradle / Ivy

The newest version!
/*
 * This file is part of VLCJ.
 *
 * VLCJ is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * VLCJ is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with VLCJ.  If not, see .
 *
 * Copyright 2009-2025 Caprica Software Limited.
 */

package uk.co.caprica.vlcj.player.component;

import uk.co.caprica.vlcj.factory.MediaPlayerFactory;
import uk.co.caprica.vlcj.media.MediaRef;
import uk.co.caprica.vlcj.medialist.MediaList;
import uk.co.caprica.vlcj.medialist.MediaListEventListener;
import uk.co.caprica.vlcj.player.list.MediaListPlayer;
import uk.co.caprica.vlcj.player.list.MediaListPlayerEventListener;

/**
 * Base implementation for an audio list player.
 * 

* This class serves to keep the {@link AudioListPlayerComponent} concrete implementation clean and un-cluttered. */ abstract class AudioListPlayerComponentBase extends AudioPlayerComponent implements MediaListPlayerEventListener, MediaListEventListener { /** * Create a media player component. * * @param mediaPlayerFactory factory used to create the component */ protected AudioListPlayerComponentBase(MediaPlayerFactory mediaPlayerFactory) { super(mediaPlayerFactory); } // === MediaListPlayerEventListener ========================================= @Override public void mediaListPlayerFinished(MediaListPlayer mediaListPlayer) { } @Override public void nextItem(MediaListPlayer mediaListPlayer, MediaRef item) { } @Override public void stopped(MediaListPlayer mediaListPlayer) { } // === MediaListEventListener =============================================== @Override public void mediaListWillAddItem(MediaList mediaList, MediaRef item, int index) { } @Override public void mediaListItemAdded(MediaList mediaList, MediaRef item, int index) { } @Override public void mediaListWillDeleteItem(MediaList mediaList, MediaRef item, int index) { } @Override public void mediaListItemDeleted(MediaList mediaList, MediaRef item, int index) { } @Override public void mediaListEndReached(MediaList mediaList) { } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy