Package extended

Source Code of extended.PlaylistCreateDemo

package extended;

import com.jitcaforwin.extended.JitcaiTunesController;
import com.jitcaforwin.extended.api.IJitcaITunesController;
import com.jitcaforwin.extended.api.UserLibrary;
import com.jitcaforwin.extended.api.playlist.PlaylistFolder;
import com.jitcaforwin.extended.api.playlist.UserPlaylist;
import com.jitcaforwin.main.exceptions.JitcaException;





public class PlaylistCreateDemo {

  public static void main(String args[]){
    try {
      IJitcaITunesController iTunes = new JitcaiTunesController(true);
     
      UserLibrary library = iTunes.getLibrary();
     
      PlaylistFolder folder = library.createPlaylistFolder("Demo_Folder");
     
      UserPlaylist playlist = folder.createPlaylist("Demo_Playlist");
     
      playlist.addTrack(iTunes.getPlayerController().currentTrack());

      iTunes.close();

    } catch (JitcaException e) {
      e.printStackTrace();
    }
  }
}
TOP

Related Classes of extended.PlaylistCreateDemo

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.