PDA

View Full Version : cannot load external video


bernardsirius
11-10-2004, 03:52 AM
For a start, the dashboard demo video section doesn't work when lps runs on my machine. The online demo works great.

I've tried to make a very simple lzx to test video display, but it doesnt work either.

After a relatively long while (20 secs) of intense cpu work, lps is consistently issuing the following message in the Debug console:

«string#0| java.text.ParseException: Unparseable date: "Mon, 15 Mar 2004 16:57:42 GMT" : Exception stack: com.laszlosystems.utils.ChainedException: java.text.ParseException: Unparseable date: "Mon, 15 Mar 2004 16:57:42 GMT" at com.laszlosystems.utils.LZHttpUtils.getDate(LZHttp Utils.java:132) at com.laszlosystems.data.HTTPDataSource$HttpData.las tModified(HTTPDataSource.java:492) at com.laszlosystems.cache.RequestCache.getItemStream AsSWF(RequestCache.java:324) at com.laszlosystems.cache.RequestCache.getAsSWF(Requ estCache.java:132) at com.laszlosystems.servlets.responders.ResponderCac he.respondImpl(ResponderCache.java:362) at com.laszlosystems.servlets.responders.Responder.re spond(Responder.java:220) at com.laszlosystems.servlets.LZServlet._doGet(LZServ let.java:306) at com.laszlosystems.servlets.LZServlet.doGet(LZServl et.java:242) at javax.servlet.http.HttpServlet.service(HttpServlet .java:697) at javax.servlet.http.HttpServlet.service(HttpServlet .java:810) at org.apache.catalina.core.ApplicationFil...»

And indeed I have the same message in the lps server logs.

The incriminated lzx is as simple as this:

<canvas width="1000" height="710" title="Laszlo Dashboard" debug="true">

<!-- CONTAINER VIEW FOR VIDEO -->
<view id="videoviewer" play="true" clip="false" align="center" stretches="both"
height="240"
width="320">
<method event="onlastframe">
this.stop(1);
</method>
<method name="playMedia">
// Load the media into the player
Debug.write("playing video");
this.setSource("video.swf");
this.play();
</method>
<method event="oninit">
playMedia();
</method>
</view>
</canvas>

It does exactly the same when I try to load one of the videos shown in the online dashboard example at:
http://www.laszlosystems.com/lps/sample-apps/dashboard/media/video/jfk.swf

d~l
11-10-2004, 07:16 AM
I tried downloading the jfk.swf movie first .. then running it as standalone swf file ..

this message pops up ..

"search path not found!"

bernardsirius
11-10-2004, 07:36 AM
to me the jfk movie plays ok. Try:
http://www.laszlosystems.com/lps/sample-apps/dashboard/media/video/jfk.swf

now, I've made some further testing and it seems that lps actually rejects everything media.

For example:

<view id="haha" resource="http:media/icon/blast.jpg"/>

results in the same error («string#0| java.text.ParseException: Unparseable date: "Tue,...)

it seems that something's wrong with the way the lps handles media files in general.

Strange this didn't come up before (or did it?)

d~l
11-10-2004, 08:41 AM
I tried the link again .. (previously tried to open it in Opera browser) ..

http://www.laszlosystems.com/lps/sample-apps/dashboard/media/video/jfk.swf

I see that this jfk.swf opens in IE and Mozilla browsers .. but not in Opera .. where I get the message "could not start application"

and yet in Opera I have this plugin ..

Shockwave Flash
application/x-shockwave-flash swf
application/futuresplash spl
C:\Program Files\Opera75\Program\Plugins\NPSWF32.dll

...

and .. Opera tests o.k. at this test site ..

http://www.macromedia.com/shockwave/welcome/

same results with another test.swf ..so I'll have to investigate further.

______________________

coming back to Laszlo .. I would also like to see SVG objects compiled as media resources ..

______________________


postscript ..

testing the .. dashboard example .. (http://www.laszlosystems.com/lps/sample-apps/dashboard/dashboard.lzo)

on-line dashboard does not select/play music/video in Opera or Mozilla

if the jfk video is selected
nothing happens when "we choose" button is clicked

on-line does select/play in IE

in fact I remember reporting this some time ago

see this thread .. (http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=1097&highlight=opera)