FLPlayer is a OSMF based simple application for playing flash based live video streaming content to android devices. FLPlayer works with popular streaming servers like Flash media server, Wowza media server or Red5 media server to play live video content. FLPlayer is suitable for both business to consumer redistribution and/or first hand usage.
- July 13, 2014
- Actionscript 3.0, Air, AIR Extensions, Android, Commercial, Java, Mobile, OSMF, Red5, RTMP
- Actionscript 3.0, Adobe AIR, Advertising, Air, Android, Flash Player 11, freebies, HTC, Native Extension, OSMF, reusable, RTMP, Streaming, Video, Wowza
- May 19, 2012
- Actionscript 3.0, Commercial, General
- Actionscript 3.0, Flash, Flash Player 10.1, Flash Player 11, Flex 4, OSMF, Streaming, Video
Videopp is a new site in the line of business that megavideo used to be. While Megavideo has been wrapped up by the FBI in US, new sites like videopp are coming up to take advantage of this situation. As a flash developer i am curious to learn how these sites work. So i have been at cracking some loopholes that i will like to share here.
- March 26, 2010
- Actionscript 3.0, OSMF, Red5
- Actionscript 3.0, Flash, Flash Player 10.1, OSMF, Red5, RTMP, Streaming, Video
Recently working on a Flex project i had the need to implement a video player in my Flex application. Although my needs did not involve media streaming, rather only playing live streams, i still needed a industry standard code to my solution. Thats where OSMF (Strobe) came handy. Tracking OSMF for a few months, seems like we finally have a usable version – OSMF 1.0 (0.93).
The second hurdle was passing parameters to RTMP application. As the traditional Netconnection class allows connection params in the constructor, i was unable to find a example on the web involving OSMF and passing parameters to RTMP applications. Finally after some struggle , god’s grace 🙂 i think i nailed it. Here is the code snippet showing you how to connect to a RTMP application and passing parameters when connecting.
Note: Make sure you have latest OSMF revision from trunk added to your project classpath.
<mx:Application applicationComplete="application1_applicationCompleteHandler(event)" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="1024" minHeight="768">
private static const REMOTE_STREAMING:String = "rtmp://localhost/RtmpAuthenticate/DarkKnight.flv";
private var mediaElement:VideoElement;
private var mediaPlayer:MediaPlayer;
private var container:MediaContainer;
protected function application1_applicationCompleteHandler(event:FlexEvent):void
var vector:Vector.<Object> = new Vector.<Object>();
vector = "rajdeep";
vector = "xyz123";
// TODO Auto-generated method stub
mediaElement = new VideoElement(new StreamingURLResource(REMOTE_STREAMING,StreamType.RECORDED,NaN,NaN,vector),new NetLoader);
container = new MediaContainer();
container.addMediaElement( mediaElement );
// Flex requires a DisplayObject to be wrapped in Flex Framework UI Abstraction
videoParent.addChild( container );
// MediaPlayer is a virtual controller. Assign it a media element and it will autoplay the media by default.
mediaPlayer = new MediaPlayer(mediaElement);
container.width = 320;
container.height = 240;
private function onMediaPlayerState(me:MediaPlayerStateChangeEvent):void
<mx:UIComponent x="144" y="110" width="409" height="325" id="videoParent" />