I read this interesting tidbit in the flashmediaserver_cs_asd.pdf
manual: Multiple streams can be open simultaneously over one connection, but each stream eitherThe video player / recorder test is having an intermittent lock-up problem sometimes, when you try to record after playing a video, or sometimes it locks up after you stop recording. Maybe the lock-up problem has something to do with trying to use the same stream for both directions, consecutively or at once. As it works right now, if you play a video, and then record, it records using the same stream. Maybe there is a race condition or problem with it forgetting to shut down the play stream before using it to record. Do you think we should keep track of two different streams, created on demand, to read and write video? Also I'm having another problem with datasets that manifests itself in Internet Explorer, but not Firefox. It might force me to implement part of the YouTobe browser on the sever side, instead of doing it all in the client, which would be unfortunate. I'm using a dataset to fetch a nasty (non-xml) html web page from youtube, which I parse as text to find the url of the flash file to play. Youtube's api doesn't give you the url of the flv video file directly, just a web page that embeds a player that poitns to it. It works fine on firefox, but internet explorer gives this warning in the debug window AFTER it successfully fetches the contents of the html file (according to fiddler): LzLoadQueue.serverlessOnDataHandler load failed from URL 'http://www.youtube.com/watch?v=4883434': no data received This happens because LzLoadQueue.serverlessOnDataHandler gets called with a null src parameter. The serverlessOnDataHandler function is the handler for the Flash XML object that's loading the web page, stuck in its onData (so "this" is the xml object when the function is called).There aren't any properties on the xml object containing the missing string. At the end I've inserted a test file that demonstrates the XML text loading problem with IE, which works with Firefox. Is loading text not really supported? Is there a supported way of doing it? I played around with LoadVars, and couldn't get it to simply load a simple html page as text -- it insisted as parsing the content as url encoded variables. But I found a Flash class called "flash.net.URLLoader" that looks like it will do the trick, but I can't figure out how to access it from OpenLaszlo. (import doesn't work in scripts). Does it require hacking the compiler, or do I have to make a SWF file that I can plug into an OpenLaszlo application that has methods I can call that will load a text file from a URL? I tried switching into proxied mode, but the anal retentive java xml parser on the server bitched about a malformed DTD it insisted on downloading from a web server I have no control over , and checking youtube's shitty html with. Sheez, do I really have to be protected from myself and everyone else so heavy-handedly? I'd really like to have a simple cross platform interface for loading arbitrary text files or html tag soup. -Don <canvas width="100%" height="100%" proxied="false" debug="true" > <script><![CDATA[ var gXmlObject = new XML(); var gUrl = "http://www.youtube.com/watch?v=3_SSuO1gUUE"; function HandleOnData(txt) { _root.Debug.write("HandleOnData"); _root.Debug.write("this", this); _root.Debug.write("txt", txt); } _root.Debug.write("Sending request to: ", gUrl); gXmlObject.> gXmlObject.load(gUrl); ]]> </script> </canvas> |
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
