Skip navigation
MeThY
Currently Being Moderated

Transparent videos in Air for iOS

Aug 7, 2012 8:26 AM

Tags: #transparent #video #flv

Hey guys,

 

I'm trying to play some transparent FLV files inside my app.  My issue is, It's working as expected in ADL, but not on the device?  (I'm using Air 3.3, iOS 5, iPhone 4s).

 

Any helps?

Cheers!

 
Replies
  • Currently Being Moderated
    Aug 9, 2012 7:21 PM   in reply to MeThY

    I've done it using VP6 and a custom video player, but never tested the app with AIR 3.3.

     

    For anyone with a question about Flash or ActionScript, I'd recommend http://stackoverflow.com/ because you're more likely to get an answer.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 7:31 PM   in reply to random(1)

    Some of the other forums are worth trying, but I think they are more general Flash, and not mobile specific. Whether you get an answer here may depend on the exact question. If the question only has a little bit of detail answers may not come so quickly.

     

    In this case I had a theory about the question, but feel sure that I'm wrong, so I didn't post. But I'll say it anyway…

     

    In some video cases you have to use Netstream and not FLVPlayBack to get what you want. Playing H.264 may be such a case. In other cases you can use the FLVPlayBack component to play FLV files, possibly even with transparency.

     

    What you will most likely not get anyway with is using a controller skin and FLVPlayback, on iOS. I believe those use external ActionScript, and that isn't allowed.

     

    So, with only the information that it works in Test Movie and not on a device, my guess is that you're using a custom controller skin.

     

    If that's not the case, do you get video that is not transparent, no video at all, or video but no sound?

     

    Whatever the case, do try just Netstream, that has the best chances of working.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 3:33 AM   in reply to MeThY

    MeThY,

     

    H264 video can be played on iOS using StageVideo object only.

    Please use that instead of the simple Video object.

     

    -mayank

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 4:53 AM   in reply to MeThY

    MeThY,

     

    With StageVideo one can overlay the UI elements on top of a video but not vice-versa.

     

    -mayank

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 5:42 AM   in reply to MeThY

    MeThY,

     

    According to the documentation, Flash doesn't support alpha channels in H.264 video. You'll have to use VP6.

     

    The FLVPlayback component doesn't handle alpha channels very well. You're better off sticking with a Video object.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 5:57 AM   in reply to MeThY

    If the video is H.264, then it's not  FLV. You'll notice that such files that you make with Adobe Media Encoder are .F4V, not .FLV.

     

    So, use an FLVPlayback component that has its controller set to None, and that should work ok. And do make it be a .FLV, VP6, and make sure you clicked on the "encode alpha channel" box.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 9, 2012 1:39 PM   in reply to Colin Holgate

    using the FLVPlayback Component to load an FLV with transparency works on iOS too?

    Can you provide any code example?

     

    I have it working in the desktop preview when I am testing. It looks great, perfect transparency.

    But when I load it on the iPad3 you can see the black corners when they should be transparent.

     

    This would be great to use sine the performace of the flv on iOS is great right now

     

    Thanks!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points