Package com.bramosystems.oss.player.core.client.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


     * with {@link PlaylistSupport}
     *
     * @return Playlist object
     */
    public final Playlist toPlaylist() {
        Playlist p = new Playlist();
        p.setName(getTitle());
        p.setAuthor(getCreator());

        JsArray<Track> ts = getTracks();
        for (int i = 0; i < ts.length(); i++) {
            Track t = ts.get(i);

            MRL m = new MRL(t.getTitle(), t.getCreator());
            JsArrayString js = t.getLocation();
            for (int j = 0; j < js.length(); j++) {
                m.addURL(js.get(j));
            }
            p.add(m);
        }       
        return p;
    }
View Full Code Here

TOP

Related Classes of com.bramosystems.oss.player.core.client.playlist.Playlist

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.