RTMP works on Android, but doesn't work on iOS!

Hi guys,
I'm really stuck, don't know why recently my app can't play some rtmp streamers, it can only work with some others. Previously there was no issue.
Could you see the below peice of code. This one works fine on PC and Android, but not on iOS.
import flash.events.*;
import flash.media.Video;
import flash.net.*;
var client:MediaClient = new MediaClient();
var connection:NetConnection = new NetConnection();
connection.client = client;
// connection.proxyType = "best";
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
connection.connect("rtmp://66.160.142.198/live");
var stream:NetStream;
var video:Video = new Video(480, 320);
addChild(video);
function netStatusHandler(evt:NetStatusEvent):void
   switch(evt.info.code)
       case "NetConnection.Connect.Success":
           stream = new NetStream(connection);
           stream.client = client;
           stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
           stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
           stream.play("vtv11");
           video.attachNetStream(stream);
           break;
       default:
           // output evt.info.code on screen
           break;
function securityErrorHandler(evt:SecurityErrorEvent):void
   // output evt.toString() on screen
function asyncErrorHandler(evt:AsyncErrorEvent):void
   // output evt.toString() on screen
and here is MediaClient class:
package
   public class MediaClient
       public function onBWDone(...args):void
           // ouput args
       public function onFI(...args):void
           // ouput args
       public function onMetaData(...args):void
           // ouput args
       public function close(...args):void
           // ouput args
I tried to output some debug text, I saw it netconnecton was connected, the server invoked onFI() every about 2 seconds, but there's no video and sound. (tested on iOS 4, both 3G and wifi).
I also tried alot of options of the video, netstream and netconnection classes and tried with OSMF, but can't get it work. (I'm using AIR 3.0 sdk).
Thank you so much!

Can you post what type of stream you're trying to view? 
There are compatibility issues with H.264 and iOS over RTMP/RTMFP.  If your video stream is H.264, then you won't be able to view it on iOS over RTMP.  In that case, though, you *should* still be able to hear the audio (depending on what audio codec you're using).

Similar Messages

  • APP created with Air for Android but doesn't work on the emulator for test - Help!

    When I create an application using Flash CS5.5>>> AIR FOR ANDROID.
    After creating a test page I go to publish settings and send the app on Emulator RELEASE ... The APP is loaded correctly but as soon as you start the emulator, give this error "The application XXnameappXX (process air.XXnameappXX) has stopped unexpectedly. Please try again" Help Please!

    Ok i've find this before "Adobe Flash CS5/AIK2.5/runtimes/air/android/emulator/Runtime.apk" and install it on android emulator! Now works all i hope! Thanks for your answer!

  • Mailto not working on iOS

    Hey dear members of this forum,
    Trying to make a simple mailto button,wrote on the click event
    window.open("mailto:[email protected]");
    Simple.
    Working on all browsers, and android, but doesn't work on an Iphone. Just opens up a blank page.
    Tried adding a target, didn't help either. Tried writing mailto:// didn't to the trick as well.
    Any suggestions?

    Put a textbox on top of button and try sym.$("textButton").html("<a ref='mailto:[email protected]'>Send e-mail</a>");
    Works fine!

  • The wifi at my school isn't very good. And I can't send iMessages through it. It works for some apps like score center and my radar app, but doesn't work for other apps like clash of clans and iMessage. How can I get it to work on that  wifi network

    The wifi at my school isn't very good. And I can't send iMessages through it. It works for some apps like score center and my radar app, but doesn't work for other apps like clash of clans and iMessage. How can I get it to work on my school wifi. I have an iPhone 4S on AT&T and iOS 7.04

    In a roaming network, your "main" router is the device that would require port mapping/forwarding to be configured in order to access the IP camera from the Internet. This router is also the one that would be provide the private IP address for the camera which you will want to be a static one.
    So as you described your network, the IP cameras should be getting an IP address or you assigned it a static one and this is the address that you would enter in the Private IP address (or equivalent depending on the router used) field when setting up port mapping.
    If you are not able to access this camera from the local network, then this should be troubleshot first.

  • My iphone 6 connects to the car via bluetooth, the music works good, but the phone calles does not work.  It looks like it is working but doesn't.  I have tried in my Hyundai and a Dodge rent car and get the same results.  I updated the last 8.0.2.

    My iphone 6 connects to the car via bluetooth, the music works good, but the phone calls does not work.  It looks like it is working but doesn't.  I have tried in my Hyundai Sonata and a Dodge Dart rent car and get the same results.  I updated the last 8.0.2.  It worked the first day i had the phone, and then i updated to Ios 8.0.2 and it quit working.
    Now when i get in the car, it acts like it is connected and makes the same call it was on after syncing to bluetooth, but it really isn't on a call.  This is happening on both cars.
    Does anyone know if this is the phone and i need to take it to Apple or if there is an issue that Apple is working on getting a fix for?
    My son in law has the exact same phone as me, we both got the on 10/6, he had a Dodge Dart and his is working via bluetooth.
    Someone HELP please, as i consider this a safety issue by not having my calls go to bluetooth.

    We had the same problem, but figure out the solution.
    You MUST have at least 1 song added to your ITUNE!  After you add a free song, then everything else should work as normal!
    Hope this helps!

  • IPod Shuffle 2nd Gen. not working, music plays but doesn't sync\

    Hello,
    I have an iPod Shuffle 2nd Gen since a long time and it always worked perfectly. But now it has stopped working well. It has music stored inside and it plays it, it evencharges from the pc, but doesn't sync in iTunes, nor it shows up on Desktop. On iTunes the message in Italian says idt couldn't be identified and to reconnect the iPod and retry. I tried the Reset Utility but it says my iPod isn' supported even if it is a 2nd Gen iPod. The only positive thing is it shows up on System Profiler.
    I tried also turning off the iPod for 5 seconds and turning it again on, but the issue is still there.
    Have you got any suggestions?
    Thankyou

    Actually it turns out I can't even add to it. It claims it's synced to another library (which apparently is true, being as it was last used with my Macbook Pro). Somewhat new question, How do I combine the two libraries, as it's all mine, just on two different computers, one of which doesn't work unless it's in Hard Disk Mode.

  • I updated my iphone 5 to ios 6.0.2. my wifi says its connected but doesn't work now. It doesn't matter what wifi network I connect to. It worked before updating my phone. I can no longer use facetime or use wifi at all. I'm not sure what to do to fix it.

    I updated my iphone 5 to ios 6.0.2. my wifi says its connected but doesn't work now. It doesn't matter what wifi network I connect to. It worked before updating my phone. I can no longer use facetime or use wifi at all. I'm not sure what to do to fix it.

    I'm having similar issues with my phone.  I got my first iPhone recently, only had an iPod touch gen4 for a little over a year.  Updated to 6.0.2 when we got the phone (iPhone 5) a few days before Christmas.  When I got home on the evening of January 11, my phone would not connect the router anymore.  I was able to get it to connect after resetting the phone and the router, updating the router, and manually connecting.  That laste for a few minutes and then wouldn't work anymore.   I live in an area with very limited service, we have a network extender installed to help, and I am barely getting a 3G signal at times.
    My wife's iPad 4, my touchiPod 4, and all of our laptops are working just fine on the router.  When I dropped my kid off at school today, I noticed that I am not even seeing the school network anymore from the parking lot where before I got 3 or 4 bars and could connect to their wifi when I was there.  Today my phone goes back and forth between seeing my home network but not connecting, to not even seeing the network at all even from the same room that the router is in.
    Hope Apple fixes this problem soon..............

  • HT4314 Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I

    Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.

    Contact iTunes
    Contact iTunes

  • Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can se

    Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. When I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game. 

    Hello Vaidas Vaidas,
    It sounds like you are noticing someone else is accessing your Clash of Clans data by playing the game and you have tried to reset your Apple ID password. If you are following the steps outlined in this article:
    Apple ID: Changing your password
    http://support.apple.com/kb/ht5624
    What is preventing you from changing your password? Any error messages or prompts?
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • I have a VGA adapter and an iPad2.  Tried projecting my iPad2 to projector using the VGA but doesn't work.  Tried it with friend's iPad1 and it works.  Why??

    I have a VGA adapter and an iPad2.  Tried projecting my iPad2 to projector using the VGA but doesn't work.  Tried it with friend's iPad1 and it works.  Why??  Pls help.

    Yup - nothing happens.  I then took the same VGA cable and plugged it into my friend's iPad1 and it worked perfectly when she opened Keynote.  My understanding is that the iPad2 mirrors the entire screen, so no need to go into any specific application in order to project to the screen, right?  Do I need to download any specific app or change any settings in order to be able to project the screen using VGA?
    Sorry - novice at this.  Not very tech minded either...

  • My Iphone 5s doesn't work. When i power on appear searching the sim card, but doesn't connect to the operator. Who can help me?

    Hy dear!
    My Iphone 5s doesn't work. When i power on appear searching the sim card, but doesn't connect to the operator. Who can help me? I reset the Iphone, but doesn't fix the probem.
    Thanks

    Hi dear!
    I'm very disappointed with Apple products! I was 15 days without my Iphone 5, because it stopped working and the had to be replaced by authorized apple. Then i bought an iphone 5s in two days it stopped working. Doesn't read the sim card. I call to Apple suport and discovery that the model A1533 is not warranted in Brazil and need to be replaced, because there is a hardware problem. In a moment i don't have anyone Phone. Why Apple does not send other equipment equal to authorized to exchange my Iphone, because in Brasil doesn't have the same model? I liked a lot this Apple phone, but i can't use, i have one brand new, but doen'st work. I don't have anybody in USA to exchange in one Apple store. Please help me!
    Thanks.

  • TS4057 I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What d

    I did this and now my videos are not working. They show the pictures aren't there on some and on others it shows they are there, but doesn't show them in the player. When I try to Share anything it just says Waiting for Processing for hours. What do I do?
    I also got Motion and can't figure out how to use it with Final Cut Pro X. Any help woud be great. Thanks

    I have no idea what may have caused your MacBook to stop working, but from your description it kind of sounds like it may have started before you ran Software Update and installed the new Apps. Just the general slow feeling and bugginess is what tips me off. You said that you weren't sure if you had closed all open windows, that doesn't matter if the computer restarts itself. It automatically closes all other open applications when restarting.
    As to your data being retrievable, if when you take it in they do a fresh install of the OS, then no, it will not be unless you want to pay several thousand dollars to a software retrieval company.
    I am glad to hear that you have taken into the Apple Store to get it fixed, and that you have all of your purchased music backed up to your iPod. You should be able to just transfer it all back to iTunes once you get your computer back should it be necessary.
    As a side note, the proper place for this topic would probably in the MacBook forums, not iTunes since there is no evidence that iTunes started the issue.

  • ISight works fine in iChat but doesn't show up in Yahoo Messenger nor Skype

    Hello, I was given an iSight webcam that works fine in iChat, but doesn't show up in Yahoo Messenger nor Skype, which are the IM programs I use…
    I search on the Apple Support site a driver to download, but there is only an updater (iSight Updater 1.0.3) which doesn't run on Tiger... Any help please ?? Thx

    You probably don't need it, but the Tiger "iSight Updater" is located in the \System\Library\CoreServices\iSight Updaters\iSight Updater folder.
    (You must look manually because SpotLight does not find it.)
    Double click the "iSight Updater" there to run the Firmware update manually.
    Some options for other readers:
    http://discussions.apple.com/thread.jspa?messageID=10084429&#10084429
    iSight "Product Revision Level" in your Mac's System Profiler shows the installed firmware version for external (Firewire) iSight.
    Firmware 1.0.3 Update offers only "Improved audio performance". It does NOT enable audio or any other function, so that is NOT your problem with Skype or YMM. Search or post in their dedicated help/discussions for best and quickest help with those specific, non-Apple apps.
    Regardless of whether System Profiler utility shows Firewire iSight's Firmware (Product) level of 1.0.2 or 1.0.3, external iSight ought to work. You can test your external iSight using the suggestions on this linked page:
      http://www.ralphjohns.co.uk/EZJim/EZJimpage4.html
    EZ Jim
    “I may receive some form of compensation, financial or otherwise, from my recommendation or link."
    Mac Pro Quad Core (Early 2009) 2.93Ghz w/Mac OS X (10.6.2)  MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.2)
    LED Cinema Display  G4 PowerBook 1.67GHz (10.4.11)  iBookSE 366MHz (10.3.9)  External iSight

  • Code working in HTML doc but doesn't in Edge ?

    So My Jquery code works out of Edge but doesn't in Edge What I am trying to do is move the Background IMG when the mouse moves
    Code:
    var tempX = 0;
    var tempY = 0;
    var oldTempX = 0;
    var oldTempY = 0;
    var IE =  !!(window.attachEvent&&!window.opera);
    function shiftImageXY(e) {
      if (IE) {
        tempX = event.clientX + document.body.scrollLeft;
        tempY = event.clientY + document.body.scrollTop;
      } else { 
        tempX = e.pageX;
        tempY = e.pageY;
      img = document.getElementById('#Stage_background');
      speedFactorDamping = 0.1;
      xdir = (tempX - oldTempX) ;
      ydir = (tempY - oldTempY) ;
      parallexX = -xdir*speedFactorDamping;
      parallexY = -ydir*speedFactorDamping;
      currX = parseInt(img.offsetLeft);
      currY = parseInt(img.offsetTop);
      img.style.left = (currX + parallexX) + 'px';
      img.style.top = (currY + parallexY) + 'px';
      oldTempX = tempX;
      oldTempY = tempY;
      return true;
    document.onmousemove = shiftImageXY;
    any idea thanks in advance
    here is the fiddle: http://jsfiddle.net/NjVg9/

    you are Coding it in wrong way !!
    Edge Animate use jquery differently !!
    you should do it this way :
    in Stage > compositionReady :
    sym.$("image").css({"position":"absolute"})
    var tempX = 0;
    var tempY = 0;
    var oldTempX = 0;
    var oldTempY = 0;
    var IE =  !!(window.attachEvent&&!window.opera);
    sym.shiftImageXY = function(e){
      if (IE) {
        tempX = event.clientX + $("body").scrollLeft()
        tempY = event.clientY + $("body").scrollTop()
      } else { 
        tempX = e.pageX;
        tempY = e.pageY;
      img = sym.$("image");
      speedFactorDamping = 0.1; // change this for faster movement
      xdir = -(tempX - oldTempX) ;
      ydir = -(tempY - oldTempY) ;
      parallexX = xdir*speedFactorDamping;
      parallexY = ydir*speedFactorDamping;
      currX = parseInt(img.offset().left);
      currY = parseInt(img.offset().top);
      img.css({"left":(currX + parallexX) + 'px'})
      img.css({"top": (currY + parallexY) + 'px'})
      oldTempX = tempX;
      oldTempY = tempY;
      return true;
    in Stage > mousemove :
    sym.getComposition().getStage().shiftImageXY(e)
    Zaxist

  • Can negative B&W image be converted to positive, done this on elements previously by inverting but doesn't seem to work same way in lightroom ?

    Can negative B&W image be converted to positive, done this on elements previously by inverting but doesn't seem to work same way in lightroom ?

    You should be able to invert in Lightroom. But choose the point curve rather than the region curve. If the negative is film you might get better results from scanning.

Maybe you are looking for

  • Report of Sales

    Respected Sir/Madam,                I have a small Issue one of my enduser is working on Sale Quotation.He has done overall 25 Quotatoins per day.By the end of the day he wants to see only those Quotatins that has done by him of that particular date.

  • EXP or EXPDP for a specific Schema

    I know how to exp a schema using it's userid : exp scott/tiger file=emp.dmp log=emp.log But if I want to exp SCOTT using the SYS login, how would be the command? I did not found the relevant switch/parameter of the command.

  • Widget acts strangely in Safari, but okay in MSIE and Firefox

    This may be asking a lot from iWeb, but I've written a small Javascript calculator widget and inserted it into a page as an HTML snippet. It has several text entry fields. The strange thing that is happening in Safari is that if the cursor is in one

  • Adding Missing 'Size' Column in a spotlight search window

    Hi All, Is there a way to get the 'Size' column to appear in a spotlight search window? Maybe a terminal hack or something? Why didn't Steve include it?

  • Firefox does not retain my history files, how do I retrieve them ?

    I have been using Firefox for the longest time now, but lately I noticed that when I check my history files, that there are none. And no my teens did not delete them, because when I am on the computer for an extended time, and check, there are no his