[Red5] what's this: |RtmpSampleAccess property on client ?(with pipe in front of the method)

Tyler Kocheran rfkrocktk at gmail.com
Mon Feb 9 11:54:29 PST 2009


How is this getting triggered? Is Red5 doing it?
If so, that's pretty weird. Is it only because you're needing to draw video
frames using Bitmap.draw()?

On Mon, Feb 9, 2009 at 11:43 AM, Walter Tak <walter at waltertak.com> wrote:

>  It's an error on the NetStream class not the NetConnection class. So the
> way to handle the error is:
>
> stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
> ..
>   private function onAsyncError(event):void {
>    trace("[F] onAsyncError. event.error=" + event.error);
>   }
> ..
>
> However, I don't like errors. The problem is not how to bypass or ignore
> it.
>
> A method that starts with a pipe-character "|" ?
>
> I've added sample FLA + AS3 code + compiled SWF to
> http://jira.red5.org/browse/APPSERVER-315 for quick testing.
>
> Low priority though.
>
> Walter
>
>
>
> NetConnection.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError)
> That'll allow you to bypass asynchronous errors.
>
> On Mon, Feb 9, 2009 at 9:10 AM, Nicolas Brousse <nicolas at brousse.info>wrote:
>
>> What are you trying to do on the AS3 side ? You don't need to create
>> this callback. So, I don't see how your flash ide throw such error.
>>
>> (Sorry Art, didn't have send a test swf yet, missing time :)
>>
>> Nico.
>>
>> On Mon, Feb 9, 2009 at 8:40 AM, Walter Tak <walter at waltertak.com> wrote:
>> >
>>  > See http://jira.red5.org/browse/APPSERVER-315
>> >
>> > Here someone "patches" a problem in which this line
>> >
>> >
>> > +                             final Call call2 = new Call(null,
>> "|RtmpSampleAccess", null);
>> > +                             Notify n = new Notify();
>> > +                             n.setInvokeId(1);
>> > +                             n.setCall(call2);
>> > +                             n.setData(ByteBuffer.wrap(new byte[]
>> {0x01, 0x01, 0x01, 0x01}));
>> > +                             write(n,
>> connection.getStreamIdForChannel(id));
>> >
>> > from:
>> http://jira.red5.org/secure/attachment/10185/RtmpSampleAccess.patch
>> >
>> > However my Flash IDE (while compiling AS3 code) now returns me this
>> error:
>> >
>> > Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
>> >
>> > flash.net.NetStream was unable to invoke callback |RtmpSampleAccess.
>> > error=ReferenceError: Error #1069: Property |RtmpSampleAccess not found
>> on
>> > .CustomClient and there is no default value.
>> >
>> > The pipe in the name "|RtmpSampleAccess" makes creating a handler on the
>> > Flash side impossible. What is that odd named callback doing and why is
>> it
>> > there ? A even better how to fix it ?
>> >
>> >
>> >
>> >
>> >
>> > Tested with 080RC2 final
>> >
>> > Walter
>>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>


-- 
And do this, knowing the time, that now it is high time to awake out of
sleep;
for now our salvation is nearer than when we first believed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090209/267b3e2c/attachment.html>


More information about the Red5 mailing list