The first thing to check is that the http headers include the correct mime type. The version of Jetty that GWT uses doesn't return the correct mime-type by default. Take a look at the mime-types defined in the web.xml file of the mobilewebapp sample for an example workaround:
Hopefully that will work, but I also ran into a similar problem recently. Loading the file from the file system worked, but loading it from dev mode (with app engine enabled) caused it to play only once and not be seekable. My only lead was that the HTTP headers contained "cache-control: private", which might cause the browser to not cache the file, and thus make it unseekable. I think you can work around this using Filters with appengine, but I haven't tried it.
John LaBanca
jlabanca@google.com
On Wed, May 25, 2011 at 6:01 PM, dani shaulov <danish1994@gmail.com> wrote:
I compiled and deployed that and it works. seems it doesn't work only
in dev mode.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment