Skip to main content
Participant
August 10, 2011
Question

video on android samsung S2 is tinted PINK! No idea why.

  • August 10, 2011
  • 5 replies
  • 2741 views

Dear all,

can anyone advise what I am doing wrong with the below code?  When ran in AIR on the Android, the video is tinted bright pink, whereas when run on the web, the video is the correct colour. 

Thanks in advance for any advice.

import flash.display.Sprite;

import flash.media.Video;

import flash.media.Camera;

import flash.events.Event;

import flash.events.ActivityEvent;

import flash.text.TextField;

import flash.geom.*;

import flash.filters.*;

import flash.display.BitmapData;

import flash.filters.DisplacementMapFilter;

import flash.display.BitmapData;

import flash.geom.Point;

import flash.display.BitmapDataChannel;

import flash.display.GradientType;

import flash.display.Loader;

import flash.display.Shape;

import flash.events.MouseEvent;

import flash.filters.DisplacementMapFilterMode;

import flash.geom.Matrix;

import flash.events.MouseEvent;

import flash.desktop.NativeApplication;

import flash.display.StageDisplayState;

import flash.display.StageScaleMode;

stage.align=StageAlign.TOP_LEFT;

stage.scaleMode=StageScaleMode.NO_SCALE;

// Create the gradient circles that will together form the

// displacement map image

var boxHeight:uint=stage.stageHeight;

var boxWidth:uint=stage.stageWidth;

var cam:Camera = Camera.getCamera();

var vid:Video = new Video();

function CameraViewer() {

//cam.setMode(800,400,15,true);// setMode(videoWidth, videoHeight, video fps, favor area)

//cam.setMode( 800, 400, 15, true );

//cam.setMode(640, 480,20);

vid.attachCamera(cam);

addChildAt(vid,0);

}

CameraViewer();

This topic has been closed for replies.

5 replies

Participating Frequently
October 10, 2011

Still no solutions?

I really need this to be fixed for my app as well, as I am putting in a QR code scanner.

October 10, 2011

The recent new release of Air sorted this issue, at least on my phone.

Participating Frequently
October 13, 2011

Yeh it has, sort of...
The tint is now gone and the image is clear, however the update lags immensely...put it this way -- its like 1 frame pper 2 seconds...
I doubt this is a problem caused by my script:

import flash.media.Camera;

import flash.media.Video;

var video = new Video(400, 400);

//Get the camera reference.

var camera:Camera = Camera.getCamera();

//setMode need 3 params, width, height and frame rate.

//Optianally you can set a boolean value at the end for the           favorArea.

camera.setQuality(0, 100);

camera.setMode(video.width, video.height, 25,false);

//put the camera in the video instance

video.attachCamera(camera);

addChild(video);

September 30, 2011

Dear all, please visit here to vote for this issued being resolved: http://bugs.adobe.com/jira/browse/SDK-31646

September 24, 2011

hello all,

I have the same problem with "PINK colored" video from my AIR app, on Samsung S2.

And App try to find all Cammeras, and user can choise front or "Self" camera to be used for live Video (to the flash server).

App, detect on Samsung S2 only the front cammera.

AIR ver:2.7.1.1061

Android: 2.3.3 (Gingerbread.xwkf3)

Kernel version: 2.6.35.7-I9100XWKF3-CL276555

Samsung Galaxy S2, GT-I9100

please, contact me for some solution for this devices..  (when have some)

luci@london.com

10x you

luci

September 26, 2011

Hi.....I have the same problem.....but for fixing the detection of two cameras and switch, use the AIR 3 beta they fixed it there.

in addition the switching between speakers (internal and external).

September 12, 2011

Hi SimonDWoods222

Im developing Android app using the AIR

and i also got the same problem as you.

So im wondering that you solved the problem or not.

If you found the way, would you send an e-mail even if any idea what you got

Thank you

E-mail : starcandy815@hotmail.com

Colin Holgate
Inspiring
August 10, 2011

I copied and pasted your code into a new FLA, and did a regular Test Movie and Debug Movie on my Acer Android tablet, and the color was correct in both cases.

Participant
August 10, 2011

Many thanks for that.  It seems this problem is restricted to the Android Samsung galaxy S2.  How annoying!  I'll try to report this to adobe.

Colin Holgate
Inspiring
August 10, 2011

Also make sure you're trying it with AIR 2.7.