1 / 38

Flash Media Fun Hour

Flash Media Fun Hour. Stefan Richter stefan@flashcomguru.com. What is Flash Media Server?. What is Flash Media Server?. Flash Communication Server (released mid-2002). What is Flash Media Server?. Flash Communication Server (released mid-2002). Flash Media Server (released late 2005).

cissy
Télécharger la présentation

Flash Media Fun Hour

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Flash Media Fun Hour Stefan Richter stefan@flashcomguru.com

  2. What is Flash Media Server?

  3. What is Flash Media Server? Flash Communication Server (released mid-2002)

  4. What is Flash Media Server? Flash Communication Server (released mid-2002) Flash Media Server (released late 2005)

  5. What is Flash Media Server? == Flash Communication Server Flash Media Server

  6. What is Flash Media Server? == (kind of) Flash Communication Server Flash Media Server

  7. What 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!

  8. What can you build with it

  9. What can you build with it

  10. What can you build with it

  11. What can you build with it

  12. What can you build with it

  13. What can you build with it

  14. Alternatives(there’s only one) http://osflash.org/red5

  15. Installation is easy

  16. Connecting up Remote rtmp://myserver.com/myapp [/myinstance] or Local rtmp:/myapp [/myinstance]

  17. Connecting up var nc:NetConnection = new NetConnection(); nc.connect( “ rtmp://server.com/myapp [/myinstance] “ );

  18. Connecting up var nc:NetConnection = new NetConnection(); nc.onStatus = function (info) { trace(info.code); } nc.connect("rtmp://server.com/myapp");

  19. Connecting up rtmp://server.com/myapp actually connects to rtmp://server.com/myapp/_definst_

  20. rtmp://server.com/myapp will connect you to

  21. Once connected

  22. Once connected

  23. Once connected

  24. Streaming Video FMS will look for flv files in a subfolder /streams/[instancename] Example…

  25. Remote 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 = SharedObject.getRemote("remote_so", nc.uri, true); // this fires everytime the SO data changes remote_so.onSync = function( list ) // an array of objects { for (var i in list) { trace("slot code: " + list[i].code); trace("slot name: " + list[i].name); trace("slot value: " + this.data[list[i].name]); } this.data.val = "hello world"; this.data.val2 = "hello world2"; } remote_so.connect( nc );

  27. Remote SharedObjects (SO) Some onSync Examples

  28. Remote SharedObjects (SO) SO.send example

  29. NetConnection.callClient.call Example

  30. Snapshotter

  31. Snapshotter

  32. Snapshotter

  33. Snapshotter

  34. Snapshotter

  35. Snapshotter

  36. Questions?

  37. Where to learn more • The definitive book O’Reilly’s ‘Programming FCS’ (800+ pages) • www.flash-communications.net • www.jessewarden.com • http://chattyfig.figleaf.com • <plug> www.flashcomguru.com </plug>

  38. Thanks!

More Related