Title: Flash Media Fun Hour
1Flash Media Fun Hour
Stefan Richter stefan_at_flashcomguru.com
2What is Flash Media Server?
3What is Flash Media Server?
Flash Communication Server (released mid-2002)
4What is Flash Media Server?
Flash Media Server (released late 2005)
Flash Communication Server (released mid-2002)
5What is Flash Media Server?
Flash Communication Server
Flash Media Server
6What is Flash Media Server?
(kind of)
Flash Communication Server
Flash Media Server
7What can you do with it
- Live Video, Audio and Data in Flash
- Streaming Audio/Video
- Record Audio/Video (from webcam)
- Bit pricey
- License cap on bandwidth and connectioms
- No Personal Edition anymore
- but Free Developer Edition!
8What can you build with it
9What can you build with it
10What can you build with it
11What can you build with it
12What can you build with it
13What can you build with it
14Alternatives(theres only one)
http//osflash.org/red5
15Installation
is easy
16Connecting up
Remote rtmp//myserver.com/myapp
/myinstance or Local rtmp/myapp /m
yinstance
17Connecting up
var ncNetConnection new NetConnection()
nc.connect( rtmp//server.com/myapp
/myinstance )
18Connecting up
var ncNetConnection new NetConnection()
nc.onStatus function (info)
trace(info.code) nc.connect("rtmp//s
erver.com/myapp")
19Connecting up
rtmp//server.com/myapp actually connects
to
rtmp//server.com/myapp/_definst_
20rtmp//server.com/myapp will connect you to
21Once connected
22Once connected
23Once connected
24Streaming Video
FMS will look for flv files in a subfolder
/streams/instancename
Example
25Remote SharedObjects (SO)
- Establish a NetConnection
- Get the SO
- write onSync handler - it syncs SO data
- connect the SO
26// first connect up, then remote_so SharedObj
ect.getRemote("remote_so", nc.uri, true)
// this fires everytime the SO data changes r
emote_so.onSync function( list ) // an array
of objects for (var i in list) trace("
slot code " listi.code) trace("slot name
" listi.name) trace("slot value " this
.datalisti.name) this.data.val "h
ello world" this.data.val2 "hello world2"
remote_so.connect( nc )
27Remote SharedObjects (SO)
Some onSync Examples
28Remote SharedObjects (SO)
SO.send example
29NetConnection.callClient.call
Example
30Snapshotter
31Snapshotter
32Snapshotter
33Snapshotter
34Snapshotter
35Snapshotter
36Questions?
37Where to learn more
- The definitive book OReillys Programming
FCS (800 pages)
- www.flash-communications.net
- www.jessewarden.com
- http//chattyfig.figleaf.com
- www.flashcomguru.com
38Thanks!