Package com.bramosystems.oss.player.core.client.impl

Examples of com.bramosystems.oss.player.core.client.impl.WinMediaPlayerImplBase


                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);
                    pi.setMajor(Integer.parseInt(res.getMatch(1)));
                    pi.setMinor(Integer.parseInt(res.getMatch(2)));
                    pi.setRevision(Integer.parseInt(res.getMatch(3)));
                } else {
                    pi.setMajor(1);
                    pi.setMinor(1);
                    pi.setRevision(1);
                }
                impl.close();
                RootPanel.get().remove(pw);
            } catch (Exception e) {
//                pi.setVersion(PluginVersion.get(1, 1, 1));
            }
        }
View Full Code Here

TOP

Related Classes of com.bramosystems.oss.player.core.client.impl.WinMediaPlayerImplBase

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.