tag:blogger.com,1999:blog-7504541480590020244.post4358302186189909664..comments2023-05-27T02:53:26.857-07:00Comments on itarato: Peer to peer video and audio streaming with FlexAnonymoushttp://www.blogger.com/profile/10043998745905287618noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-7504541480590020244.post-58001543198026087962013-05-29T00:41:31.046-07:002013-05-29T00:41:31.046-07:00wow its great post...wow its great post...dipakhttp://fmhindiradio.blogspot.innoreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-49393724330148669652013-03-09T08:45:12.301-08:002013-03-09T08:45:12.301-08:00Tahnk you for this excellent tuto, but i have a pr...Tahnk you for this excellent tuto, but i have a problem with this code.<br />When I try it, I can send a stream but the computer wich send can't receive the stream of the other computer, do you know how can I solve this please ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-34692554319143377812012-05-30T13:14:10.731-07:002012-05-30T13:14:10.731-07:00Itarato, thank you for your reply. Good to know th...Itarato, thank you for your reply. Good to know that the error is reproducible. I assume Adobe Forum is the right place to forward this question now.domaemonhttps://www.blogger.com/profile/10852611111311054332noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-21362932733914865342012-05-29T13:35:19.954-07:002012-05-29T13:35:19.954-07:00Hi Domaemon,
Nice catch! I don't know. I'...Hi Domaemon,<br /><br />Nice catch! I don't know. I've tried and same happens here too. In Chrome and Safari too. For a moment I thought somebody blocks the camera, but in fact it's not the camera, it's a stream input. So should be fine. The window's scrollbar is growing, it means it adds something. Also, if works in Ubuntu it means it cannot be a global issue.<br />I'm sorry I cannot think of any helpful. Anybody, ideas?Anonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-30926617697479741072012-05-29T12:25:09.377-07:002012-05-29T12:25:09.377-07:00Itarato, thank you for this informative blog. Want...Itarato, thank you for this informative blog. Wanted to report one issue to see if it happens only to me. The local video streaming with Multivideo.swf works on Ubuntu Linux, but not on MacOS X.<br /><br />Environment:<br />- Multivideo.swf, compiled with Flex 4.6<br />- Ubuntu Linux (11.10) & Chrome & Flash (11.2.202.235)<br />- MacOS X (10.6.8) & Safari & Flash (11.2.202.235)<br /><br />Steps for testing the local video rtmfp streaming.<br />- Open the Multivideo.swf with the browser<br />- Copy and paste the nearID to the text box<br />- Press "Add Contact"<br />- On Ubuntu Linux, a new window appears and shows the mirrored image of the camera input.<br />- On MacOS X, Camera input works, but new windows does not show up.<br /><br />Thanks for your time.domaemonhttps://www.blogger.com/profile/10852611111311054332noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-24890767253564271492012-02-18T22:53:56.919-08:002012-02-18T22:53:56.919-08:00Thank you for your reply, I'll try to implemen...Thank you for your reply, I'll try to implement it then.suexIDhttps://www.blogger.com/profile/17907259248447975459noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-14263782211960956032012-02-18T15:30:27.639-08:002012-02-18T15:30:27.639-08:00Hi suexID,
Haha, from where I was born :) Cool.
I...Hi suexID,<br /><br />Haha, from where I was born :) Cool.<br />I think you can do that, yes. There is nothing here that is not available in the standar AS3 library. I'm only using Flex because that's a proper dev IDE.Anonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-59170059424720067172012-02-18T15:24:30.388-08:002012-02-18T15:24:30.388-08:00Hi Tobias,
I haven't done any Android dev, bu...Hi Tobias,<br /><br />I haven't done any Android dev, but as far as I know you can do that in Flex if the video is supported a similar/same way.Anonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-4285999993297525562012-02-17T11:33:40.634-08:002012-02-17T11:33:40.634-08:00Is there any way to achieve the same functionality...Is there any way to achieve the same functionality by using just Flash Professional CS5? I'm fairly unfamiliar with Flash Builder's interface and Flex. <br /><br />(Thank you for the tutorial, greetings from Kecskemét / Hungary :D)suexIDhttps://www.blogger.com/profile/17907259248447975459noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-63780071480096134912012-01-21T03:17:03.314-08:002012-01-21T03:17:03.314-08:00Is there any chance to port this to android? Or co...Is there any chance to port this to android? Or could I just start a new flex project and run in on my android device?Tobiashttps://www.blogger.com/profile/14975149253965274891noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-23363466475893972852011-10-20T09:28:42.595-07:002011-10-20T09:28:42.595-07:00Hi Hicham,
As far as I know (by the desc http://l...Hi Hicham,<br /><br />As far as I know (by the desc http://labs.adobe.com/technologies/cirrus/) the Straus (now it's called Cirrus) server only helps establishing the communication but then it's happening directly peer to peer between flash player clients. But it's better to ask somebody who used it recently.<br /><br />PeterAnonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-87664391454791447682011-10-19T07:30:48.576-07:002011-10-19T07:30:48.576-07:00Hi itarato,
can you tell me please if the stream ...Hi itarato,<br /> can you tell me please if the stream passes directly between the two users or it passes by the server to the which case it will use the band-width of the server ?<br /><br />Thanks in advance.hichamhttps://www.blogger.com/profile/04449548876955056359noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-46474402878864686182011-05-30T23:28:01.731-07:002011-05-30T23:28:01.731-07:00Well, I'm not sure. I've never tried it ye...Well, I'm not sure. I've never tried it yet. I would play with the container element and make that resizable. If you think of the video resolution, that I've no idea. Maybe you have to redefine the stream...Anonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-1550524870839075462011-05-30T16:25:25.501-07:002011-05-30T16:25:25.501-07:00how can we set the VideoDisplay as resizable compo...how can we set the VideoDisplay as resizable component?EPLhttps://www.blogger.com/profile/05810037031648199895noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-14732771643407394762011-03-27T22:08:27.162-07:002011-03-27T22:08:27.162-07:00I'd try NetStream.publish() with simple string...I'd try NetStream.publish() with simple strings:<br />http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#publish()Anonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-6787711916295155772011-03-26T10:18:36.283-07:002011-03-26T10:18:36.283-07:00hi itarato, could you write down an example or any...hi itarato, could you write down an example or any clue how to add to the appication a text chat ?Unknownhttps://www.blogger.com/profile/14678425803568776112noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-66022361751207475402011-03-17T00:56:05.173-07:002011-03-17T00:56:05.173-07:00Hm, good question. I'd check if the stratus ap...Hm, good question. I'd check if the stratus api key is valid. Connections are not blocked by firewalls. Than checking the error message thoroughly.<br />What is the exact error message btw?<br />My code is in Flex, your's is in Flash, so maybe it has some differences.<br />If you can't get through of it, can you send me code, or some details?Anonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-34577713527985371212011-03-16T11:27:54.415-07:002011-03-16T11:27:54.415-07:00Hi there,
I've been trying to use your code ab...Hi there,<br />I've been trying to use your code above, in Flash CS5. I'm having an issue when I try to add a contact. I get an initial success message but this is immediately following by a closed message. Would you have any idea why this might happen?<br />ThanksTrionahttps://www.blogger.com/profile/06252000656451015432noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-42924979483403240682011-01-05T04:15:35.203-08:002011-01-05T04:15:35.203-08:00The Multivideo.swf and the downloadable source cod...The Multivideo.swf and the downloadable source code file's links are corrected. Thanks!Anonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-43017894593531093262011-01-05T03:14:53.869-08:002011-01-05T03:14:53.869-08:00Hi there,
We are interactive media students and w...Hi there,<br /><br />We are interactive media students and we're working on something similar like this blogpost. Unfortunately the source code isn't working anymore! <br /><br />Could you please e-mail me the source code to rhartog [at] gmail dot com? <br /><br />Thanks!Unknownhttps://www.blogger.com/profile/12655023895507079698noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-11096618302621372402010-07-27T10:52:41.827-07:002010-07-27T10:52:41.827-07:00Finally got it working. Here is a summary Flex SDK...Finally got it working. Here is a summary Flex SDK < 3.5 won't work + Compile Mxml file using -target-player=10<br /><br />Here is successfull compile report:<br /><br />[sun@example bin]$ ./mxmlc -target-player=10 /var/www/html/flash/src/flashs.mxml<br />Loading configuration file /home/sun/Downloads/flex3.5/frameworks/flex-config.xml<br />/var/www/html/flash/src/flashs.swf (196791 bytes)<br />[sun@example bin]$Unknownhttps://www.blogger.com/profile/05025351823105801856noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-88982644018599466782010-07-27T10:50:31.576-07:002010-07-27T10:50:31.576-07:00Then i tried Flex SDK 3.5 still same result:
[sun...Then i tried Flex SDK 3.5 still same result:<br /><br />[sun@example bin]$ ./mxmlc /var/www/html/flash/src/flashs.mxml<br />Loading configuration file /home/sun/Downloads/flex3.5/frameworks/flex-config.xml<br />/var/www/html/flash/src/flashs.mxml(43): Error: Access of possibly undefined property nearID through a reference with static type flash.net:NetConnection.<br /><br /> neerPeerID = nc.nearID;<br /><br />/var/www/html/flash/src/flashs.mxml(51): Error: Incorrect number of arguments. Expected no more than 1.<br /><br /> sendNS = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);<br /><br />/var/www/html/flash/src/flashs.mxml(51): Error: Access of possibly undefined property DIRECT_CONNECTIONS through a reference with static type Class.<br /><br /> sendNS = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);<br /><br />/var/www/html/flash/src/flashs.mxml(67): Error: Incorrect number of arguments. Expected no more than 1.<br /><br /> var receiveNS:NetStream = new NetStream(nc2, contact_peer_id_text.text);<br /><br />[sun@example bin]$Unknownhttps://www.blogger.com/profile/05025351823105801856noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-64052460517892154522010-07-27T10:38:27.158-07:002010-07-27T10:38:27.158-07:00Its not working, can you explain?
[sun@example sr...Its not working, can you explain?<br /><br />[sun@example src]$ /home/sun/Downloads/flex/sdks/3.0.0/bin/mxmlc -target-player=10 flashs.mxml<br />Loading configuration file /home/sun/Downloads/flex/sdks/3.0.0/frameworks/flex-config.xml<br />/var/www/html/flash/src/flashs.mxml(43): Error: Access of possibly undefined property nearID through a reference with static type flash.net:NetConnection.<br /><br /> neerPeerID = nc.nearID;<br /><br />/var/www/html/flash/src/flashs.mxml(51): Error: Incorrect number of arguments. Expected no more than 1.<br /><br /> sendNS = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);<br /><br />/var/www/html/flash/src/flashs.mxml(51): Error: Access of possibly undefined property DIRECT_CONNECTIONS through a reference with static type Class.<br /><br /> sendNS = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);<br /><br />/var/www/html/flash/src/flashs.mxml(67): Error: Incorrect number of arguments. Expected no more than 1.<br /><br /> var receiveNS:NetStream = new NetStream(nc2, contact_peer_id_text.text);<br /><br />[sun@example src]$Unknownhttps://www.blogger.com/profile/05025351823105801856noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-25442606902732752562010-03-24T16:20:44.665-07:002010-03-24T16:20:44.665-07:00Hi Friedrich,
Unfortunately I'm not aware of ...Hi Friedrich,<br /><br />Unfortunately I'm not aware of the technical details of streaming (yet). I assumed, if you change the input source's density to a higher resolution, you will get a better view on the streamed side. I think you checked that already. It can be a bandwidth issue or a NetStream config? I don't know.<br />The other, using names instead of ID-s: you can do tricks, but PeerID is the standard way to identify clients. You need them. But I'm afraid if you want to do it in a user friendly way, you need some kind of backend store to keep track of live clients and their name's.<br /><br />Bests,<br />Peter (from Szeged/Hungary ;) )Anonymoushttps://www.blogger.com/profile/10043998745905287618noreply@blogger.comtag:blogger.com,1999:blog-7504541480590020244.post-8367326175031181672010-03-22T11:27:54.725-07:002010-03-22T11:27:54.725-07:00Hello Peter,
thank you for this example, it ran at...Hello Peter,<br />thank you for this example, it ran at me at once. I have a question about how I can improve the quality of the camera?<br />--------------------------------------------<br />private function initCamera():void {<br /> if (Camera.names.length > 0) { <br /> cam = Camera.getCamera();<br /> cam.setMode(320,240,30); <br /> my_video_display.attachCamera(cam);<br /> }<br />---------------------------------------------<br />Unfortunately, this entry will change only my own video!<br />All other videos (right) remain in tha old poor video quality!<br /><br />There is even the possibility of combining the ID with names?<br /><br />Thank you and am looking forward to your reply.<br /><br />Greetings from Hamburg / Germany<br /><br />Fiedrich Kochfried-hh.blogspot.dehttps://www.blogger.com/profile/13672315483697729164noreply@blogger.com