Hi,
I try to use VLCPlayer in my GWT 2.4 project.
when trying in dev mode, it seems to work in IE9 (but in a popup
instead of the embeded player) but not in firefox (10.0 with VLC Web
plugin 2.0.0.0) and chrome.
I have this logs in my gwt dev mode:
16:17:53.142 [ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError)
@com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/
lang/Object;Ljava/lang/Object;)([JavaScript object(608), JavaScript
object(166), JavaScript object(631)]): this.playlist is undefined at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
249)
...
here is my code:
@UiField
protected SimplePanel vlc1;
AbstractMediaPlayer player = null;
try {
player = new VLCPlayer("
http://localhost:8080/admin-0.0.1-SNAPSHOT/
videos/video.mp4", true, "300px", "300px");
} catch(LoadException e) {
// catch loading exception and alert user
Window.alert("An error occured while loading");
} catch(PluginVersionException e) {
// required plugin version is not available, alert user
// possibly providing a link to the plugin download page.
vlc1.setWidget(new HTML(".. some nice message telling the user to
download plugin first .."));
} catch(PluginNotFoundException e) {
// catch PluginNotFoundException and display a friendly notice.
vlc1.setWidget(PlayerUtil.getMissingPluginNotice(Plugin.VLCPlayer));
}
vlc1.setWidget(player);
Does anybody have ever faced this problem?
How can i get it working?
Regards