Skip navigation
Currently Being Moderated

Video Playback On IOS Not Working

Jun 5, 2012 12:54 PM

Hi,

 

I have been trying to implement the OSMF player using several different methods to play local mp4 files, and while using the standard AIR SDK that ships with Flash Builder 4.6, I could never get the video to display on an iPad 2. I could hear the video's audio, but never see the video itself. Now that I have overlayed the beta AIR SDK, I get no audio either for the same video on the iPad. Is anyone else sucessfully doing this uing OSMF or another method?

 

thx

 
Replies
  • Currently Being Moderated
    Jun 6, 2012 11:36 PM   in reply to Keith Lee

    Will it be possible for you mail a sample test case to kshgupta@adobe.com?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 1:43 AM   in reply to kshi.gupta

    I've set up an own player-enviroment with full IAB - Support (VAST1.0, VAST2.0 and VAST3.0) and everything works fine in all Adobe AIR - Versions since 3.0 except for this bug which seems to be fixed in Adobe AIR 3.3 Beta 4:

    https://bugbase.adobe.com/index.cfm?event=bug&id=3201606 and https://bugbase.adobe.com/index.cfm?event=bug&id=3206438

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 7:03 AM   in reply to Keith Lee

    That's strange ... haven't got anything yet.

    Please use this address: support@flyingrabbit-productions.com

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 8:54 AM   in reply to Keith Lee

    I think there is a timing issue here. Just move your initVideo() call into onStageVideoAvailability handler. Your code was causing a small timing problem. It was taking the Video code path instead of the StageVideo code path because of which video was not getting played. Moving initVideo after _stageVideoAv gets set correctly ensures that if StageVideo is available that path will be taken correctly.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 10:40 AM   in reply to kshi.gupta

    aaah ... your were faster than me ... stageVideo doesn't seems to get initialized.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 11:57 AM   in reply to Keith Lee

    Seems like your used Flex-Skin covers the video which is playing on stage. May use a MovieClip - Class, use it's stage for StageVideo and add it upon everything else.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 12:57 PM   in reply to Keith Lee

    That's the question. I've never tried that.

    StageVideo will be drawn behind every DisplayObject laying on stage BUT every MovieClip and Sprite has its own stage. So it would be worth trying it. Works perfectly with StageWebView. But SWV OVERLAYS everything ... I've never tried with StageVideo because I hadn't to.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 10:46 PM   in reply to Keith Lee

    Normal video in this case will not work on iOS. H.264 cannot be played by the cpu on iOS. Incase you want to show a video using the Video class you would need to use some other format like on2 or sorenson.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2012 11:45 PM   in reply to kshi.gupta

    @Keith... have you tried setting the background.visible = false; ? ... Even it's better practise to do so instead of zeroing out the alpha-value. As long as a DisplayObject has its visibile-parameter at "true" it still get rendered even the alpha-parameter is set to 0. With Flex I realy can't help you. I never used Flex. In my opinion pure ActionScript is much more controlable and customizable. But that's just my opinion.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 5:43 AM   in reply to Keith Lee

    @Keith I still feel that setting backgroundAlpha=0 should have worked. Can you check what happens if you set backgroundAlpha to zero for your application and not just a view?

     
    |
    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