Giter Club home page Giter Club logo

as3rtmpclient's Introduction

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

as3rtmpclient's People

Contributors

lucaslorentz avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.