SDK Boy » Transparent Video On The iPhone, It Can Be Done… With Flash!
january 2012 by starpause
hnical functionality that can’t be replicated on the native iOS SDK can work through a third party’s system. So just to share with you some of the results, I was attempting to play four transparent videos, all slightly overlapping with a png image in the background. The playback was unacceptably slow with this many streams. I then tried, two transparent videos with a PNG background and the playback was fine, I didn’t notice any frame grabbing or glitches, and one full screen iPhone video with transparency and a PNG image in the back ground ran fine!
Again, I’d like to express my amazement at being able to play an .flv with transparency on the iPhone. I have no idea how Adobe are able to do it, but I really hope Apple step up their game and include a video codec with alpha channel sometime soon. The only down side to using ARI 2.7 is the lack of support for native UIKit components, meaning you have to build everything in Flash/Flex.
If you want to play around with transparent video on the iPhone with Flash you’ll need to download the trial version of Flash Builder 4.5 from here, and check out this post on setting up your system to export from Flash Builder to your iPhone. You do need to be registered as an Apple dev, as to my knowledge there is no simulator in the Adobe set up, but it was all pretty straight forward (no less painful than having to do it through Apple and XCode).
Here’s the AS3 code, I just created a new Mobile ActionScript Project, as I’ve heard Flex Mobile Projects add unwanted overhead to your app (but don’t quote me on that). You’ll also need to make sure that the info in the project’s XML file (application descriptor file) matches all of your code signing identity info ie com.mycompany.myAppID
One thing to note is that I didn’t use the StageWebView object to place my video. According to Adobe’s docs StageWebView’s shouldn’t overlap with each other, so this wasn’t suitable for this project. The only piece of AIR specific code is the
ios
as3
android
air
video
flv
transparent
playback
local
file
Again, I’d like to express my amazement at being able to play an .flv with transparency on the iPhone. I have no idea how Adobe are able to do it, but I really hope Apple step up their game and include a video codec with alpha channel sometime soon. The only down side to using ARI 2.7 is the lack of support for native UIKit components, meaning you have to build everything in Flash/Flex.
If you want to play around with transparent video on the iPhone with Flash you’ll need to download the trial version of Flash Builder 4.5 from here, and check out this post on setting up your system to export from Flash Builder to your iPhone. You do need to be registered as an Apple dev, as to my knowledge there is no simulator in the Adobe set up, but it was all pretty straight forward (no less painful than having to do it through Apple and XCode).
Here’s the AS3 code, I just created a new Mobile ActionScript Project, as I’ve heard Flex Mobile Projects add unwanted overhead to your app (but don’t quote me on that). You’ll also need to make sure that the info in the project’s XML file (application descriptor file) matches all of your code signing identity info ie com.mycompany.myAppID
One thing to note is that I didn’t use the StageWebView object to place my video. According to Adobe’s docs StageWebView’s shouldn’t overlap with each other, so this wasn’t suitable for this project. The only piece of AIR specific code is the
january 2012 by starpause
pyro-player - Pyro - a video player API for flash - Google Project Hosting
august 2011 by starpause
Not a full fledge player like whats a
pyro
player
as3
flv
movie
playback
library
august 2011 by starpause
FLV MetaData Injector - Adds meta info to your Flash Video files
december 2008 by starpause
FLV MetaData Injector (FLVMDI) is a Win32 console (command line) application that can add 'onMetaData' AMF data to FLV files. (There's also a GUI frontend FLVMDIGUI).
flv
meta
data
metadata
injector
fix
patch
video
flash
december 2008 by starpause
Flashcomguru.com: Flash Video: Keyframe density and filesize comparison
september 2008 by starpause
Video 4 is the best one out of the lot, we can seek this one very well to many points throughout. Filesize now goes up to 1.35MB but in some circumstances I would find this perfectly acceptable. Keyframe density is pretty high with one keyframe every 10 frames.
frames
number
stuttering
scrubber
scrubing
scrub
flv
september 2008 by starpause
doesnotcompute » Flash Video: Streaming vs. Progressive Download
september 2008 by starpause
the differences between streaming video and progressive download
flash
video
method
streaming
progressive
download
flv
september 2008 by starpause
related tags
actionscript ⊕ air ⊕ android ⊕ as3 ⊕ better ⊕ betterflv ⊕ blog ⊕ class ⊕ component ⊕ converter ⊕ cs4 ⊕ custom ⊕ data ⊕ demo ⊕ design ⊕ download ⊕ encoder ⊕ encoding ⊕ example ⊕ f4v ⊕ file ⊕ fix ⊕ flash ⊕ flv ⊖ flvplayback ⊕ frames ⊕ howto ⊕ injector ⊕ inspiration ⊕ ios ⊕ jw ⊕ layout ⊕ library ⊕ light ⊕ local ⊕ media ⊕ meta ⊕ metadata ⊕ method ⊕ movie ⊕ mp4 ⊕ number ⊕ open ⊕ patch ⊕ play ⊕ playback ⊕ player ⊕ progressive ⊕ pure ⊕ puremvc ⊕ pyro ⊕ quick ⊕ quickstart ⊕ rip ⊕ scene ⊕ scrub ⊕ scrubber ⊕ scrubing ⊕ settings ⊕ simple ⊕ source ⊕ start ⊕ streaming ⊕ stuttering ⊕ thin ⊕ transparent ⊕ tutorial ⊕ video ⊕ videos ⊕ wordpress ⊕ youtube ⊕Copy this bookmark: