Flex mobile live streaming

Hi All,
  I am trying to display a live stream from rtmp server. Below is my code.
<?xml version="1.0" encoding="utf-8"?>
<s:Group height="100%" width="100%"
         xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
        <![CDATA[
            import mx.core.FlexGlobals;
            private const URL:String    = "rtmp://eigr2.flashlive.bigCDN.com/20175D";//"http://www.helpexamples.com/flash/video/cuepoints.flv";
            private const STREAM_KEY:String = "eigr8";
            private var _video:Video = new Video();
            private var _nc:NetConnection;
            private var _custClient:Object;
            private var _ns:NetStream;
            private var _streamKey:String;
            public function playVideo():void
                var  url:String = URL;
                if(videoHandler.numChildren == 0)
                    _nc    = new NetConnection();
                    _nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                    _nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
                    _nc.connect(URL);
            private function netStatusHandler(event:NetStatusEvent):void
                trace("NC " + event.info.code);
                switch (event.info.code)
                    case "NetConnection.Connect.Success":
                        _video                    = new Video();
                        _video.smoothing        = true;
                        var custClient:Object    = new Object();
                        custClient.onMetaData    = metaDataHandler;
                        _ns                = new NetStream(_nc);
                        _ns.client        = custClient;
                        _ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
                        _ns.addEventListener(DRMErrorEvent.DRM_ERROR, drmerror);
                        _ns.addEventListener(DRMStatusEvent.DRM_STATUS, drmStatus);
                        _ns.addEventListener(StatusEvent.STATUS, status);
                        _ns.addEventListener(NetStatusEvent.NET_STATUS, target);
                        _ns.bufferTime = 2;
                        _ns.receiveVideo(true);
                        var net:NetStreamPlayOptions = new NetStreamPlayOptions();
                        //net.len = 1;
                        //net.transition = NetStreamPlayTransitions.APPEND;
                        net.streamName = STREAM_KEY;
                        _ns.play(STREAM_KEY);
                        _video.attachNetStream(_ns);
                        videoHandler.addChild(_video);
                        videoHandler.visible = true;
                        //background.visible = true;
                        break;
                    case "NetConnection.Connect.Failed":    //shownoVideoText();
                        break;
                    case "NetStream.Play.StreamNotFound":    trace("Unable to locate video: ");
                        break;
            private function status(event:StatusEvent):void
                trace("Status Event : " + event.toString());
            private function drmerror(event:DRMErrorEvent):void
                trace("DRM Error : " + event.toString());
            private function drmStatus(event:DRMStatusEvent):void
                trace("DRM Status : " + event.toString());
            private function videoStates(event:Event):void
                trace(event.toString());
            public function stopVideo():void
                _nc.close();
                _nc = null;
                _ns = null;
                this.videoHandler.removeChild(_video);
            private function asyncErrorHandler(event:AsyncErrorEvent):void
                trace("Async errrorrrrrrrrrrrrrrrrrrrr");
            private function target(e:NetStatusEvent):void
                trace("Started playing : " + e.info.code);           
            private function metaDataHandler(infoObject:Object):void
                this.setVideoSize(infoObject.height, infoObject.width);
            /*public function playVideo():void
                custClient    = new Object();
                custClient.onMetaData    = metaDataHandler;
                nc    = new NetConnection();
                nc.connect(null);
                nc.client = { onBWDone: function():void{} };
                //nc.addEventListener(NetStatusEvent.NET_STATUS, target);
                nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
                ns        = new DynamicCustomNetStream(nc);
                ns.client                = custClient;
                ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
                ns.addEventListener(NetStatusEvent.NET_STATUS, target);
                ns.play(URL);
                videoPlayer.attachNetStream(ns);
                videoPlayer.smoothing        = true;
                if(!videoHandler.contains(videoPlayer))
                    videoHandler.addChild(videoPlayer);
            private function metaDataHandler(infoObject:Object):void
                this.setVideoSize(infoObject.height, infoObject.width);
            override public function set currentState(value:String):void
                super.currentState = value;
                this.videoHandler.percentHeight = value == "fullScreen" ? 100 : 50;
            public function onFCSubscribe(info:Object):void
                trace("onFCSubscribe - succesful");
            protected function goBack():void
                FlexGlobals.topLevelApplication.showVideo(false);
        ]]>
    </fx:Script>
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Button click="goBack()"
              horizontalCenter="0"
              label="Go Back" bottom="50"/>
    <mx:UIComponent width="100%"
                    height="50%"
                    top="0" left="0"
                    id="videoHandler"/>
</s:Group>
When I try to run this, I could successfully connect to server but not getting the data. If I open the url in browser PublishNotify gets dispatched and I get the stream. As soon as I close UnpublishNotify gets dispatched and I wont get the stream. Can I know the possible reasons and solution?

Unless I am mistaken here, you must implement Apple's HTTP Live protocol for streams over ten minutes in length. There is a few options you can take:
1. Split your streams into 9 minute segments and feed them consecutively in groups. (Apple actually offers a segmenting tool that even generates an index file via there Developer tools)
2. Only enable full length streaming over WiFi
3. Fully implement HTTP Live....
Also, do not forgot that not only are you going to have to implement HTTP Live but you are going to have to ALSO include an audio only stream.

Similar Messages

  • Streaming live videos on flex mobile

    Hi I have a flex mobile application targeting the mobile tablets and I was wondering if you guys know of any tutorial
    about putting live feed videos on flex, I have this code that I'm using on my flex 3 to target mac and pc that uses on adobe air, the services of ustream.tv
    here it is.
    But when I try to use it on flex mobile, nothing happens..
    import tv.ustream.viewer.logic.*;
              import tv.ustream.viewer.logic.Display;
              import tv.ustream.viewer.logic.Logic;
              import tv.ustream.net.Connection;
    private var viewer:Logic = new Logic();
    public function videoViewer():void{
               viewer.display.width=800;
               viewer.display.height=400;
               holder.addChild(viewer.display);
               viewer.createChannel("4705238", true, null);
    this one works flawlesly on flex 3 and spark, but no in flex mobile, there is another way to read an rmtp on flex mobile?
    Gus

    OSMF (Spark VideoDisplay) works. It has a few garbage collecting issues, but they can be avoided somehwat.
    See my following post for a kludgy work around on the garbage collection:
    http://forums.adobe.com/thread/904638
    I have also seen a few home-brewed NetStream solutions, but you will need to implement a lot of functionality found in OSMF if you're going to need it.

  • Flex Mobile iOS app, and http live video streaming Question.

    I have subbmitted our app (which is mostly a video playing app) to apple only to have it rejected because of the" 9.4: Video streaming content over a cellular network longer than 10 minutes must use HTTP Live and include a baseline 64 kbps audio-only HTTP Live stream" reason.  I was doing progressive download of the files, but now it looks like we will need to re-encode all of our media, which will probably take months and months. 
    My question is this:  We currently use Akamai as our current CDN, with thier HD Flash delivery system.  Their HD Flash is built to do dynamic bitrate streaming simmilar to Apple's HTTP Live.  If we re-encode our video to milti-bitrate and use the Akamai technology to do the adaptive streaming will this be good enough for Apple, or will we infact need to use their HTTP Live protocol.  Has anyone encountered this problem, or have any experience?  I would like to know before we re-encode all of our media only to find out that we will be forced to use Apples stuff instead.  Any help is much appreciated!

    Unless I am mistaken here, you must implement Apple's HTTP Live protocol for streams over ten minutes in length. There is a few options you can take:
    1. Split your streams into 9 minute segments and feed them consecutively in groups. (Apple actually offers a segmenting tool that even generates an index file via there Developer tools)
    2. Only enable full length streaming over WiFi
    3. Fully implement HTTP Live....
    Also, do not forgot that not only are you going to have to implement HTTP Live but you are going to have to ALSO include an audio only stream.

  • FMS (Live stream ) with FLEX

    hello all,
    could anyone tell me the better media server for live
    streaming(Webcam)

    Can't you just create a timer in the client player and then
    disconnect the user when it hits 30 mins?

  • Flex mobile project as a library for Objective-c project?

    We have a objective-c app for ios already,
    now we have to add a rtmp based feature(I write that with a flex mobile project).
    is there any way to compile the flex mobile project as a objective-c library ,so that the objective-c developer can make that work on ios device?
    Please help me ,Thanks!

    Usually, people include the objective-c libraries in their AIR applications, using native extensions. However, if you just want rtmp streaming in your native iOS app using flash and not the UI, you may want to use the AV Foundation framework, instead of a flex mobile project.
    You may find some useful information and links in this article to achieve it: http://www.adobe.com/devnet/adobe-media-server/articles/streaming-video-ios.html

  • Why am i not able to see any video on Flex Mobile project on tablet

    I am using the strobe media playback in my flex mobile application. I am able to play audio but no video is visible, if i double tap to change to full screen i can see a brief flash of the video then it gets dark again. i am streaming a mp4 file over http. The video displays properly in the emulator but not on my tablet. Can the video encoding have anything to do with it?
    I have the rendermode set to "direct" in the app.xml, my project is based on a ViewNavigatorApplication.

    Safari 5.0.1 or later: Slow or partial webpage loading, or webpage cannot be found

  • Flex Mobile 4.5.1: Package contents and URLLoader

    On Flash for web and desktop (Projector debugger), one can use a URLLoader to load local URLs (eg files off your hard drive).  This is very useful for some development purposes, as you just need to make sure any external files (JSON & PNG) are in the same relative path as the SWF, and you then don't need to worry about different code paths whether you're loading these external files from local storage or http.  URLLoader operates the same whether loading locally or remotely.
    Is there any way to easily get the same behavior on a Flex Mobile 4.5.1 app (specifically for an iOS target)?  Again, this is useful because in my live app, these external files will be loaded from our web server, but for testing purposes I would like to be able to run in a server-less mode and include them with the deployed debug IPA file.  My first problem is that I cannot seem to figure out how to deploy these files to the application in the first place - I tried adding my external-files folder to the Flex Build Path as an additional Source folder, but they still don't show up under the Package Contents for iOS tab.
    Any ideas?  Are there any include-extra-files-in-package options in the -app.xml? 
    Or is there no way to use URLLoader for local storage on mobile, and I am stuck with using Embed?  (I guess besides Embed I could manually deploy the files to the iOS file system and use the AIR api for access, but that's still a different code path, defeating my goal - we have a decent bit of code built around the idea that URLLoader is agnostic)

    Edit: Realized my original answer wasn't correct, the files were being pulled in from another setting.
    After some experimenting, the answer is YES, and it's actually a bit unexpected: Just in fact adding the external files folder to the Flex Build path | Source Path actually pulls them all in.  It seems those directories are passed to both mxmlc and adt.  Unexpected surprise.

  • Trying to add metadata to a live stream completely fails

    Hi.  I've been following this document http://help.adobe.com/en_US/flashmediaserver/devguide/WS5b3ccc516d4fbf351e63e3d11a0773d56e -7ff6Dev.html for adding metadata to an FMS live stream from a Flash widget.
    I've created a stripped-down version of the code (listed below); the same as the original code except the controls are removed.  It works fine only if I comment out the ns.send calls.  If I leave in the ns.send calls, no clients are ever able to view anything.  I'm using a stock FMS 4.5 install on Amazon EC2 -- the AMI is ami-904f08c2.  And I'm compiling the swf using Flex SDK 4.6 on Linux with the command "mxmlc -compiler.library-path+=./playerglobal11_0.swc -swf-version=13 -static-link-runtime-shared-libraries Broadcaster.as".
    package {
        import flash.display.MovieClip;
        import flash.net.NetConnection;
        import flash.events.NetStatusEvent; 
        import flash.events.MouseEvent;
        import flash.events.AsyncErrorEvent;
        import flash.net.NetStream;
        import flash.media.Video;
        import flash.media.Camera;
        import flash.media.Microphone;
        public class Broadcaster extends MovieClip {
            private var nc:NetConnection;
            private var ns:NetStream;
            private var nsPlayer:NetStream;
            private var vid:Video;
            private var vidPlayer:Video;
            private var cam:Camera;
            private var mic:Microphone;
            private var myMetadata:Object;
            public function Broadcaster(){
                setupUI();
                nc = new NetConnection();
                nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                nc.connect("rtmp://myserver/live");
             *  Clear the MetaData associated with the stream
            private function clearHandler(event:MouseEvent):void {
                if (ns){
                    trace("Clearing MetaData");
                    ns.send("@clearDataFrame", "onMetaData");
            private function startHandler(event:MouseEvent):void {
                displayPlaybackVideo();
            private function onNetStatus(event:NetStatusEvent):void {
                trace(event.target + ": " + event.info.code);
                switch (event.info.code)
                    case "NetConnection.Connect.Success":
                        publishCamera();
                        displayPublishingVideo();
                        break;
                    case "NetStream.Publish.Start":
                        sendMetadata();
                        break;
            private function asyncErrorHandler(event:AsyncErrorEvent):void {
                trace(event.text);
            private function sendMetadata():void {
                trace("sendMetaData() called")
                myMetadata = new Object();
                myMetadata.customProp = "Welcome to the Live feed of YOUR LIFE, already in progress.";
                ns.send("@setDataFrame", "onMetaData", myMetadata);
            private function publishCamera():void {
                cam = Camera.getCamera();
                mic = Microphone.getMicrophone();
                ns = new NetStream(nc);
                ns.client = this;
                ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
                ns.attachCamera(cam);
                ns.attachAudio(mic);
                ns.publish("livestream", "live");
            private function displayPublishingVideo():void {
                vid = new Video(cam.width, cam.height);
                vid.x = 10;
                vid.y = 10;
                vid.attachCamera(cam);
                addChild(vid); 
            private function displayPlaybackVideo():void {
                nsPlayer = new NetStream(nc);
                nsPlayer.client = this;
                nsPlayer.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
                nsPlayer.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
                nsPlayer.play("myCamera", 0);
                vidPlayer = new Video(cam.width, cam.height);
                vidPlayer.x = cam.width + 100;
                vidPlayer.y = 10;
                vidPlayer.attachNetStream(nsPlayer);
                addChild(vidPlayer);
            private function setupUI():void {
            public function onMetaData(info:Object):void {

    Also, emitting other events in the ns.send calls works; eg. if I do ns.send("blah", "onMetaData", myMetadata), nothing happens (because there's no "blah" function to do anything), but at least this doesn't cause the entire stream to fail.

  • Flex Mobile Videoplayback ( GPU / CPU )

    Hi,
    I have problems with videoplayback on Android in an Flex Mobile app.
    I using the pur AS3 Strobe Media Playback with OSMF. When a play in emulator the video is ok,
    but on my Android device there are random lines on the Videos ( streamed or local )
    Also is the video not in the right frame ( in the emulator the video is not zoomed in like on the device )
    The app is set to autoOrient = false but for video i force it to landscape mode ( just for the playback )
    If I force the app to gpu rendering the video is perfect but the whole app is very sluggy ( Samsung Galaxy SII )
    Could someone help?

    Hi,
    I have problems with videoplayback on Android in an Flex Mobile app.
    I using the pur AS3 Strobe Media Playback with OSMF. When a play in emulator the video is ok,
    but on my Android device there are random lines on the Videos ( streamed or local )
    Also is the video not in the right frame ( in the emulator the video is not zoomed in like on the device )
    The app is set to autoOrient = false but for video i force it to landscape mode ( just for the playback )
    If I force the app to gpu rendering the video is perfect but the whole app is very sluggy ( Samsung Galaxy SII )
    Could someone help?

  • ((FoX Tv)) Bradley vs Pacquiao Live Streaming Video Online HD Fight TV

    Bradley vs Pacquiao Live Streaming Fight Online PPV Channel Coverage 
    Bradley vs Pacquiao Live
    Date: 12th April
    Bradley's WBO welterweight title
    Enjoy This Live Game Here
    Welcome to everyone to watch this exciting Boxing Match between Bradley vs Pacquiao. The Game is Scheduled on Saturday, 12th April.
    So, Watch This PPV Boxing Game via This Sports Channel Site.
    Catch The Game Here....
    http://goo.gl/MhNI9y
    http://goo.gl/MhNI9y
    http://goo.gl/MhNI9y

    Hi Guys Don’t mistake to start watching Manny Pacquiao vs Tim Bradley Online Boxing match on You’r Pc,Laptop,iphone.ipad,mobile,mac &Android /iOs & tab device. So Join now Today's big Fight
    12 rounds – Welterweight division (for Bradley's WBO title)  match from this site & click on the link below & enjoy Online live coverage . Easy
    to use You can watch Anytime ! Anywhere! Anyhow access. So Just Sing Up Then & Start watching Manny Pacquiao vs Tim Bradley online – Fight Stream : live , preview, highlights and recaps All available here.
    http://goo.gl/Z5jpDi
    http://goo.gl/Z5jpDi
    http://goo.gl/Z5jpDi
    http://goo.gl/Z5jpDi

  • Stage video capability in flex mobile - the whole truth

    I am finding it confusing to work out the capabilities of different types of Flex. So I have been trying throught trial and error. Hopefully forum members can shed light on this
    In flex mobile apps you can access actionscript. Actionscript contains the stage video classes. Does that mean we can use stage video in a flex mobile app by using the actionscript?
    In an Air app we can access actionscript - does that mean we can do the same in Air.
    I hear stage video is only available for GoogleTv and other tv applications, but is that news out of date, seeing stage video classes are available in actionscript?
    I managed to get stage video working in a Flex "Actionscript" project (on the web, but not on my desktop) - yippee-yai-yo.
    But tried and failed to get it working inside a Flex "Flex" projext, or a Flex "Air" project. Is that because I don't know what I am doing, or because it is not possible?
    Also "IF" Stage Video can work in a pure Actionscript project, which it seems to be able to, does that mean I can use it in a mobile actionscript project and use it across android, iphone, blackberry. Or not...
    All help gratefully received, thank you.

    Unfortunately, I did not find a solution and at that point stopped working with Flex for iPad. If you do find a way to stream secure video I would really appreciate knowing!

  • Found out last night that i couldnt watch a live stream confetence because i couldnt download the flash player. why does apple not allow to do that and is there an alternative way other than flash player?

    found out i couldnt watch a live stream coference because apple wont allow to download adobie flash player. why is this and is there a way around it to be able to catch more of live stream in future.?

    lmdzzr wrote:
    a way around it to be able to catch more of live stream in future.?
    In the future, there won't be any Flash. Adobe, who makes it, has cancelled future versions for mobile devices like the iPad:
    http://www.wired.com/gadgetlab/2011/11/adobe-kills-mobile-flash/
    You should check if there is another way to get the live stream. For example, I sometimes watch online classes on a site that uses Flash for the video. But they also provide a non-Flash video stream that can be watched in an iPhone or iPad web browser, and an iOS app that you can also use to watch the stream.

  • IOS RTMP live stream audio

    Hi guys hopefully some of you will be able to help me.
    I am trying to stream audio from a live RTMP feed using the NetConnection and NetStream classes. I've managed to get my app running no problem on Android, however I am having some major difficulties getting it to play the audio back on iPad. Interestingly it works in the device emulators when debugging, however I'm assuming this is not really an accurate representation. I've tried streaming the RTMP in both AAC and MP3, but with no luck from either. I can verify through debug that it has connected to the stream, however I just get no audio playing.
    Everything I've read about seems to suggest that this is possible on IOS as I'm only interested in audio and not video. Can anyone help?
    Code sample below (it's quick and dirty! ).
    THanks in advance!
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark" title="Audio" creationComplete="init()">
              <s:layout>
                        <s:VerticalLayout paddingLeft="10" paddingRight="10"
                                                                  paddingTop="10" paddingBottom="10"/>
              </s:layout>
              <fx:Script>
                        <![CDATA[
                                  import flash.media.Video;
                                  import flash.net.NetConnection;
                                  import flash.net.NetStream;
                                  import mx.core.UIComponent;
                                  private var vid:Video;
                                  private var videoHolder:UIComponent;
                                  private var nc:NetConnection;
                                  private var defaultURL:String="[STREAM]";
                                  private var streamName:String="[STREAMNAME]";
                                  private var ns:NetStream;
                                  private var msg:Boolean;
                                  private var intervalMonitorBufferLengthEverySecond:uint;
                                  private function init():void
                                            vid=new Video();
                                            vid.width=864;
                                            vid.height=576;
                                            vid.smoothing = true;                           
                                            //Attach the video to the stage             
                                            videoHolder = new UIComponent();
                                            videoHolder.addChild(vid);
                                            addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
                                            grpVideo.addElement(videoHolder);
                                            connect();
                                  public function onSecurityError(e:SecurityError):void
                                            trace("Security error: ");
                                  public function connect():void
                                            nc = new NetConnection();
                                            nc.client = this;
                                            nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                                            nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
                                            nc.connect(defaultURL);      
                                  public function netStatusHandler(e:NetStatusEvent):void
                                            switch (e.info.code) {
                                                      case "NetConnection.Connect.Success":
                                                                trace("audio - Connected successfully");
                                                                createNS();                
                                                                break;
                                                      case "NetConnection.Connect.Closed":
                                                                trace("audio - Connection closed");                
                                                                //connect();
                                                                break; 
                                                      case "NetConnection.Connect.Failed":
                                                                trace("audio - Connection failed");                
                                                                break;
                                                      case "NetConnection.Connect.Rejected":
                                                                trace("audio - Connection rejected");                                  
                                                                break; 
                                                      case "NetConnection.Connect.AppShutdown":
                                                                trace("audio - App shutdown");                                 
                                                                break;         
                                                      case "NetConnection.Connect.InvalidApp":
                                                                trace("audio - Connection invalid app");                                   
                                                                break; 
                                                      default:
                                                                trace("audio - " + e.info.code + "-" + e.info.description);
                                                                break;                                                                                                    
                                  public function createNS():void
                                            trace("Creating NetStream");
                                            ns=new NetStream(nc);
                                            //nc.call("FCSubscribe", null, "live_production"); // Only use this if your CDN requires it
                                            ns.addEventListener(NetStatusEvent.NET_STATUS, netStreamStatusHandler);
                                            vid.attachNetStream(ns);
                                            //Handle onMetaData and onCuePoint event callbacks: solution at http://tinyurl.com/mkadas
                                            //See another solution at http://www.adobe.com/devnet/flash/quickstart/metadata_cue_points/
                                            var infoClient:Object = new Object();
                                            infoClient.onMetaData = function oMD():void {};
                                            infoClient.onCuePoint = function oCP():void {};        
                                            ns.client = infoClient;
                                            ns.bufferTime = 0;   
                                            ns.play(streamName);  
                                            ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
                                            function asyncErrorHandler(event:AsyncErrorEvent):void {
                                                      trace(event.text);
                                            intervalMonitorBufferLengthEverySecond = setInterval(monPlayback, 1000);
                                  public function netStreamStatusHandler(e:NetStatusEvent):void
                                            switch (e.info.code) {
                                                      case "NetStream.Buffer.Empty":
                                                                trace("audio - Buffer empty: ");
                                                                break;
                                                      case "NetStream.Buffer.Full":
                                                                trace("audio - Buffer full:");
                                                                break;
                                                      case "NetStream.Play.Start":
                                                                trace("audio - Play start:");
                                                                break;
                                                      default:
                                                                trace("audio - " + e.info.code + "-" + e.info.description);
                                                                break;
                                  public function monPlayback():void {
                                            // Print current buffer length
                                            trace("audio - Buffer length: " + ns.bufferLength);
                                            trace("audio - FPS: " + ns.currentFPS);
                                            trace("audio - Live delay: " + ns.liveDelay);
                                  public function onBWDone():void {
                                            //Do nothing
                                  public function onFCSubscribe(info:Object):void {      
                                            // Do nothing. Prevents error if connecting to CDN.    
                                  public function onFCUnsubscribe(info:Object):void {    
                                            // Do nothing. Prevents error if connecting to CDN.    
                        ]]>
              </fx:Script>
              <s:Group id="grpVideo">
              </s:Group>
    </s:View>

    Just an update on this for anyone coming along after me.
    I've managed to get this working on MP3 but not AAC (I guess AAC just isn't supported?).
    My problem was the buffertime. The docs seemed to indicate it shoudl be set to 0 for live streaming, however switching it to "1" solved my problem on the particular stream I was pointing at.
    So essentially justchanged the above line:
                                            ns.bufferTime = 0;  
    to
                                            ns.bufferTime = 1;  
    Would be great to find out if anyone has gotten AAC working however...

  • Flv and live streaming

    I am unable to play flv applications and live streaming on my nokia lumia 520, why?

    Hi, Saqib213. The .flv video file format is not supported by the Lumia 520. For the list of supported file formats, please check this link: http://www.microsoft.com/en-gb/mobile/phone/lumia5​20/specifications/. Alternatively, you can check the Store for any applications that offers .flv playback functionality. 
    As for your live streaming concern, where are you trying to stream? Are you using an app or via a website? Is there any error message? You can only watch live streams through websites that supports the HTML5 & Silverlight, as these are the supported technologies for WP8 devices.

  • Does Flash lite support live stream?

    I use Flash CS4 and AS3 to build a flash client side live stream swf.
    It can publish and play live video and encode by flash.
    Can Flash lite support it?
    If so, can mobile browser play flash swf?

    Yes flash lite 3.0 / 3.1 support rtmp streaming. you can check your device for more info on rtmp support. Here s a project about what you want:
    http://flashvisions.com/flashlite/spylite-open-source-flash-lite-security-application/
    streaming from camera to flash lite device with rtmp.

Maybe you are looking for

  • How do I copy a book from my wife's iPad to my iPhone?

    I purchased a book using my wife's iPad and would like to move a copy to my iPhone. How does one do that?

  • How to place the xml contents into textframe?(cs2_js)

    after flow the xml into indesign document,i able to get the particular xml element and its contents in a variable. i want to know how to get certain range of xml element's contents and how to place that in textframe? //for get content app.activeDocum

  • Calendar questions

    I've just been to an O2 store to have a play around with the iphone, it looked great and seemed to work as good as I expected it to. A couple of questions though, can the events in the calendar be colour co-ordinated like in ical (i.e. blue for perso

  • Time capsule settings changed now can't view files

    Hi, I changed my settings on my time capsule accidently and now I can't view my files. I click on the time Capsule in windows explorer and all I get is .com.apple.airport.sharepoint. I got this once before but can't remember how to fix it. I can see

  • OC4j10.1.2CMP bean not updating field after creating a record in the table.

    I have a simple table in Oracle 9i database: SQL> desc temp_tbl Name Null? Type OPER_ID NOT NULL NUMBER(5) OPER_STS_TM_DT NOT NULL DATE OPER_STS_CD NUMBER(2) First 2 fields are the Primary Key. last field is standalone. No FK references. I generate a