Package javazoom.jlgui.basicplayer

Examples of javazoom.jlgui.basicplayer.BasicController.open()


// It means that this object will be notified on BasicPlayer
// events such as : opened(...), progress(...), stateUpdated(...)
        player.addBasicPlayerListener(this);

        try { // Open file, or URL or Stream (shoutcast, icecast) to play.
            control.open(new File(filename));

// control.open(new URL("http://yourshoutcastserver.com:8000"));
// Start playback in a thread. control.play();
// If you want to pause/resume/pause the played file then
// write a Swing player and just call control.pause(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.