Skip to content

lucaslorentz/AS3RtmpClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

AS3RtmpClient

This is a proof of concept RtmpClient based on Flazr (http://flazr.com/) created to run on Flash Player (AS3 + Sockets + ByteArray).

First of all. I did that code some time ago. I'm not working on it anymore, and it is just a proof of concept.

In order to use flash.net.Socket in a Flash sandbox environment, you need to have a flash socket policy server. Look at http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html. Because of this restriction, this library might be more suited for AIR apps.

MOTIVATION

Why creating a AS3 RtmpClient if Flash supports it natively?

I did that experiment when I was trying to figure out some way to save video streaming to hd using only Flash Player.

Things that I got working on my tests:

  • Save streaming video to a local file, while it is playing.
  • Modify RtmpSampleAccess to true on any video, allowing to take snapshots (bitmapData.draw) of the video.
  • Send customized swfUrl, pageUrl, and other connection parameters.
  • Publish custom bitmaps to a live stream. Instead of sharing a Webcam, I shared a display object.
  • I also created an app using Adobe AIR to play RTMP Streams on my Android devices. For personal use ;-)

USAGE

var connectionConfig:String = "rtmp://rtmp01.hddn.com/play playpath=mp4:vod/demo.flowplayervod/buffalo_soldiers.mp4";

var video:Video = new Video();

var rtmpNetStream:RtmpStreamPlayer = new RtmpStreamPlayer();				
rtmpNetStream.play(connectionConfig, video);

The play method receives a connection configuration like librtmp. http://rtmpdump.mplayerhq.hu/librtmp.3.html

Some videos will work, some others will not. Whatever, this library is just a proof of concept. :-)

LICENSE

As Flazr. This project is licensed under the LGPL License.
http://www.gnu.org/licenses/lgpl.html

About

A proof of concept AS3 RtmpClient using sockets, based on Flazr.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published