OnImageData

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

OnImageData

by ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello EveryBody,

I am facing this error, when trying to send ByteStream over RTMP:

---------> Extract for sendiing data <---
var src:BitmapData = new BitmapData(640,480,false,0x000000);
var differences:Array = mdMotionObject.extractMovingData();
var bytes:ByteArray = new ByteArray();
bytes.writeObject(differences);
ns.send("onImageData", bytes);
//ns.send("@setDataFrame","onImageData", bytes);

----------> Reading data <-------------
clientStreams[0] = new StreamClient();
ns1.play(ru);
ns2.client = clientStreams[0];


===============================
public class StreamClient
        {
                public function StreamClient()
                {
                }
                public function onImageData(imageData:Object):void
                {
                        trace("imageData length: " + imageData.data.length);
                        //addChild(imageloader);
                }
               
                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
                {
                }
        }
===============================
But I am getting the above 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.


I wish somebody comes up a near solution or an approach  to solve the above problem.

Thanx.
DDPRASAD

Re: OnImageData

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

does the sending client have the method too?


----- Original Message -----
From: "ddprasad" <ddprasad@...>
To: <Red5@...>
Sent: Sunday, July 05, 2009 11:47 PM
Subject: [Red5] OnImageData


>
> Hello EveryBody,
>
> I am facing this error, when trying to send ByteStream over RTMP:
>
> ---------> Extract for sendiing data <---
> var src:BitmapData = new BitmapData(640,480,false,0x000000);
> var differences:Array = mdMotionObject.extractMovingData();
> var bytes:ByteArray = new ByteArray();
> bytes.writeObject(differences);
> ns.send("onImageData", bytes);
> //ns.send("@setDataFrame","onImageData", bytes);
>
> ----------> Reading data <-------------
> clientStreams[0] = new StreamClient();
> ns1.play(ru);
> ns2.client = clientStreams[0];
>
>
> ===============================
> public class StreamClient
> {
> public function StreamClient()
> {
> }
> public function onImageData(imageData:Object):void
> {
> trace("imageData length: " + imageData.data.length);
> //addChild(imageloader);
> }
>
> 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
> {
> }
> }
> ===============================
> But I am getting the above 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.
>
>
> I wish somebody comes up a near solution or an approach  to solve the
> above
> problem.
>
> Thanx.
> DDPRASAD
> --
> View this message in context:
> http://www.nabble.com/OnImageData-tp24350570p24350570.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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 ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Andy,

What you meant is not clear. But The code that I have given here is for client side only. On the Server Side I have RED5. I have not one any there there till now.


Andy Shaules wrote:
does the sending client have the method too?

----- Original Message -----
From: "ddprasad" <ddprasad@gmail.com>
To: <Red5@osflash.org>
Sent: Sunday, July 05, 2009 11:47 PM
Subject: [Red5] OnImageData


>
> Hello EveryBody,
>
> I am facing this error, when trying to send ByteStream over RTMP:
>
> ---------> Extract for sendiing data <---
> var src:BitmapData = new BitmapData(640,480,false,0x000000);
> var differences:Array = mdMotionObject.extractMovingData();
> var bytes:ByteArray = new ByteArray();
> bytes.writeObject(differences);
> ns.send("onImageData", bytes);
> //ns.send("@setDataFrame","onImageData", bytes);
>
> ----------> Reading data <-------------
> clientStreams[0] = new StreamClient();
> ns1.play(ru);
> ns2.client = clientStreams[0];
>
>
> ===============================
> public class StreamClient
> {
> public function StreamClient()
> {
> }
> public function onImageData(imageData:Object):void
> {
> trace("imageData length: " + imageData.data.length);
> //addChild(imageloader);
> }
>
> 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
> {
> }
> }
> ===============================
> But I am getting the above 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.
>
>
> I wish somebody comes up a near solution or an approach  to solve the
> above
> problem.
>
> Thanx.
> DDPRASAD
> --
> View this message in context:
> http://www.nabble.com/OnImageData-tp24350570p24350570.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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

Re: OnImageData

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


THis client who sends the image data must also have the function
'onImageData'
---------> Extract for sendiing data <---
>> var src:BitmapData = new BitmapData(640,480,false,0x000000);
>> var differences:Array = mdMotionObject.extractMovingData();
>> var bytes:ByteArray = new ByteArray();
>> bytes.writeObject(differences);
>> ns.send("onImageData", bytes);


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

Re: OnImageData

by ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Andy,
Can you be more specific in what you are saying. I got stuck here for the past one month.
Any working example.

ThanX.

Andy Shaules wrote:
THis client who sends the image data must also have the function
'onImageData'
---------> Extract for sendiing data <---
>> var src:BitmapData = new BitmapData(640,480,false,0x000000);
>> var differences:Array = mdMotionObject.extractMovingData();
>> var bytes:ByteArray = new ByteArray();
>> bytes.writeObject(differences);
>> ns.send("onImageData", bytes);


_______________________________________________
Red5 mailing list
Red5@osflash.org
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


----------> Reading data <-------------
clientStreams[0] = new StreamClient();
ns1.play(ru);
ns2.client = clientStreams[0];


Shouldn't be: ns1.client = objectWithOnImageDataMethod;?
The method should be called on clients playing that stream
Here, the playing NetStream is ns1

Also, try using another method name (e.g. OnImageBytes) since i think onImageData is a reserved method and i'm not sure if this is the intended usage (get image metadata from h264 or mp3 files?)

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

Re: OnImageData

by ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Manuel Raña wrote:
> ----------> Reading data <-------------
> clientStreams[0] = new StreamClient();
> ns1.play(ru);
> ns2.client = clientStreams[0];
>


Shouldn't be: ns1.client = objectWithOnImageDataMethod;?
The method should be called on clients playing that stream
Here, the playing NetStream is ns1

Also, try using another method name (e.g. OnImageBytes) since i think
onImageData is a reserved method and i'm not sure if this is the intended
usage (get image metadata from h264 or mp3 files?)

_______________________________________________
Red5 mailing list
Red5@osflash.org
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 read this on this link:
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

Some parts of this message have been removed. Learn more about Nabble's security policy.

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: info@...
Sent: Monday, July 06, 2009 6:56 AM
Subject: Re: [Red5] OnImageData

I read this on this link:
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 rfkrocktk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: info@...
Sent: Monday, July 06, 2009 6:56 AM
Subject: Re: [Red5] OnImageData

I read this on this link:
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




--
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 Walter Tak :: 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.
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: info@...
Sent: Monday, July 06, 2009 6:56 AM
Subject: Re: [Red5] OnImageData

I read this on this link:
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 rfkrocktk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: info@...
Sent: Monday, July 06, 2009 6:56 AM
Subject: Re: [Red5] OnImageData

I read this on this link:
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




--
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 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.
I'm pretty sure if the broadcaster also gets one of those as its client all should be well.
 
 Aside, I strictly reserve  { var:value} initialized values for outgoing function calls only.
 
However, I do often define local methods within class methods.
 
My theory is that anything that sticks around, should stick to the wall, heaped or stacked. :)
 
----- Original Message -----
Sent: Monday, July 06, 2009 10:20 AM
Subject: Re: [Red5] OnImageData

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: info@...
Sent: Monday, July 06, 2009 6:56 AM
Subject: Re: [Red5] OnImageData

I read this on this link:
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




--
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

by rfkrocktk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm just throwing it out there for simplicity's sake :)
But wait, is he trying to send an image from one client to everyone else? Or from the server?

On Mon, Jul 6, 2009 at 10:32 AM, Andy Shaules <bowljoman@...> wrote:
I'm pretty sure if the broadcaster also gets one of those as its client all should be well.
 
 Aside, I strictly reserve  { var:value} initialized values for outgoing function calls only.
 
However, I do often define local methods within class methods.
 
My theory is that anything that sticks around, should stick to the wall, heaped or stacked. :)
 
----- Original Message -----
Sent: Monday, July 06, 2009 10:20 AM
Subject: Re: [Red5] OnImageData

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: info@...
Sent: Monday, July 06, 2009 6:56 AM
Subject: Re: [Red5] OnImageData

I read this on this link:
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




--
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




--
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 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.
As far as I know '@... is not implemented in red5. If I am mistaken it would be good to know.
 
So instead, we advise hime to implement the functions anyway, and use 'ns.send('onImageData', bytes)' which would have the same effect more or less.
----- Original Message -----
Sent: Monday, July 06, 2009 10:35 AM
Subject: Re: [Red5] OnImageData

I'm just throwing it out there for simplicity's sake :)
But wait, is he trying to send an image from one client to everyone else? Or from the server?

On Mon, Jul 6, 2009 at 10:32 AM, Andy Shaules <bowljoman@...> wrote:
I'm pretty sure if the broadcaster also gets one of those as its client all should be well.
 
 Aside, I strictly reserve  { var:value} initialized values for outgoing function calls only.
 
However, I do often define local methods within class methods.
 
My theory is that anything that sticks around, should stick to the wall, heaped or stacked. :)
 
----- Original Message -----
Sent: Monday, July 06, 2009 10:20 AM
Subject: Re: [Red5] OnImageData

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: info@...
Sent: Monday, July 06, 2009 6:56 AM
Subject: Re: [Red5] OnImageData

I read this on this link:
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




--
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




--
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

by Mondain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The MP3Reader class in the server sends onImageData to clients if you want to see the server side of this (embedded album art). The "player4" example application (in svn) will accept the onImageData call and display the image in flex if you want to see a client side version. If your intention is to send from flex to the server and back out to other flex clients, you will need to implement a method in your server application to accept the bytes and then send them back out. A simple invoke on the client connection works great.

Paul

On Mon, Jul 6, 2009 at 10:44 AM, Andy Shaules <bowljoman@...> wrote:
As far as I know '@... is not implemented in red5. If I am mistaken it would be good to know.
 
So instead, we advise hime to implement the functions anyway, and use 'ns.send('onImageData', bytes)' which would have the same effect more or less.
----- Original Message -----
Sent: Monday, July 06, 2009 10:35 AM
Subject: Re: [Red5] OnImageData

I'm just throwing it out there for simplicity's sake :)
But wait, is he trying to send an image from one client to everyone else? Or from the server?

On Mon, Jul 6, 2009 at 10:32 AM, Andy Shaules <bowljoman@...> wrote:
I'm pretty sure if the broadcaster also gets one of those as its client all should be well.
 
 Aside, I strictly reserve  { var:value} initialized values for outgoing function calls only.
 
However, I do often define local methods within class methods.
 
My theory is that anything that sticks around, should stick to the wall, heaped or stacked. :)
 
----- Original Message -----
Sent: Monday, July 06, 2009 10:20 AM
Subject: Re: [Red5] OnImageData

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: info@...
Sent: Monday, July 06, 2009 6:56 AM
Subject: Re: [Red5] OnImageData

I read this on this link:
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




--
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




--
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




--
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 ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>
>


--
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

Re: OnImageData

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/OnImageData-tp24350570p24366533.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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 ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/OnImageData-tp24350570p24366533.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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

Re: OnImageData

by ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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");
}



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
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/OnImageData-tp24350570p24366533.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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 >