Skip to content

alundavies/webcam-streaming

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream webcam and microphone to a rtmp server

Usage

FlashVars

  • server : rtmp server
  • stream : rtmp stream to publish
  • token : (optional)
  • camerawidth : default 640
  • cameraheight : default 480
  • camerafps : default 15

Example

Raw HTML:

    <embed src="webcam.swf"
           flashvars="server=rtmp://localhost/live&stream=plop"
           bgcolor="#ffffff"
           width="500"
           height="500"
           name="haxe"
           quality="high"
           align="middle"
           allowScriptAccess="always"
           type="application/x-shockwave-flash"
           pluginspage="http://www.macromedia.com/go/getflashplayer" />

With SwfObject:

    var flashvars = {server : "rtmp://localhost/live",
                     stream : "plop"};
    var params = {};
    var attributes = {};
    swfobject.embedSWF("webcam.swf", "myId", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);

Compile

    # debug version
    make debug

    # release version
    make release

License

LGPL 2.1

Credits

Original code haXe Video by Nicolas Cannasse

Copyright (c)2007 Nicolas Cannasse Copyright (c)2011 af83

About

Stream webcam to rtmp server using flash widget.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published