Package com.tulskiy.musique.audio.player

Examples of com.tulskiy.musique.audio.player.PlayerListener


            @Override
            public void run() {
                formatTitle();
            }
        };
        app.getPlayer().addListener(new PlayerListener() {
            @Override
            public void onEvent(PlayerEvent e) {
                SwingUtilities.invokeLater(formatTitle);
            }
        });
View Full Code Here


                }
            }
        });
        timer.start();

        player.addListener(new PlayerListener() {
            public void onEvent(PlayerEvent e) {
                switch (e.getEventCode()) {
                    case PLAYING_STARTED:
                        timer.start();
                        break;
View Full Code Here

                    updateStatus();
            }
        });
        timer.start();

        player.addListener(new PlayerListener() {
            public void onEvent(PlayerEvent e) {
                pauseButton.setSelected(player.isPaused());
                switch (e.getEventCode()) {
                    case PLAYING_STARTED:
                        timer.start();
View Full Code Here

                authorized = false;
            }
        });

        player = app.getPlayer();
        player.addListener(new PlayerListener() {
            @Override
            public void onEvent(PlayerEvent e) {
                if (config.getBoolean("lastfm.enabled", false)) {
                    SubmissionData data = nowPlaying;
                    switch (e.getEventCode()) {
View Full Code Here

                    }
                }
            }
        });

        player.addListener(new PlayerListener() {
            @Override
            public void onEvent(PlayerEvent e) {
                Track track = player.getTrack();
                if (track != null && track.getTrackData().isStream()) {
                    update.start();
View Full Code Here

                JCheckBoxMenuItem item = (JCheckBoxMenuItem) e.getSource();
                app.getPlayer().setStopAfterCurrent(item.isSelected());
            }
        });

        app.getPlayer().addListener(new PlayerListener() {
            @Override
            public void onEvent(PlayerEvent e) {
                if (e.getEventCode() == PlayerEvent.PlayerEventCode.STOPPED) {
                    stopAfterCurrent.setSelected(false);
                }
View Full Code Here

                search.execute();
                timer.stop();
            }
        });

        player.addListener(new PlayerListener() {
            @Override
            public void onEvent(PlayerEvent e) {
                switch (e.getEventCode()) {
                    case FILE_OPENED:
                        timer.restart();
View Full Code Here

                if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {
                    runAction("playSelected");
                }
            }
        });
        playerListener = new PlayerListener() {
            public void onEvent(PlayerEvent e) {
                update();
                switch (e.getEventCode()) {
                    case FILE_OPENED:
                        if (config.getBoolean("playlists.cursorFollowsPlayback", true)) {
View Full Code Here

                    timer.restart();
                }
            }
        });
        final Player player = app.getPlayer();
        player.addListener(new PlayerListener() {
            @Override
            public void onEvent(PlayerEvent e) {
                if (nowPlayingOnly && e.getEventCode() == PlayerEvent.PlayerEventCode.FILE_OPENED) {
                    track = player.getTrack();
                    timer.restart();
View Full Code Here

TOP

Related Classes of com.tulskiy.musique.audio.player.PlayerListener

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.