17:54:15.196 [ERROR][ctemediaplayer] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): this.Play
is not a function
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:237)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:132)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative
(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
(ModuleSpace.java:289)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
(JavaScriptHost.java:107)
at com.bramosystems.oss.player.core.client.impl.QuickTimePlayerImple
$.play$(QuickTimePlayerImple.java)
at
com.bramosystems.oss.player.core.client.ui.QuickTimePlayer.playMedia
(QuickTimePlayer.java:327)
at com.mydomain.packagename.client.CTEMediaPlayer.playMediaList
(CTEMediaPlayer.java:568)
at com.mydomain.packagename.client.CTEMediaPlayer.access$12
(CTEMediaPlayer.java:539)
at com.mydomain.packagename.client.CTEMediaPlayer$3.onSuccess
(CTEMediaPlayer.java:411)
at com.mydomain.packagename.client.CTEMediaPlayer$3.onSuccess
(CTEMediaPlayer.java:1)
at
com.google.gwt.gdata.client.impl.CallbackHelper.handleSuccessCallback
(CallbackHelper.java:61
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke (MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke
(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:167)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages
(BrowserChannelServer.java:281)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:531)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:352)
at java.lang.Thread.run (Thread.java:680)
========== Code Starts Below =====>>>
private void playMediaItem() {
VerticalPanel mainPanel = new VerticalPanel();
Widget player = null;
try {
// create the player per example code found at:
// NOTE: URL/mymediafile.mov file verified to run in Firefox
quicktime plugin
player = new QuickTimePlayer( "
www.example.com/mymediafile.mov",
false, "400px", "500px");
} catch(LoadException e) {
// catch loading exception and alert user
Window.alert("An error occured while loading");
} catch(PluginVersionException e) {
// catch plugin version exception and alert user, possibly
providing a link
// to the plugin download page.
player = new HTML(".. some nice message telling the user to
download plugin first ..");
} catch(PluginNotFoundException e) {
// catch PluginNotFoundException and tell user to download
plugin, possibly providing
// a link to the plugin download page.
player = new HTML(".. another kind of message telling the user
to download plugin..");
}
mainPanel.insert(player, 1); // place in main panel of display
// NOTE: player.playMedia() below causes above mentioned
exception; when commented out no exception
try {
// ((QuickTimePlayer) player).playMedia();
((AbstractMediaPlayer) player).playMedia();
Window.alert("playMediaList after playMedia() ");
} catch (PlayException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Window.alert("PlayException in playMediaList: " + e.getMessage());
}
}