ActionScript 3.0 :: Join Multicast Group On AIR DatagramSocket?
Jun 4, 2011
I'm currently testing Flex/AIR for a new software that we have to design to display data received from the network and I'm very excited about all possibilities Flash offers in terms of UI and how easy it is to quickly develop a nice-looking, portable application, compared to other technologies (like Java, though richer in terms of API but harder to write code reusable for desktop, Internet and mobile apps, and not so good looking ).
The application itself gets data from a multicast group and formats it on the screen (images, graphs, ...).
So I'm really willing to use Flash to build this app and after a few benchmarking/prototyping I'm using a DatagramSocket (AIR-only, that's fine) to read UDP datagrams and it's working fine except for two tiny things on which I couldn't find any answer: I can't have the socket join a multicast groupI can't set the send/receive buffer size for the socket I have a lot of code in C and Java for that and both are just a single call to "setsockopt" function: In C: setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, &group, sizeof(struct ip_mreq)) - where "group" describe the multicast group to joinsetsockopt(sock, SOL_SOCKET, SO_RCVBUF, &sz, sizeof(sz)) - where "sz" is the number of byte to use for the receive bufferIn Java it's even simpler, using a MulticastSocket: sock.joinGroup(group)sock.setReceiveBufferSize(sz) I tried to use Alchemy to write simple functions to create an UDP socket and have it join a multicast group but alas, the "socket" call returns -1, as it seems that sockets cannot be created in Alchemy environment (though compilation works without problem...).
I find it hard to believe that I'm the only one needing these two tiny "setsockopt" calls... I found on Adobe forums people trying to set the TCP_NODELAY option on a socket (also using setsockopt in the end) but without success...
By the way, the data come from an electronic board and is somehow coded in VHDL so I can't use RTMFP on that, though it seems to implement the functionnalities I need (or at least the multicast group part, the receive buffer size would be a bonus).
Well, I'm rather disapointed by this as Flash fills remarkably 99.9% of the application needs but this tiny 0.1% makes it impossible for it to get the data, thus making it useless...
And we don't want that I turn to Silverlight, do we?
View 4 Replies
Similar Posts:
Aug 14, 2009
I've got some MC's in my library that have radiobuttons in them -- all of this created at design time -- and pull them onto the stage dynamically. My question is how do I get the selectedData from the group? The setup is like this: In a MC called pageOne, I have a group of buttons with a group name of Q1, Q2, etc. I pull the MC onto the stage like this:
[Code]...
Do I need instance names on each of the buttons and add listeners to all of them?
View 4 Replies
Oct 17, 2010
I have some code here for some falling leaves. I was wondering how it can be altered so there is a delay between a group of leaves falling and the next group falling? also to slow down at the end of the fall? [code]
View 9 Replies
Dec 3, 2006
I want to join two if statements together and I'm unsure of the syntax. This is what I have but it is obviously wrong. if (Key.isDown(Key.RIGHT) or if (moveRight_btn.onPress){
View 7 Replies
Feb 9, 2010
We are a group of beginners flash developers, and we are making a first game, but we are working in a part each one. So we need to know how we can join the differents files .fla that we are making in only one file .fla is it possible
View 2 Replies
Sep 24, 2010
I have 2 movieclip on the stage:movie1 and movie2so i need to join these 2 movieclips in just one called movie3 in way that when i call the movie3 it displays me movie1+movie2.
View 6 Replies
Sep 24, 2010
I have 2 movieclip on the stage:
movie1 and movie2
so i need to join these 2 movieclips in just one called movie3 in way that when i call the movie3 it displays me movie1+movie2.
View 5 Replies
Aug 25, 2010
I want to ask how do you join two points with a line using actionscript? The points would be constantly moving.
View 9 Replies
Jan 26, 2011
I need to delivery a proyect on friday and I need to join several swf files. I create buttons like for example ENTER when I click on it I place the function
[Code]...
and it works itload the new file but I can see the other file so what to do is to delete, erase or anything to not see the previews swf i will have back and foward buttons
View 3 Replies
Dec 6, 2008
I want to develop a "Join the Dots" game. I am anewbie in flash. I want to let the users join the dots to form alphabetical letters. If they do it correctly, they gain scores.
View 1 Replies
Jan 13, 2011
I need to add one array to another (only care about saving the joined one). Which is the preferred way of doing this? Speed is the primary concern followed by readability (I consider Option 1 to be a cleaner option). I assume it might also depend on the length of the arrays, but are there any good guidelines?
[Code]...
View 2 Replies
Oct 11, 2005
this should be easy but cannot get it to work:
[Code]...
have tried a number of methods including concat(), & etc. I know I'll kick myself.
View 2 Replies
Oct 12, 2008
I've got 3 variables called pSize1 = 15, pSize2 = 16, pSize3 = 17. I have some radio buttons that have the data: 1, 2, 3. depending on what radio button is pressed, I need to trace the data in either pSize1, pSize2, or pSize3.if they user presses the first radio button, it returns data 1, how can I combine that with "pSize" to return 15, and not "pSize1". What i have tried so far:
Code:
var listenerObject:Object = new Object();
listenerObject.click = function(eventObj:Object):Void {
thisSize = eventObj.target.selectedRadio.data[code]......
View 2 Replies
Aug 14, 2010
How can I join 2 different movie clips (Panle_mc, Text_mc) so that they can move together if I move one clip?
View 5 Replies
Jan 2, 2008
Can an swf flash clinet use the Socket class to listen to amulticast stream?
View 2 Replies
Jun 21, 2011
I am wondering if any one can point me in the right direction. I have a number of sound objects. I am wondering if there is any way I can pull out the byte arrays and stitch them together into as one bytearray.
View 1 Replies
Jul 21, 2011
There's an array, lets called it arr1. There is a switch, that pushes argument to this array, but after the switch ends, I'm stuck at join("").split("");
var arr1 = [];
switch (myString) {
case "apple": {
arr1.push("apple");
break;
}}}
arr1 = arr1.join("").split("");
I know is simple, but I never had experience with arrays in flash before, I just realized join("") was used to convert the Array to string, but isn't split reversing this?
View 2 Replies
Oct 15, 2010
There seems to be great documentation on multicasting live streams.I can't find anything about multicasting recorded stream. Is there documentation? Or any other sources of info on multicasting recorded streams?
View 4 Replies
Oct 27, 2010
1) Can FMS do multicast streaming through internet rather than only LAN?
2) Can we create multicasting of recorded video files stored on the server rather than LIVE video multicasting?
View 10 Replies
Nov 9, 2010
I was wondering if any one could clarify something with IP multicast. From what I understand to get IP multicast to work the server needs to publish to the router box. So how can this be achieved if the FMS server is not in the same network as the router box? Would it require a second FMS server to be placed in the same network as the router box that connects to the main FMS server?
View 5 Replies
Feb 28, 2011
We are testing IP Multicast, with Flahs media player 4.0. We set up the encoder and generated the manifest file. Multicast start, but we see lot of bufferring and video running fast. After about 2 minutes, the encode stops publishing to the server. We are using digital rapids as the encoder.
View 3 Replies
Mar 9, 2011
I create a local netconnection, and the netgroup on the server side. How can I record the stream that is published to a netgroup?
View 1 Replies
Nov 16, 2011
We have a video broadcasting platform and we use FMS 4.5 to broadcast a multicast stream. My question is : can we do QoS tagging of this multicast stream ?
View 1 Replies
Nov 29, 2011
I am testing the P2P function of Flash Media Server 4.I have setup two environment for testing, but only one can success to using the P2P.However, i found that there is some problem in network connection.Here is my procedure to create the Peer to Peer Multicast.1. Using Multicast Config Tool ( oolsmulticastconfigurator) to create the "Peer to Peer" type (Generate the manifest.f4m and copy the publisher stream name to flash encoder) --> multicast type: Peer to Peer --> RTMFP URL: rtmfp://true ip/miltocast --> stream name: livestream --> publish password: password --> group name: fms.multicast.example --> ip multicastaddress and port: 224.0.0.254:30000 Using Flash encoder with the public stream name connect to flash media server.3. In client side, we use the example player ( oolsmulticastmulticastplayer)
First Environment (A) - not work
1. Flash Media Server (Data center)
Data center reported that "All the port have opened (TCP/UDP)
[code]....
View 1 Replies
Jan 27, 2012
I'm in the process of developing a realtime video chat application where multiple users can send video streams simultanuously. The number of users receiving the streams can be very big, e.g. 10 broadcasters and 500 receivers, each receiver should get all streams.
I use RTMFP connections to an FMS and streams are published in P2P multicast groups by passing the groupspec to the NetStream constructor. Currently I'm having problems with audio/video synchronization and video stream 'jumps' (not continuous). From what I read on other threads, this is related to the fact that there is not enough upstream bandwidth for sending the streams. So my questions are:
How to calculate the required upstream bandwidth on every peer for the given example of 10 broadcasters and 500 receivers (is it 10*bandwidth of one stream)?What settings (on NetStream, Camera, Microphone etc.) should be used for best results and how to adapt them based on the number of broadcasters?
View 5 Replies
Dec 7, 2010
Flash Media Server (finally) supports multicast video. But documentation about this feature is about multicasting live video
View 1 Replies
Dec 19, 2010
I know this question comes up from time to time, but it's completely unaddressed in the documentation and I'd like there to exist a more authoritative treatment of the subject.Like many other developers, we're trying to record multicast RTMFP streams. We see three options:
Broadcasting clients open two outgoing NetStreams: one for the multicast group through RTMFP, and another directly to FMS through RTMP for recording. One downside to this solution is that now the user has two outgoing streams, so available outbound bandwidth for any broadcasting client could easily become a constraint on video quality.One can stream to FMS 4 using RTMP and have FMS-side code that records and broadcasts the stream to the multicast group using RTMFP (recommended by JayCharles at http:url...). I haven't tried this out yet but my guess it that it will have worse video quality than a pure RTMFP solution. Is my concern justified?Super-hacky solution: one could have flash player running in some kind of virtual environment on a server. This flash player could subscribe to the multicast stream and record the video at a systems level. Has anyone tried a hack as daring as this? What solution is recommended by Adobe?It's incredible to me that FMS 4 can't act as an RTMFP consumer, thereby both acting as a multicast node and also recording the video. Can anyone at Adobe comment on this omission in functionality?
View 3 Replies
Mar 2, 2011
I work for a carrier, and am looking at implementing IP Multicast on an MPLS network to support enterprise executive webcasts. As your probably aware, there are multiple multicast methods available.
Anyways its down to two multicast methods. PIM-SM ( which our engineering group will probably reject to complexity)
PIM-SSM ( Which not every application supports Can anyone advise on whether Adobe flash media server ( and player ) support PIM-SSM multicast?
View 4 Replies
Apr 5, 2011
am setting up multiple multicast sessions, i generated configurations for each session using a seperate stream name, IP address, port.
1) Is it possible to run multiple multicast session.From configuration, looks like we can, but need confirmation
2) How can i test these sessions using the default player ? or any sample player
View 1 Replies
Sep 24, 2011
Where i can download RTMFP fms multicast Player?
i tried osmf not working.
View 2 Replies