Skip navigation
Currently Being Moderated

Is this possible to run flash player in html5?

Aug 3, 2012 3:50 AM

i made a player in flash, this is working desktop systems fine. now we move to iPhone os,

then how can i play my player in iphone.

Is this working in html5?

I'm sending parameters to player, is this possible to run flash player in html5 with parameters?

 
Replies
  • Currently Being Moderated
    Aug 3, 2012 6:51 AM   in reply to Venkom

    You can't run Flash at all on iOS. If your player just plays video, make your app use a HTML <video> tag or toss the video in a StageWebView. You'll need to make sure it's a mp4.

     

    Otherwise if it's just any sort of standard Flash player you'd need to convert your project into an AIR for iOS app, which may require some parts to be redesigned and some code to be updated for mobile. You'll also need an Apple iOS Developer account ($99/yr).

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 17, 2012 6:57 AM   in reply to Venkom

    To play back your content you use NetStream to attach to the video source. NS can send a stream from FMS in these formats (flv/f4v/mp4/etc):

     

    http://help.adobe.com/en_US/flashmediaserver/techoverview/WS07865d390f ac8e1f-4c43d6e71321ec235dd-7fff.html#WS5b3ccc516d4fbf351e63e3d119ed944 a1a-7fe7

     

    I would highly recommend using MP4 with H.264 as HTML5 can use this directly and support for it is wide. This means if you get rid of FMS you can progressively play them by simply pointing toward a file on a webserver, very little re-coding.

     

    Now to play the video, StageVideo is the GPU accelerated library that can attach to a NetStream. Otherwise you can try a premade component. Some components implement NetStream and NetConnection themselves so consult their documentation. Or you can code your own using the basic Video Class.

     

    I would recommend the advantages of GPU acceleration on devices with StageVideo but you must realize how it layers with Flash. It is not a display object on the display list. Just like Stage3D it exists below flash. The gratituous Getting Started with Stage Video article will show you a graphic of it and the basics of it. You will, however, need to create/program your own controls.

     

    If you want to display a video in HTML5 the only thing you can do is use a StageWebView. This is opposite of StageVideo or Stage3D. A StageWebView sits over flash and is also not part of the display list. You cannot show any flash content over it, therefore you must rely on its own built in browser media player to provide controls for your video. It can natively play mp4 if you tell it to load it directly however it will be progressive playback. Someone else might want to chime in with any experiments with FMS and SWV. I play most of my videos in a StageWebView. Performance is GPU accelerated, I don't need to "hide" my entire interface, it comes with controls and fullscreen works.

     

    No you can't use a Flash skin over a HTML5 <video> object. You must stop thinking iOS will allow you to run a SWF. When you are talking HTML5 you are talking about using StageWebView. All you can do is create a HTML5 webpage with your player re-created in javascript while injecting that website into a StageWebView. It's not advisable because you cannot affect the loaded page. There is no bridge in communication between AS<->JS like there is on the web. Maybe in the future. Until then there's almost nothing you can do (outside hijack location changes) to communicate between AS and SWV unless you use a native extension.

     
    |
    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