Examples of MRL


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

        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.bramosystems.oss.player.core.client.playlist.MRL

        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

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

    public NativePlayer(ArrayList<String> mediaSources, boolean autoplay, String height, String width)
            throws PluginNotFoundException {
        this();
        playerWidget = new PlayerWidget("core", Plugin.Native.name(), playerId, "", autoplay);
        _init(width, height);
        playlistManager.addToPlaylist(new MRL(mediaSources));
    }
View Full Code Here

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

    public void addChangeHandler(PlaylistChangeHandler handler) {
        addHandler(handler, PlaylistChangeEvent.TYPE);
    }

    public final void addEntry(String... urls) {
        entries.add(new MRL(urls));
        if (isAttached()) {
            refreshView();
        }
    }
View Full Code Here

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

            refreshView();
        }
    }

    public MRL removeEntry(int index) {
        MRL m = entries.remove(index);
        if (isAttached()) {
            refreshView();
        }
        return m;
    }
View Full Code Here

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

            String[] r = res.split(",");
            for (String x : r) {
                x.trim();
            }
            addEntry(r);
            fireEvent(new PlaylistChangeEvent(new MRL(r), list.getItemCount(), true));
        }
    }
View Full Code Here

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

    @UiHandler("delButton")
    public void onDelClicked(ClickEvent event) {
        if (Window.confirm("Do you really want to remove the selected media from the playlist?")) {
            int index = list.getSelectedIndex();
            MRL m = removeEntry(index);
            delButton.setEnabled(false);
            fireEvent(new PlaylistChangeEvent(m, index, false));
        }
    }
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.