[Red5] OnImageData

Manuel Raña info at vengava.com
Tue Jul 7 13:31:46 PDT 2009


I submitted a patch which was applied at r3426 for "record" and "append"
modes (FlexStreamSend) (http://jira.red5.org/browse/APPSERVER-329 and a
correction of that http://jira.red5.org/browse/APPSERVER-338).

I recall that at that time "live" mode was already working as expected



2009/7/7 Tyler Kocheran <rfkrocktk at gmail.com>

> It was working a while back in the trunk. I built a demo to make sure it
> was working, and yes it was working as expected. (NetStream.send affects all
> subscribers to the stream except the client that called NetStream.send). I
> was able to embed "events" and method calls within a stream I recorded, and
> it played back perfectly. I just think that one shouldn't call
> player-specific functions, like mySharedObject.send("send", "send") for
> instance. This would create an infinite loop which would suck bandwidth and
> really screw things up for everyone. Luckily, I think Flash Player won't
> allow this to happen. I don't know about the whole "onImageData" thing
> though.
>
> On Tue, Jul 7, 2009 at 10:47 AM, Mondain <mondain at gmail.com> wrote:
>
>> Ok, well I'd love to re-implement it if anyone has a clue about what is
>> missing??
>>
>>
>> On Tue, Jul 7, 2009 at 9:16 AM, Andy Shaules <bowljoman at hotmail.com>wrote:
>>
>>>  No, thats the one, however I think that it did exist at 6.3. I used it
>>> for one-way score statistics from broadcater for Lenny's client.
>>>
>>> bTw Lenny, we miss you!
>>>
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>>  *From:* Mondain <mondain at gmail.com>
>>> *To:* red5 at osflash.org
>>> *Sent:* Tuesday, July 07, 2009 8:58 AM
>>> *Subject:* Re: [Red5] OnImageData
>>>
>>> I'm pretty sure NetStream.send support never existed.
>>> http://jira.red5.org/browse/SN-54 <http://jira.red5.org/browse/SN-54>Or
>>> I may be confusing to two different functions..
>>>
>>>
>>> Paul
>>>
>>> On Tue, Jul 7, 2009 at 8:28 AM, Andy Shaules <bowljoman at hotmail.com>wrote:
>>>
>>>> Maybe I was tired and forgot something, but with the trunk,
>>>> 'netstream.send(' ')' is broken.
>>>>
>>>> Does not work. Does not trigger async errors, does NOTHING.
>>>>
>>>> Maybe he has found a bug!
>>>>
>>>> Andy
>>>>
>>>>
>>>> ----- Original Message ----- From: "Walter Tak" <walter at waltertak.com>
>>>> To: <red5 at osflash.org>
>>>> Sent: Tuesday, July 07, 2009 5:23 AM
>>>>
>>>> Subject: Re: [Red5] OnImageData
>>>>
>>>>
>>>> I'd advice you to put some larger pieces of your code temporarily on a
>>>>> site like http://www.pastebin.org/ so others can review the whole
>>>>> thing instead of just snippets.
>>>>>
>>>>> The error would suggest that your custom netstream client still does
>>>>> not have the onImageData function inside.
>>>>>
>>>>> I'm referring to your class "StreamClient".
>>>>>
>>>>>
>>>>>> This is the Error:
>>>>>>
>>>>>> Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
>>>>>> flash.net.NetStream was unable to invoke callback onImageData.
>>>>>> error=ReferenceError: Error #1069: Property onImageData not found on
>>>>>> flash.net.NetStream and there is no default value.
>>>>>>
>>>>>> on the Subscriber:
>>>>>> function onImageData(obj:Object) {
>>>>>> trace("Hello");
>>>>>> }
>>>>>>
>>>>>>
>>>>>>
>>>>>> ddprasad wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi Andy,
>>>>>>>
>>>>>>> Yeah I have included OnImageData Both on Subscriber & Publisher
>>>>>>>
>>>>>>>
>>>>>>> Andy Shaules wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> So I ask again, do BOTH Broadcaster and subscriber have
>>>>>>>> 'onImageData'
>>>>>>>> handler? I only saw it for subscriber.
>>>>>>>>
>>>>>>>> I think thats why it fails for you.
>>>>>>>>
>>>>>>>>
>>>>>>>> ----- Original Message ----- From: "ddprasad" <ddprasad at gmail.com>
>>>>>>>> To: <Red5 at osflash.org>
>>>>>>>> Sent: Monday, July 06, 2009 8:23 PM
>>>>>>>> Subject: Re: [Red5] OnImageData
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hello All,
>>>>>>>>> Good Morning Everybody.
>>>>>>>>> Yeah I am still having problems with it. Some how OnImageData is
>>>>>>>>> still
>>>>>>>>> not
>>>>>>>>> working.
>>>>>>>>> I will elaborate my problem :-
>>>>>>>>> I am using NetStream to Send full Audio. In Intervals I am sending
>>>>>>>>> images
>>>>>>>>> (only moving parts) as byte array into the netstream. On the
>>>>>>>>> listening
>>>>>>>>> end,
>>>>>>>>> I get full audio. Now for Images, I want to receive the byte array
>>>>>>>>> that
>>>>>>>>> I
>>>>>>>>> had sent earlier.
>>>>>>>>> Say, ClientA sends full Audio, Images As Byte Array
>>>>>>>>>      ClientB receives full Audio, But Images are to be captured.
>>>>>>>>>
>>>>>>>>> For you Information I have developed a full fledged VideoConference
>>>>>>>>> System.
>>>>>>>>> And it works for high speed channels. This one is an attempt to use
>>>>>>>>> as
>>>>>>>>> low
>>>>>>>>> bandwidth as possible.
>>>>>>>>>
>>>>>>>>> Thanx Everybody
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> rfkrocktk wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Yeah, I know it's ugly, but it works :P
>>>>>>>>>> Is he still having problems with it?
>>>>>>>>>>
>>>>>>>>>> On Mon, Jul 6, 2009 at 10:18 AM, Walter Tak <walter at waltertak.com
>>>>>>>>>> >
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>  Tyler that's ugly code ;)
>>>>>>>>>>>
>>>>>>>>>>> People "should" bind a custom class like ; ns.client = new
>>>>>>>>>>> MyVeryOwnCustomClientWithAllKindaMethodsInIt();
>>>>>>>>>>>
>>>>>>>>>>> and then implement onImageData as a function/method. That's way
>>>>>>>>>>> easier
>>>>>>>>>>> to
>>>>>>>>>>> read, debug etc.
>>>>>>>>>>>
>>>>>>>>>>> ddprasad already implemented the client in this way btw.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ns.client = { onImageData: function(...arguments):void {
>>>>>>>>>>> trace("HELLO!");
>>>>>>>>>>> }
>>>>>>>>>>> };
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Jul 6, 2009 at 9:22 AM, Andy Shaules
>>>>>>>>>>> <bowljoman at hotmail.com>wrote:
>>>>>>>>>>>
>>>>>>>>>>>  Should be able to call it manually, if implemented on ALL
>>>>>>>>>>>> clients
>>>>>>>>>>>> INCLUDING broadcaster client.
>>>>>>>>>>>>
>>>>>>>>>>>> Not only your subscribers, but your broadcaster ALSO must have
>>>>>>>>>>>> the
>>>>>>>>>>>> function.
>>>>>>>>>>>>
>>>>>>>>>>>>  ----- Original Message -----
>>>>>>>>>>>>  *From:* Manuel Raña <info at vengava.com>
>>>>>>>>>>>> *To:* red5 at osflash.org
>>>>>>>>>>>> *Sent:* Monday, July 06, 2009 6:56 AM
>>>>>>>>>>>> *Subject:* Re: [Red5] OnImageData
>>>>>>>>>>>>
>>>>>>>>>>>> I read this on this link:
>>>>>>>>>>>> <http://goog_1246884238048>
>>>>>>>>>>>>
>>>>>>>>>>>> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html#event:onImageData
>>>>>>>>>>>>
>>>>>>>>>>>> "Dispatched when Flash Player receives image data as a byte
>>>>>>>>>>>> array
>>>>>>>>>>>> *embedded
>>>>>>>>>>>> in a media file* that is playing"
>>>>>>>>>>>>
>>>>>>>>>>>> So i'm not sure if you can use that method for ns.send.
>>>>>>>>>>>> Have you tried another method name e.g. "onMyCustomImageData"?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> 2009/7/6 ddprasad <ddprasad at gmail.com>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> Oh Sorry,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I posted wrong information about Reading Data
>>>>>>>>>>>>>
>>>>>>>>>>>>> >>>>>>. clientStreams[0] = new StreamClient();
>>>>>>>>>>>>> >>>>>>  ns2.play(ru);
>>>>>>>>>>>>> >>>>>>  ns2.client = clientStreams[0];
>>>>>>>>>>>>>
>>>>>>>>>>>>> Now I hope thing would be easier to understand.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Red5 mailing list
>>>>> Red5 at osflash.org
>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>
>>>
>>>
>>> --
>>> http://gregoire.org/
>>> http://code.google.com/p/red5/
>>> http://code.google.com/p/blue5/
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>
>>
>> --
>> http://gregoire.org/
>> http://code.google.com/p/red5/
>> http://code.google.com/p/blue5/
>>
>> _______________________________________________
>> 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.
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090707/6ad759e7/attachment.html>


More information about the Red5 mailing list