Examples of Playlist


Examples of com.bramosystems.oss.player.core.client.playlist.Playlist

     * with {@link PlaylistSupport}
     *
     * @return Playlist object
     */
    public Playlist toPlaylist() {
        Playlist p = new Playlist();
        p.setName(title);
        p.setAuthor(author);
       
        Iterator<ASXEntry> it = entries.iterator();
        while(it.hasNext()) {
            ASXEntry ae = it.next();
            MRL m = new MRL(ae.getTitle(), ae.getAuthor());
            Iterator<Ref> refs = ae.getRefs().iterator();
            while(refs.hasNext()) {
                Ref ref = refs.next();
                m.addURL(ref.getHref());
            }
            p.add(m);
        }
        return p;
    }
View Full Code Here

Examples of com.echonest.api.v4.Playlist

        PlaylistParams params = new PlaylistParams();
        params.setType(PlaylistParams.PlaylistType.ARTIST_RADIO);
        params.addArtist("Bing Crosby");
        params.addSongType(SongType.christmas, Song.SongTypeFlag.True);
        Playlist playlist = en.createStaticPlaylist(params);
        for (Song song : playlist.getSongs()) {
            System.out.println(song.getTitle() + " by " + song.getArtistName());
        }
    }
View Full Code Here

Examples of com.groovesquid.model.Playlist

        if(searchQuery.contains("http://grooveshark.com/")) {
            Pattern p = Pattern.compile(".*/\\s*(.*)");
            Matcher m = p.matcher(searchQuery);
            if(m.find()) {
                final String playlistID = m.group(1);
                Playlist playlist = searchPlaylistByID(playlistID);
                if(playlist != null) {
                    playlists.add(playlist);
                    return playlists;
                }
            }
        }
       
        if(Utils.isNumeric(searchQuery)) {
            Playlist playlist = searchPlaylistByID(searchQuery);
            if(playlist != null) {
                playlists.add(playlist);
                return playlists;
            }
        }

        HashMap<String, Object>[] result = gson.fromJson(Grooveshark.sendRequest("getResultsFromSearch", new HashMap<String, Object>(){{
            put("query", searchQuery);
            put("type", new String[] {"Playlists"});
            put("guts", "0");
            put("ppOverride", "false");
        }}), SearchResponse.class).getResult().getResult().getPlaylists();

        if(result.length < 1) {
            JOptionPane.showMessageDialog(Main.getGui(), "No search results for \"" + searchQuery + "\".");
        }

        for (HashMap<String, Object> hm : result) {
            playlists.add(new Playlist(
                hm.get("PlaylistID"),
                hm.get("Name"),
                hm.get("FName"),
                hm.get("NumSongs")
            ));
View Full Code Here

Examples of com.jitcaforwin.extended.api.playlist.Playlist

   *            Reference to iTunes COM interface for a collection of playlists.
   */
  protected void loadPlaylists(IITPlaylistCollection itPlaylists) {
    try {
      for (int i = 1; i < itPlaylists.getCount() + 1; i++) {
        Playlist playlist = this.source.getPlaylistFactory().getPlaylist(itPlaylists.item(i));
        this.playlists.put(playlist.getName(), playlist);
      }
    } catch (SourceDeletedException e) {
      throw new JitcaUnexpectedError();
    } catch (ObjectDeletedException e) {
      throw new JitcaUnexpectedError();
View Full Code Here

Examples of com.pugh.sockso.music.Playlist

           
            // get sql for track query
            if ( type.equals(MusicItem.COLLECTION) )
                sql = Track.getSelectFromSql(); // select everything in the collection
            else if ( type.equals(MusicItem.PLAYLIST) ) {
                Playlist playlist = (Playlist) item;
                sql = Playlist.getSelectTracksSql(playlist.getId(),"");
            }
            else if ( type.equals(MusicItem.ARTIST) ) {
                Artist artist = (Artist) item;
                sql = Track.getSelectFromSql() +
                        " where t.artist_id = '" + artist.getId() + "' ";
View Full Code Here

Examples of com.screenrunner.data.Playlist

      System.exit(1);
    }
   
    splash.setProgress(20);
   
    playlist = new Playlist();
    splash.setStatusText(I18n.get("ui/splash/loadconfig"));
    parseArgs(args);
    loadConfig();
   
    splash.setProgress(30);
View Full Code Here

Examples of com.sk89q.craftbook.util.jinglenote.Playlist

    @Override
    public void load() {

        band = getLine(3);
        Playlist playlist = new Playlist(getLine(2));
        stations.put(band, playlist);
    }
View Full Code Here

Examples of com.tubeonfire.entity.Playlist

      HttpSession session = req.getSession();
      String type = (String) req.getParameter("type");
      String channelId = (String) req.getParameter("channelId");
      String playlistId = (String) req.getParameter("playlistId");
      Mission mission = new Mission();
      Playlist pl = PlaylistModel.byId(playlistId, false);
      if (pl != null) {
        if (YoutubeService.checkChannel(channelId)) {
          if (type.equals("2")) {
            YoutubeService tubeService = new YoutubeService();
            tubeService.setPage(1);
            tubeService.setLimit(49);
            List<Tube> listToAdd = new ArrayList<Tube>();
            tubeService.searchByChannel(channelId, true);
            for (Tube tube : tubeService.getListResult()) {
              tube.setPlaylistId(playlistId);
              listToAdd.add(tube);
            }
            TubeModel.insert(listToAdd);
            mission.setId(IdUniqueHelper.getId());
            mission.setSearchHd(1);
            mission.setSearchType(1);
            mission.setSearchKeyword(channelId);
            mission.setPlaylistId(playlistId);
            mission.setSearchLimit(tubeService.getLimit());
            if (tubeService.getListResult().size() > 0
                && !tubeService.isTooManyRecentCallError()) {
              mission.setSearchPage(tubeService.getPage() + 1);
            } else {
              mission.setSearchPage(tubeService.getPage());
            }
            mission.setSearchTotalPage(tubeService.getTotalPage());
            mission.setType(2);
            mission.setTitle("Get videos from channel " + channelId
                + " to playlist " + pl.getTitle());
            MissionModel.insert(mission);
            session.setAttribute("success", "Action success !");
            resp.sendRedirect("/admin/mission/add");
          } else if (type.equals("1")) {
            mission.setId(IdUniqueHelper.getId());
View Full Code Here

Examples of com.tubeonfire.entity.Playlist

  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException, ServletException {
    try {
      HttpSession session = req.getSession();
      String id = req.getParameter("id");
      Playlist pl = PlaylistModel.byId(id, false);
      if (pl != null) {
        session.setAttribute("action", "edit");
        session.setAttribute("pl", pl);
        req.getRequestDispatcher("/admin/form_playlist.jsp").forward(
            req, resp);
View Full Code Here

Examples of com.tubeonfire.entity.Playlist

  protected void doPost(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {
    try {
      HttpSession session = req.getSession();
      String id = req.getParameter("id");
      Playlist pl = PlaylistModel.byId(id, false);
      if (pl != null) {
        if (PlaylistValidate
            .checkForm(req, resp, session, "edit", pl)) {
          pl.setUpdated(Calendar.getInstance().getTime());
          PlaylistModel.insert(pl);
          session.setAttribute("action", "add");
          session.setAttribute("success", "Action success !");
          resp.sendRedirect("/admin/playlist/edit?id=" + id);
        }
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.