OnImageData

View: New views
9 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: OnImageData

by Walter Tak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
>>> To: <Red5@...>
>>> 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@...>
>>>>> 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@...>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@...>
>>>>>>> *To:* red5@...
>>>>>>> *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@...>
>>>>>>>
>>>>>>>>
>>>>>>>> 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@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: OnImageData

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
To: <red5@...>
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@...>
>>>> To: <Red5@...>
>>>> 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@...>
>>>>>> 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@...>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@...>
>>>>>>>> *To:* red5@...
>>>>>>>> *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@...>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> 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@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: OnImageData

by Mondain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm pretty sure NetStream.send support never existed. 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@...> 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@...>
To: <red5@...>
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@...>
To: <Red5@...>
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@...>
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@...>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@...>
*To:* red5@...
*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@...>


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@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
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@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: OnImageData

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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 -----
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
Or I may be confusing to two different functions..


Paul

On Tue, Jul 7, 2009 at 8:28 AM, Andy Shaules <bowljoman@...> 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@...>
To: <red5@...>
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@...>
To: <Red5@...>
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@...>
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@...>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@...>
*To:* red5@...
*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@...>


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@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
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@...
http://osflash.org/mailman/listinfo/red5_osflash.org

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: OnImageData (SOLVED)

by ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello ALL,

My problem got solved with OnImageData.
Your(s) previous suggestions were correct. I got messed them up  with package name(s) in my application. I resolved them now. I have struck with another one. But not related to OnImageData.

I would like thank all guys for their help. It is 10.00pm here Now I am going to sleep and see you after 8.00AM IST (after 10 hours from now roughly)

BBYE.

Walter Tak wrote:
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@gmail.com>
>>> To: <Red5@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@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@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@vengava.com>
>>>>>>> *To:* red5@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@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@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: OnImageData

by Mondain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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 -----
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
Or I may be confusing to two different functions..


Paul

On Tue, Jul 7, 2009 at 8:28 AM, Andy Shaules <bowljoman@...> 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@...>
To: <red5@...>
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@...>
To: <Red5@...>
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@...>
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@...>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@...>
*To:* red5@...
*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@...>


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@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
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@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
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@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: OnImageData

by rfkrocktk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...> 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@...
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
Or I may be confusing to two different functions..


Paul

On Tue, Jul 7, 2009 at 8:28 AM, Andy Shaules <bowljoman@...> 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@...>
To: <red5@...>
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@...>
To: <Red5@...>
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@...>
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@...>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@...>
*To:* red5@...
*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@...>


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@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
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@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
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@...
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@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: OnImageData

by Manuel Raña :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
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@...> 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@...> 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@...
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
Or I may be confusing to two different functions..


Paul

On Tue, Jul 7, 2009 at 8:28 AM, Andy Shaules <bowljoman@...> 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@...>
To: <red5@...>
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@...>
To: <Red5@...>
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@...>
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@...>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@...>
*To:* red5@...
*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@...>


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@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
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@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
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@...
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@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: OnImageData (SOLVED - JIST OF WHAT HAS BEEN DONE)

by ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Good Morning,

package {
               
        public class StreamClient
        {
                var oType:int;    /// RELATES TO MY APPLICATION
                var remobject:Object;  /// RELATES TO MY APPLICATION
                var bL:tmvcsrv;  /// RELATES TO MY APPLICATION
                public function StreamClient(remo:Object,typ:int,blg:tmvcsrv) {
                        trace("StreamClient():-");
                        oType=typ; bL=blg;
                        if (oType==2) remobject=remo;
                }
                public function onImageData(imageData:Object):void {
                        if (oType==1) return;
                        trace("Source Data Length: " + imageData.length)
                }
               
                public function onTextData(info:Object):void {
                        trace("onTextData (LIB): " + info.toString());
                }
                public function onMetaData(info:Object):void {
                        trace("onMetaData (LIB): " + info.toString());
                }
                public function onCuePoint(info:Object):void {
                        trace("onCuePoint (LIB): " + info.toString());
                }
                public function onBWDone():void { }
        }
}

The Application has Array of 5 NetStreams
Stream[0] --> Publishing
Stream[1-4] ----> Subscribing

Publishing Side:
Streams[0].client = new StreamClient(1,1,bLogic);  // Arg 1,1, ==>OnImageData will simply Return
// I Think this is not needed but that is yet to be tested
Sending Part:-
function SnapShots() {
        mdInterval = (mdInterval%5) + 1;
        var src:bd= new BitmapData(gblFrameWidth,gblFrameHeight,false,0x000000);
        var differences:Array = <get the moving object>;
        var bytes:ByteArray = new ByteArray();
        bytes.writeObject(differences);
        Streams[0].send("onImageData", bytes);
}

Subscribing Side:-
ClientStreams[num] = new StreamClient(remo,2, this);
Streams[num].client = clientStreams[num];

///////////////////////////////////////////////////////////////////////////////////////

Manuel Raña wrote:
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@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@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@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@gmail.com>
>>> *To:* red5@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@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@waltertak.com>
>>>> To: <red5@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@gmail.com>
>>>>>>>> To: <Red5@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@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@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@vengava.com>
>>>>>>>>>>>> *To:* red5@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@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@osflash.org
>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5@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@osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5@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@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@osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>

_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
< Prev | 1 - 2 | Next >