can we use the mysterious System.Product calls in the Flash Platform?

View: New views
5 Messages — Rating Filter:   Alert me  

can we use the mysterious System.Product calls in the Flash Platform?

by Sebastian Wagner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

there are some hidden features that Adobe only enables for premium customers in the Flash Player, like Echo Cancellation.
It is only available for Adobe Connect Pro.

You may find more info on it here: http://bugs.adobe.com/jira/browse/FP-273, or http://www.lingolesson.com/misc/adobe-s-mysterious-systemproduct-and-connect-pro/

Can we support those mysterious: var product = new System.Product(_global._s("addInName"));
calls that are not enabled for usual Flash Developers?



sebastian

--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...

Re: can we use the mysterious System.Product calls in the Flash Platform?

by P T Withington :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 From what I could glean reading your references, it seems that Adobe  
is protecting the use of this feature by requiring the source audio to  
be signed, so, while you can make the calls, and load the plug-in,  
it's not going to be useful if you don't have their (licensed) server  
to deliver signed content...

OTOH, in the same thread there was mention of using speex codec, which  
David Nault (cc-ed) was also interested in.  Speex has activity  
detection and echo cancellation, and is open source.

On 2009-10-26, at 06:34, Sebastian Wagner wrote:

> hi,
>
> there are some hidden features that Adobe only enables for premium  
> customers
> in the Flash Player, like Echo Cancellation.
> It is only available for Adobe Connect Pro.
>
> You may find more info on it here: http://bugs.adobe.com/jira/browse/FP-273 
> ,
> or
> http://www.lingolesson.com/misc/adobe-s-mysterious-systemproduct-and-connect-pro/
>
> Can we support those mysterious: var product = new
> System.Product(_global._s("addInName"));
> calls that are not enabled for usual Flash Developers?
>
>
>
> sebastian
>
> --
> Sebastian Wagner
> http://www.webbase-design.de
> http://openmeetings.googlecode.com
> http://www.laszlo-forum.de
> seba.wagner@...


Re: can we use the mysterious System.Product calls in the Flash Platform?

by Sebastian Wagner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yes, you can set the audio to use speex internally in the Flash Player but Adobe seems to remove the Echo Cancellation for speex from the free Flash Player version and only add it when you use Adobe Connect Pro.

sebastian


2009/10/26 P T Withington <ptw@...>
>From what I could glean reading your references, it seems that Adobe is protecting the use of this feature by requiring the source audio to be signed, so, while you can make the calls, and load the plug-in, it's not going to be useful if you don't have their (licensed) server to deliver signed content...

OTOH, in the same thread there was mention of using speex codec, which David Nault (cc-ed) was also interested in.  Speex has activity detection and echo cancellation, and is open source.


On 2009-10-26, at 06:34, Sebastian Wagner wrote:

hi,

there are some hidden features that Adobe only enables for premium customers
in the Flash Player, like Echo Cancellation.
It is only available for Adobe Connect Pro.

You may find more info on it here: http://bugs.adobe.com/jira/browse/FP-273,
or
http://www.lingolesson.com/misc/adobe-s-mysterious-systemproduct-and-connect-pro/

Can we support those mysterious: var product = new
System.Product(_global._s("addInName"));
calls that are not enabled for usual Flash Developers?



sebastian

--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...




--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...

Re: can we use the mysterious System.Product calls in the Flash Platform?

by P T Withington :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wow.  That seems pretty sleazy.

I don't really know much about this area, but you and David (and Max)  
must.  :)

I (or more likely, Henry) can certainly help out if you just need to  
figure out how to call these "mysterious" API's from LZX.  In general,  
we don't limit what you can call in the underlying runtime.  You may  
need to use the #passthrough pragma if our compiler is getting in the  
way.  You can either grep for examples of that in the LFC, or Henry  
can explain it more.

On 2009-10-26, at 08:29, Sebastian Wagner wrote:

> yes, you can set the audio to use speex internally in the Flash  
> Player but
> Adobe seems to remove the Echo Cancellation for speex from the free  
> Flash
> Player version and only add it when you use Adobe Connect Pro.
>
> sebastian
>
>
> 2009/10/26 P T Withington <ptw@...>
>
>> From what I could glean reading your references, it seems that  
>> Adobe is
>> protecting the use of this feature by requiring the source audio to  
>> be
>> signed, so, while you can make the calls, and load the plug-in,  
>> it's not
>> going to be useful if you don't have their (licensed) server to  
>> deliver
>> signed content...
>>
>> OTOH, in the same thread there was mention of using speex codec,  
>> which
>> David Nault (cc-ed) was also interested in.  Speex has activity  
>> detection
>> and echo cancellation, and is open source.
>>
>>
>> On 2009-10-26, at 06:34, Sebastian Wagner wrote:
>>
>> hi,
>>>
>>> there are some hidden features that Adobe only enables for premium
>>> customers
>>> in the Flash Player, like Echo Cancellation.
>>> It is only available for Adobe Connect Pro.
>>>
>>> You may find more info on it here:
>>> http://bugs.adobe.com/jira/browse/FP-273,
>>> or
>>>
>>> http://www.lingolesson.com/misc/adobe-s-mysterious-systemproduct-and-connect-pro/
>>>
>>> Can we support those mysterious: var product = new
>>> System.Product(_global._s("addInName"));
>>> calls that are not enabled for usual Flash Developers?
>>>
>>>
>>>
>>> sebastian
>>>
>>> --
>>> Sebastian Wagner
>>> http://www.webbase-design.de
>>> http://openmeetings.googlecode.com
>>> http://www.laszlo-forum.de
>>> seba.wagner@...
>>>
>>
>>
>
>
> --
> Sebastian Wagner
> http://www.webbase-design.de
> http://openmeetings.googlecode.com
> http://www.laszlo-forum.de
> seba.wagner@...


Re: can we use the mysterious System.Product calls in the Flash Platform?

by Henry Minsky-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's an example of calling of as3-specific code in the drawview class in lps/components/extensions/drawview.lzx. That code has blocks that are conditional on the target
runtime (so the file compiles to swf8,dhtml, and swf10, from the same source file).


There's also an LZX xml syntax, to be able to add import statements to LZX
class definitions. Example:

    <class name="camera" extends="mediadevice">
        <switch>
            <when property="$as3">
                <passthrough>
                    import flash.media.*;
                </passthrough>
            </when>
        </switch>


Also, here's an example of calling the text flow API, showing the use of the 'passthrough' compiler pragma. Putting 'passthrough(toplevel:true)'  inside
of a class definition causes the contents of the
block to get stuck at the beginning of the .as file which the compiler
emits. e.g., if you have a class in script that sas



package {
  import foo.bar;
  import foo.baz;

class myclass {

}

}





<canvas width="100%" height="80%" debug="true">
  <debug  fontsize="12"/>

<script when="immediate">
<![CDATA[

class foo {
    #passthrough (toplevel: true) {
    import flash.display.Sprite;
    import flashx.textLayout.compose.StandardFlowComposer;
    import flashx.textLayout.container.ContainerController;
    import flashx.textLayout.elements.ParagraphElement;
    import flashx.textLayout.elements.SpanElement;
    import flashx.textLayout.elements.TextFlow;
    }#

    /** Simplest possible "Hello, World" text example */
        public function foo(view:LzView)
    {
        var textFlow:TextFlow = new TextFlow();
        var p:ParagraphElement = new ParagraphElement();
        textFlow.addChild(p);
           
        var span:SpanElement = new SpanElement();
        span.text = "Hello, World";
        span.fontSize = 48;
        p.addChild(span);
           
        textFlow.flowComposer.addController(new ContainerController(view.sprite, 400, 200));
        textFlow.flowComposer.updateAllControllers();
    }
}

]]>
</script>

     <view width="200" id="v1" height="100">
       <attribute name="tflow"/>
       <handler name="oninit">
          this.tflow = new foo(this);
       </handler>
     </view>

</canvas>


On Mon, Oct 26, 2009 at 8:35 AM, P T Withington <ptw@...> wrote:
Wow.  That seems pretty sleazy.

I don't really know much about this area, but you and David (and Max) must.  :)

I (or more likely, Henry) can certainly help out if you just need to figure out how to call these "mysterious" API's from LZX.  In general, we don't limit what you can call in the underlying runtime.  You may need to use the #passthrough pragma if our compiler is getting in the way.  You can either grep for examples of that in the LFC, or Henry can explain it more.


On 2009-10-26, at 08:29, Sebastian Wagner wrote:

yes, you can set the audio to use speex internally in the Flash Player but
Adobe seems to remove the Echo Cancellation for speex from the free Flash
Player version and only add it when you use Adobe Connect Pro.

sebastian


2009/10/26 P T Withington <ptw@...>

>From what I could glean reading your references, it seems that Adobe is
protecting the use of this feature by requiring the source audio to be
signed, so, while you can make the calls, and load the plug-in, it's not
going to be useful if you don't have their (licensed) server to deliver
signed content...

OTOH, in the same thread there was mention of using speex codec, which
David Nault (cc-ed) was also interested in.  Speex has activity detection
and echo cancellation, and is open source.


On 2009-10-26, at 06:34, Sebastian Wagner wrote:

hi,

there are some hidden features that Adobe only enables for premium
customers
in the Flash Player, like Echo Cancellation.
It is only available for Adobe Connect Pro.

You may find more info on it here:
http://bugs.adobe.com/jira/browse/FP-273,
or

http://www.lingolesson.com/misc/adobe-s-mysterious-systemproduct-and-connect-pro/

Can we support those mysterious: var product = new
System.Product(_global._s("addInName"));
calls that are not enabled for usual Flash Developers?



sebastian

--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...





--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner@...




--
Henry Minsky
Software Architect
hminsky@...