Examples of PlayerWidget


Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

        this.swfURL = sourceURL;
        this.width = width;
        this.height = height;
        playerId = DOM.createUniqueId().replace("-", "");

        widget = new PlayerWidget("api", "swf", playerId, swfURL, false);
        initWidget(widget);
        setSize(width, height);
    }
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

        }

        private void updateWMPVersion(PluginVersion pi) {
            try {
                String pid = "bstwmpdetectid";
                PlayerWidget pw = new PlayerWidget("api", Plugin.WinMediaPlayer.name(), pid, "", false);
                pw.setHeight("100px");
                pw.setWidth("100px");
                RootPanel.get().add(pw);
                WinMediaPlayerImplBase impl = WinMediaPlayerImplBase.getPlayer(pid);
                String ver = impl.getPlayerVersion();
                if (ver != null) {
                    RegExp.RegexResult res = RegExp.getRegExp("(\\d+).(\\d+).(\\d+)*", "").exec(ver);
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

     * @throws PluginNotFoundException if the client browser is not HTML5 compliant
     * @throws PluginVersionException not exactly thrown. Provided for Base API compatibility
     */
    public VimeoUniversalPlayer(String videoId, boolean autoplay, String width, String height) throws PluginNotFoundException, PluginVersionException {
        this();
        upf = new PlayerWidget(VimeoPlayerProvider.PROVIDER_NAME, VimeoPlayerProvider.UNIVERSAL_PLAYER, playerId, videoId, autoplay);
        upf.addParam("autoplay", autoplay ? "1" : "0");
        upf.addParam("api", "1");
        upf.setSize(width, height);
        initWidget(upf);
    }
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

            _height = "0px";
            _width = "0px";
        }

        String evtNamePrefix = ((CorePlayerProvider) getWidgetFactory("core")).getDivXHandlerPrefix(playerId);
        playerWidget = new PlayerWidget("core", Plugin.DivXPlayer.name(), playerId, "", autoplay);
        playerWidget.addParam("statusCallback", evtNamePrefix + ".stateChanged");
        playerWidget.addParam("downloadCallback", evtNamePrefix + ".downloadState");
        playerWidget.addParam("timeCallback", evtNamePrefix + ".timeState");
        initWidget(playerWidget);
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

     * @throws PluginNotFoundException if browser does not support the HTML 5 specification.
     */
    public NativePlayer(String mediaURL, boolean autoplay, String height, String width)
            throws PluginNotFoundException {
        this();
        playerWidget = new PlayerWidget("core", Plugin.Native.name(), playerId, "", autoplay);
        _init(width, height);
        playlistManager.addToPlaylist(mediaURL);
    }
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

     * @throws PluginNotFoundException if browser does not support the HTML 5 specification.
     */
    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.spi.PlayerWidget

        this(embedMode, autoplay);

        _height = height;
        _width = width;

        playerWidget = new PlayerWidget("core", Plugin.WinMediaPlayer.name(), playerId, "", false);
        initWidget(playerWidget);

        isEmbedded = (height == null) || (width == null);
        if (!isEmbedded) {
             addMediaInfoHandler(new MediaInfoHandler() {
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

        _width = width;

        FlowPanel panel = new FlowPanel();
        initWidget(panel);

        playerWidget = new PlayerWidget("core", Plugin.VLCPlayer.name(), playerId, "", autoplay);
//        playerWidget.getElement().getStyle().setProperty("backgroundColor", "#000000");   // IE workaround
        panel.add(playerWidget);

        isEmbedded = (height == null) || (width == null);
        if (!isEmbedded) {
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

     */
    public QuickTimePlayer(String mediaURL, boolean autoplay, String height, String width)
            throws PluginVersionException, PluginNotFoundException {
        this();

        playerWidget = new PlayerWidget("core", Plugin.QuickTimePlayer.name(), playerId, "", autoplay);
        playerWidget.addParam("BGCOLOR", "#000000");
        playerWidget.addParam("ENABLEJAVASCRIPT", "True");
        playerWidget.addParam("KIOSKMODE", "True");
        playerWidget.addParam("PostDomEvents", "True");
        playerWidget.addParam("CONTROLLER", "True");
View Full Code Here

Examples of com.bramosystems.oss.player.core.client.spi.PlayerWidget

        PluginVersion det = getProvider().getDetectedPluginVersion("IYouTube");
        PluginVersion req = PluginVersion.get(5, 0, 0);
        if (det.compareTo(req) < 0) {
            throw new PluginVersionException(req.toString(), det.toString());
        }
        PlayerWidget pw = new PlayerWidget(YouTubePlayerProvider.PROVIDER_NAME, "IYouTube",
                playerId, "", false);
        pw.setSize("100%", _height);
        initWidget(pw);
        setSize(_width, _height);
        getProvider().initHandler(playerId, true, new DefaultEventHandler() {
            @Override
            public void onInit() {
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.