Skip to content

Backup of Cocoon P2P Library from GoogleCode. Automatically exported from https://code.google.com/p/cocoon-p2p

Notifications You must be signed in to change notification settings

danishgoel/cocoon-p2p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Backup of Cocoon P2P library from GoogleCode.
Automatically exported from https://code.google.com/p/cocoon-p2p


cocoon-p2p

The Cocoon P2P library allows you to easily set up device discovery and communication with different devices on the local network (LAN/WLAN).

With Cocoon P2P you can use you're mobile device as the controller for a game being played on your PC or create application that span across several screens and devices.

Cocoon P2P supports messaging, object-replication, video and accelerometer data.

Requirements: Flash Player 10.1 or later or AIR 2.0 or later for desktop, mobile (Android, iOS, PlayBook) and TVs.

Beta version online now, including support for device discovery, messaging, object-replication and accelerometer - video streaming will be available soon

Cocoon P2P is pretty easy to use - for sample code check the Wiki pages and the Downloads section.

If you're not sure which version to download check this page.

video clips recorded at Adobe MAX 2010, courtesy of hebiflux.com

Device discovery

<p2p:LocalNetworkDiscovery id="channel" clientName="My device" />

<s:List dataProvider="{channel.clients}" labelField="clientName" />

Messaging

<p2p:LocalNetworkDiscovery id="channel" 
     clientAdded="onClientAdded(event)" 
     clientUpdated="onClientUpdated(event)" 
     clientRemoved="onClientRemoved(event)"
     dataReceived="onDataReceived(event)"
     loopback="true" />

Accelerometer

<p2p:LocalNetworkDiscovery id="channel" 
     accelerometerInterval="1000"
     accelerometerUpdate="onAccelerometer(event)" />

Object replication

<p2p:LocalNetworkDiscovery id="channel" 
     objectComplete="onFileComplete(event)" />

Video streaming (support coming soon)

<p2p:LocalNetworkDiscovery id="channel" 
     videoStream="{cam}" />

About

Backup of Cocoon P2P Library from GoogleCode. Automatically exported from https://code.google.com/p/cocoon-p2p

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published