PeertoPeer in Flash Danny Patterson - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

PeertoPeer in Flash Danny Patterson

Description:

... Peer in Flash. Danny Patterson. Flash Player 10. AIR 1.5 ... Adobe Stratus. Flash Collaboration Services (Formerly known as Cocomo) Let's look at the code... – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 17
Provided by: dannypa
Category:

less

Transcript and Presenter's Notes

Title: PeertoPeer in Flash Danny Patterson


1
Peer-to-Peer in FlashDanny Patterson
2
Flash Player 10AIR 1.5
3
RTMFP(Real-Time Media Flow Protocol)
4
UDP
5
Speex
6
Adobe Stratus
7
Flash Collaboration Services(Formerly known as
Cocomo)
8
Lets look at the code
9
var connectionNetConnection new
NetConnection()connection.connect("rtmfp//strat
us.adobe.com/STRATUS_KEY")
10
var hostStreamNetSream new NetStream(connection
, NetStream.DIRECT_CONNECTIONS)var
clientObject new Object()client.onPeerConnect
function(callerNetStream)Boolean // Do
Something return truehostStream.client
clienthostStream.publish("listener")
11
var clientStreamNetStream new
NetStream(connection, peer.id)clientStream.pla
y("listener")
12
hostStream.send(sendObject, foobar)
13
var clientObject new Object()var
clientObject new Object()client.sendObject
function(objectObject)void // got
objectclientStream.client client
14
var microphoneMicrophone Microphone.getMicropho
ne()microphone.codec SoundCodec.SPEEXoutgoin
gStream.attachAudio(microphone)
15
Lets look at examples
16
DannyPatterson.com
Write a Comment
User Comments (0)
About PowerShow.com