Local Flash P2P Communication

My goal is to create a turn-based, over wifi, Air deployed to iOS and Android game. The first thing I want to figure out is local Flash peer to peer communication. I found this tutorial, but when I run it on two different computers over the same wifi network, it doesn't actually communicate (as a side note, his sample of it running on his server doesn't seem to work properly either). There are no errors and each computer is connected to the Wifi so I'm not sure what the problem is. If there is a better way or better tutorial, I would greatly appreciate the advice.

http://blog.leeburrows.com/2011/10/p2p-flash-on-a-local-network-part1/

Similar Messages

  • About Flash P2P live streaming from non-webcam sources

    Hello, I am a university student. Our lab is attempting to work on a p2p live streaming using flash p2p features. The media source is not from a webcam but a file from a certain server, which is not directly supported by any of the 4 methods flash player offers(posting, direct routing , object replication,and multicast.) As some of the forum threads mentioned, our method is to use NetStream.publish() a stream and use send("callbackname", data)  to all subscribers that have joined in a NetGroup. So we can use p2p transmission. Now here are our questions:
    1. We know from MAX 2009 that flash p2p camera video multicasting implements pull-push mechanism inside which makes full use of p2p features like buffer map exchange. If we use NetStream.send() API to send non-webcam source data, will it also make use of this pull-push mechanism to spread data among all peers(subscribers) with proper data exchange?
    or more detailedly,
    I saw the P2P Gaming Libs at flashrealtime.com. It uses DIRECT_CONNECTIONS when creating publish-used NetStream in order to send data with lowest latency. My question is if I do not use DIRECT_CONNECTIONS, than when the NetGroup grow large (1000), will those peers that are not direct neighbors to the publisher in the same group relay data to each other using pull-push via buffer map?
    2. I have written a sample app and use send() to deliver data only (NetStream.bufferTime = 0) without camera video and audio. When the publisher sends the data  in a "for()" stantence for 20 times, the subscribers can only receive about 8 of them. But when I set a timer and periodically send them(e.g., 500ms), the subscribers can receive them correctly. My questions are: Is the packet loss caused by UDP unreliability? Can this be solved by setting the NetStream.dataReliable = ture? Can this totally be solved by setting a timer? How to set the delaytime property in timer? Are all data sent are orderedly received?
    I'm very appreciated if you can answer my questions? thanks.

    1. NetStream.send() data is delivered in the order it was sent, whether in client-server, DIRECT_CONNECTIONS, or multicast mode.
    2. the lowest latency will be achieved with DIRECT_CONNECTIONS.  however, that isn't scalable to large numbers of recipients.  the P2P multicast system trades low latency for scalability.
    3. there are no plans to support a natural NetStream streaming source that's not a camera/microphone.  Flash Media Server can perform that function.
    4. you should never need to implement "bitmap exchange"; the object replication system handles all the communication needed to accomplish its function. typically you will divide a file into segments, giving each one an index number. object replication uses ranges internally, so the index numbers should be contiguous.  nodes that have indices use NetGroup.addHaveObjects().  nodes that want indices they don't have use NetGroup.addWantObjects().  nodes that have objects will send them to nodes that want the objects.  when a node receives an object, it's automatically removed from its "want" set; once the node decides the object is acceptable, it adds it to its "have" set, at which point it can answer requests from other nodes who still "want" it.  eventually every node will have all the pieces and not want any.  for an example, please see Tom Krcha's articles on using object replication:
       http://www.flashrealtime.com/file-share-object-replication-flash-p2p/
       http://www.flashrealtime.com/video-on-demand-over-p2p-in-flash-player-101-with-object-repl ication/
    5. please see Tom Krcha's articles.  for VOD you will probably want to use the "LOWEST_FIRST" replication strategy, as that may allow you to start playing earlier.  for general file replication you'll get better sharing if you use RAREST_FIRST.

  • P2P Communication Problem

    I have a P2P app that has an instant message function that I initially tested on my home network (between 2 different computers).  Everything tested out great.  However, when I had a coworker in a different country install this app so that we could test communication, the instant message function never connects.  The only difference of course is that now the app is trying to communicate not in the context of a local network.  I have read a lot of documentation about Firewalls and the blocking of UDP traffic, although my coworker and I have both verified that our firewalls accept UDP traffic.  We even went so far as to test it with our firewalls turned off, with no results.  I verfied in code that I could get my coworker's ID and Cirrus key from my WebService, and that it was actually placing the call.  However, a few seconds later it hangs up and closes the connection.
    This only happens when connecting over the Internet.  Calls placed to computers inside a local network work fine.  Since Cirrus is negotiating the connection between the two computers (and it is obviously outside my network), I wouldn't think that there should be any difference between inside my network or outside, but I could deinfitely be wrong.  Has anyone had this experience or have any advice in this situation?
    Thanks!

    most likely the peers trying to communicate are each behind a "symmetric NAT".  that's one of the cases where RTMFP can't establish a direct connection.  if you go to http://cc.rtmfp.net/ from the devices that are having trouble communicating with each other and they *both* show a "No" for either "source IP address is preserved from original connection" or "source UDP port number is preserved from original connection" then RTMFP will probably not be able to establish a direct connection.
    for more information about this, please see Matthew Kaufman's forum posting on the subject:
       http://forums.adobe.com/message/1064983#1064983
    another thing to try: if the Cirrus sample app (VideoPhoneLabs http://labs.adobe.com/technologies/cirrus/samples/ ) works, then direct P2P communication *is* possible, and you might have a coding error in your application.

  • Figured out the issue with local flash storage

    OK , a lot of people have had the same issue i had with the local flash storage settings not working, or any of the settings for that matter.....i tried everything and nothing would work. After hours and hours of troubleshooting i finally switched my default web browser from internet explorer to google chrome and bam all the settings were back to working order. Hope this post helps.

    bug is closed by Adobe as "NotABug".
    Flash Players before 11.3.300.257 had different behavior that was more reliable: placing "Dictionary" object to the local storage allowed reading it as "Dictionary". Like placing "Array" resulted to reading "Array" from shared object.
    With Player 11.3 it doesn't work anymore. Reading a property that was placed as "Dictionary" results to plain "Object" read. Any code like "var a:Dictionary = sharedObj.myDictionary as Dictionary;" returns "null". This is very annoying bug that resulted to our application not working for 2 days until we found the reason. I regret Adobe doesn't admit this a bug.
    Writing this in order if someone of developers face with the same issue.

  • How do I let local Flash content communicate with the Intranet?

    How do I let local Flash content communicate with the
    Intranet if you don't have intenet access to set it up? you se like
    a host for example with is out of an internet conexion, but the
    flash file use a web service that it's on the intranet but can't
    config the Global security settings.....
    help!!!

    That variable could be simply called... nextSection
    If you plan to use frame labels, than nextSection would be a String, otherwise it would be an Int (integer).  So when you click the button for section X of the site, the nextSection value is assigned either the frame label or the frame number of that button's section.  Then at the end of your outro, you have a line of code.... gotoAndPlay(nextSection)
    The nextSection variable should be declared in an actions layer that only has code in frame one but extends unbroken for the full length of the timeline.  This makes it available to anywhere along the timeline where it needs to be either read or assigned.  I sually use two layers for actions... one to hold such things like this that get shared anywhere along the timeline (function/variables)... and another for frame-specific actions (stop, value assignment, function calls, etc)

  • How to play the local flash file in nexus one smart phone?

    In Nexus one smart phone(android 2.2), the flash file in the web site is played by browser,
    But local flash file is not played.
    How to play the local flash file?
    Does not support local swf playing yet?

    you can create from flash an AIR app that can be installed as a stand alone app on an android phone:
    tutorial here
    http://designupdate.com/blog/2010/07/27/air-for-android-access-the-microphone/

  • Local flash pop up window HELP!

    Hi,
    I'm trying to open an html popup window locally from a flash
    button. Can anyone help? The issue seems to be specific to local
    machine because I have managed to get this working on the web.
    Unfortunately the project we are working on will also be deployed
    locally - and try as I might I cannot find a solution to my
    problem.
    bottler

    getURL("javascript:null(window.open('
    http://www.wherever.com');");

  • Flash Players communicating

    I am compiling a small chat application in Flash CS6. I am interested to know how Flash Players communicate with one another. Specifically, how do Flash players send messages back and forth to a specific peer. I know Flash players have to know their peer IDs i think they access there peer IDs throught the getRemote.SharedObject. But in ActionScript 3.0 how can i send messages directly to a peer?
    Thank You

    are you using Adobe's Real-Time Media Flow Protocol for peer-to-peer communication?

  • 2 Flash SWFs Communicating in Captivate

    Asked this question ithe Captivate forum but had little
    movement on it so thought I would try asking folks in the Flash
    community...
    I have a Captivate slide that I am importing 2 Flash
    generated SWFs into, and I would like these two SWFs to communicate
    with each other. Essentially the user will interact with one SWF
    and feedback will be displayed by the other SWF.
    I can't seem to decifer how Captivate addresses imported
    SWFs. I thought something like this might work:
    _root.importedSWF2name.gotoAndPlay("Success");
    ...but no luck so far.
    Anybody have an idea?
    Thanks!
    Rory

    if you do not need to use Captivate mProjector can let you
    create an
    app that spawna child window that is can communicate with,
    even move
    and resize or pass functions to it
    look for Parent Child Communication
    on this page
    http://www.screentime.com/software/mprojector/flas.html
    its a nifty sample
    John Pattenden
    Screentime Media
    Flash Screen Saver, Application and Wallpaper tools
    http://www.screentime.com

  • Flash Offline Communication Issue

    I've got a presentation package which works like taking an
    offline course. The whole thing is done with html, embedded swf's
    and javascript. The files are written to a CD and I've built a
    wrapper using MDM Zinc to create an autotunner which will launch
    the course.
    Since the release of flash 9, I am unable to make any
    javascript calls from my swf's in IE7. With IE6, I've discovered
    get url calls still work great and in firefox, using fscommands is
    the way to go - but I cant figure out how to call my javascript
    with IE7. I've set my flash security settings, tried using a
    trusted sites config file, and have tried playing with
    "allowScriptAccess" (among many many other things).
    One machine I've tested on does work perfectly, but it doesnt
    have any updates since SP2, so I imagine there's some windows
    security update that prevents this.
    Has anyone else run into problems calling JS when all the
    files/content are stored locally? If so, does anyone know where
    there troubleshooting steps are documented? I've got to get some
    form of an answer to my client (who will be issuing to their
    clients) by the end of the week. Any help would be greatly
    appreciated!
    Adam

    Anyone have any ideas? Or at least some information as to why
    its not possible? I've gotta have some form of answer for the end
    of the day one way or another

  • Flash client communication with Java server

    I have written a Flash client in actionscript-3 and I have a Java server that is running locally using command prompt. I run the Flash app using Ctrl+Enter in Flash CS4 IDE and I am trying to receive some numbers from the server. I get the following message at trace output:
    Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|/Documents%20and%20Settings/****/My%20Documents/CODE/FLASH/FlashApp/FlashApp.sw f cannot load data from localhost:12345.
    Why? What must i do to overcome this?
    Also when i publish the Flash app and use xampp to run a local web server and then use web browser to access FlashApp.html i also cannot receive any numbers from the java socket server that runs locally (on the same pc as the flash app does).

    Flash makes a request to the socket server automatically, if it doesn't get the proper response (a cross-domain XML document), then it won't connect.
    Here are a couple of links to get you started:
    http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c60.html
    http://www.adobe.com/devnet/air/flex/quickstart/articles/communicating_with_sockets.html
    If you have questions after reviewing these articles, let me know.

  • Flash Media / Communication Server

    We're running Adobe Connect 6 in-house. It's my understanding
    that Flash Media Server and Flash Communication Server are
    installed on the same server and Connect relies on them to operate.
    My question is: Are these the
    full versions of Flash Media Server / Communication Server?
    Can we use them for other applications? Or does our licensing limit
    us to only use these for Connect? (I didn't see anything one way or
    the other.) I called our Platinum support line for Connect and they
    weren't sure. :)

    It has been two years since this thread has been touched.
    Does the same hold true between Flash Communication Server
    1.5 to Flash Media Server 3.5?
    We have a training application running happily on 1.5 but
    there is some desire here to move to 3.5. Need to know if we can
    upgrade without breaking the older application (or update with
    minimal chages - app is pretty basic). We could run 3.5 on a
    different server but IT will want to decomission FCS 1.5 is
    possible.
    Thanks
    Doug

  • P2P communication

    Hi,
    I've been experiencing strange issue with client to client communication.
    I'm preparing new WLAN proof of concept for car repair shop. They use:
    - tester: diagnostic unit connected in car
    - muxer: hardened tablet PC based on Microsoft Windows XP
    Both devices connect to same WLAN, have assigned IP addresses from same IP subnet.
    I've installed WLC2504 (sw 7.5) with 4 LAP1041 and disabled radios on all APs they're currently using.
    I used same WLAN settings as they've been using so far: same SSID, WPA, encryption, PSK.
    P2P blocking action: disable.
    I've successfully connected with all devices - 8 different types. I've successfully connected both tester and muxer. Both devices received IP address assigned from DHCP server. I can ping tester from muxer. But I can't pair both devices together anymore.
    I've connected laptop to same WLAN and ran nmap - I can't find any connectivity problem: nmap shows open tcp and udp ports on both devices. I can establish connection from laptop to SMB share on muxer for example.
    But anyway: what could possible be wrong? It seems there's discovery problem. I don't know how both devices communicate exactly and I'm waiting for this information from manufacturer.
    How could I troubleshoot this issue?
    They've been using APs for home use so far (Asus) - and they haven't experienced this kind of issue. If I disable WLAN on Cisco and re-enable it on Asus APs, everything works perfectly again without any additional intervention.

    Make sure you have broadcast forwarding enabled.
    Steve
    Sent from Cisco Technical Support iPhone App

  • Allowing Global Security Settings for Local Flash Content

    Hi all,
    We have developed one e-learning course for our client. This
    course will be deployed on the CD; that means it will run locally.
    This CD will be dstributed to thousands of users. In this scenario
    I am currently suffering from the Global Security Settings issue as
    this project uses Fscommand to communicate with the javascript. We
    can set the Global Security mannually but it is not feasible to ask
    client to mannaully set the Security Settings to "always" as there
    are thousands of users viewing this course locally.
    I have tried setting "always" value to allowScriptAccess
    property of the Object/embed tag in the html but it does not work
    where the browser Security Settings are kept as "High".(I think
    this is the reason)
    So what will be the workaround for this issue?
    Please reply me if you gone through this problem and found
    any workaround.
    Thanks in advance.

    Hi Popocatepelt,
    Glad to hear that worked for you….
    Local Access Only allows the published SWF file to interact
    with files on the local system, but not on the network. Access
    Network Only lets the published SWF file interact with files and
    resources on the network, but not on the local system.
    For more info take a look at the following
    http://www.adobe.com/products/flashplayer/security/
    For local content:
    http://www.adobe.com/products/flashplayer/articles/localcontent/

  • Adobe Air Local Network P2P

    Hi,
    Is it possible to have Adobe Air application to communicate with each other between a group of PCs networked locally and not connected to the internet? The command send from PC A to PC B, C, D, E, F have to be very fast so that all PCs receive the command at the same time and running the process. Is it possible to do that with Adobe Air? Thanks.

    Hi,
    note: I'm not expert
    #1
    yes, AIR uses SQLite (3.6.*.? now one exactly knows as it is undocumented and sqlite_version() native function will throw runtime error to be handled)
    #2
    it depends for what purpose it will be used and how, yes? e.g.:
    http://stackoverflow.com/questions/3160987/can-sqlite-handle-90-million-records
    #3
    http://www.adobe.com/devnet/air/flex/articles/air_sql_operations.html
    (User experience considerations with SQLite operations)
    http://livedocs.adobe.com/flex/3/html/help.html?content=SQL_01.html
    (docs)
    #4
    there is an option now to create native installer for platform which could be send off-line. It asks user to overwrite content if application is already installed, etc
    #5
    please define "interact" with USB? as disk or interface to talk with some device? Air itself cannot talk to low level ports but could start native process (NativeProcess) to some application/tool/process that could act as middle-tier between your application and usb:
    http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.h tml
    kind regards,
    Peter

Maybe you are looking for

  • Report for Purchases of a Material

    Dear MM gurus Is there any standard SAP report for the following criteria? 1. Material code 2. Qty purchased and uom 3. Value 4. Taxes 5. Total Purchase value 6. Material type 7. Vendor 8. Material Receipt doc.  Appreciate your quick answer. Thanks R

  • Installed 10.8.1 and lost display on my MBP

    I upgraded to 10.8.1 on my mid-2010 i5 MBP and once I logged in following the reboot, my display went black except for one line at the top. Resetting the PRAM seemed to be the only thing that got it back. Reboots alone did not help. I may back out 10

  • Why is "Open in  Camera Raw" greyed out?

    I'm using CS2 and recently  upgraded to Mac OSX 10.5.8 from 10.4.11. Camera Raw has never been  available to me, but I really need it now because there is no version of Canon's raw file utility (Digital Photo Professional) that will work with 10.5 on

  • Up-grading to a Core i7-950

    I would like to up-grade my sluggish processor and was wondering if it is possible to install the new i7-950 Intel Processor? If it is possible, how hard would it be? If all it takes is swapping out the processors has anyone tried this and can you no

  • ML81n reversal of GR entry posted

    Hi Experts, My client created a PO of value EUR100,000 and then made a service entry sheet of 36000. now while doing ML81n he choose PO and did the GR of total value EUR100,000, and then did IR of value EUR 100,000. Now since this was wrong, he rever