Why is this needed?
Shouldn't media *never* be proxied? Or is that not the issue here?
On May 28, 2008, at 12:29 PM, Max Carlson wrote:
Change 20080528-maxcarlson-o by [EMAIL PROTECTED] on 2008-05-28
12:20:26 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Add view.setProxyPolicy() API, explicit filetype
specification to setSource()
Bugs Fixed: LPP-5585 - In proxied mode cannot load .mp3 file
unproxied - fix or document
Technical Reviewer: hminsky
QA Reviewer: promanik
Doc Reviewer: (pending)
Documentation: view.setProxyPolicy() allows per-view proxy policies
to be set.
Details: swf/LzMediaLoader.lzs - Accept filetype argument, and if
not null, sue it for filetype processing. Call
__LZcheckProxyPolicy() on the sprite's view, instead of using the
global version.
swf/LzMakeLoadSprite.as - Pass setSource() filetype argument through
to the request.
swf/LzSprite.as - Pass setSource() filetype argument through to
LzMakeLoadSprite.
swf9/LzSprite.as - Accept filetype argument to setSource().
views/LaszloView.as - Add setProxyPolicy() API for per-view proxy
policy overriding. Changed __LZcheckProxyPolicy() from static to a
class method, so it can read the per-view proxy policy stored by
setProxyPolicy().
Tests: Music should play under swf8 when running the testcase from
the bugi in swf7/8. Also, you should see the debugger output 'view
proxy policy', proving the per-view proxy overriding is working.
swf9 compiles.
Files:
M WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
M WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as
M WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
M WEB-INF/lps/lfc/views/LaszloView.lzs
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20080528-maxcarlson-o.tar