ActionScript 3.0 :: Get Width And Height Of Streaming Camera?

Mar 14, 2011

I have a stream going through flash media server and its working. I have a simple flash app that is viewing the stream.I need to pull the height and width of the broadcasted cam in the client. I have been trying with getting metadata buteverything always If there is no metadata with cams if I could create stuff on the streaming app that would be nice.I tried to pass some but I cant figure out if it works or how to grab on the other side.this is what I tried to send it withvar metaData:Object = new Object(); metaData.title = "myStream"; metaData.width = 320; metaData.height = 240; cam_ns.send("@setDataFrame", "onMetaData", metaData);

View 3 Replies


Similar Posts:


ActionScript 3.0 :: How To Get Max Width / Height Supported By PC Camera

Aug 6, 2010

I've checked the document for 'Camera' class in flash: [URL]. But I don't find info to solve this:
cam=Camera.getCamera();
How can I get the maximum width and height that cam supports?

View 1 Replies

Flex :: Capture Snapshot With Camera Height / Width Different From Video Display

Feb 3, 2011

I have a video display in my flex app. which is attached to the camera. The camera resolution can vary depending on the user's selection, While the video display (preview) dimensions are fixed. I am then doing this:
bmd.draw(vidDisplay);

Where bmd is the bitmap.. The problem is the resulting bitmap has the correct size of the camera settings (which is set) but the capture from the video is always the size of the video display inside the bitmap.. I hope i am making sense. The result looks like a little picture inside a bigger image top left justified. I want to have a video display preview with fixed height, but be able to take snapshot with varying resolution.

View 2 Replies

ActionScript 3.0 :: Flash Referencing Stage.width/height References Mc.width/height?

Jul 29, 2010

I am trying to reference to top level (stage) width and height of the main stage for the placement of something located inside a movieclip on the stage.

My code is:
Code:
my_loader.x = (stage.stageWidth - my_loader.width)/2;
my_loader.y = (stage.stageHeight - my_loader.height)/2;

But this seems to just relate to the width/height of the mc that my_loader is nested in...

I have tried the following and had no luck:

stage.stage.stageWidth
root.stage.stageWidth
parent.stage.stageWidth
MovieClip(root).stage.stageWidth

View 8 Replies

ActionScript 1/2 :: Load External Image Of Different Height & Width Into Same Height And Width

Jun 12, 2009

i want to load external images of different height and width into same height and width.

View 3 Replies

ActionScript 2.0 :: Load External Image Of Different Height & Width Into Same Height And Width?

Feb 24, 2010

i want to load external images of different height and width into same height and width.

View 0 Replies

Actionscript 2.0 :: Change Width - Height And Width / Height Ration In Flv?

Mar 25, 2011

I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?

View 1 Replies

ActionScript 2.0 :: Change Widht, Height And Width/height Ration In An Flv Video File?

Mar 25, 2011

I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?

View 3 Replies

Professional :: SimpleButton.width Doesn't Change - Width And Height Remain 0

Jun 1, 2010

I am looking at the SimpleButton entirely wrong. Here's what I'm doing (inside of a MovieClip):

[Code]...

the close_btn.width and height remain 0. Am I supposed to just rely on the DisplayObject members of the SimpleButton completely and ignore width/height/x/y or what?

View 2 Replies

Use IP Camera With FMS For Live Video Streaming?

Mar 2, 2010

How i can use IP Camera with FMS for live video streaming.

View 2 Replies

Release Camera After Stop Streaming To FMS?

Oct 14, 2010

When stop streaming, i close NetStream, close NetConnection, clear video, and remove any event listoner on camera. After these actions, the camera is still in used.

View 2 Replies

Media Server :: Multiple IP Camera Streaming With FME 2.5?

Jul 29, 2010

I can stream live 1 Axis  IP camera with FME 2.5. How can I stream multiple IP cameras with FME 2.5?.

View 3 Replies

Flash :: Crop Camera Before Streaming To A NetStream?

Mar 23, 2011

I'm building a very simple publisher for the webcam in Flash. I want to select a camera and send the stream to a RTMP URL, basically:

Camera camera = Camera.getCamera();
NetStream ns = new NetStream(connection);
ns.attachCamera(camera);
ns.publish("stream name");

Now, I know I can set a mode on the camera, like this:

[Code]...

View 1 Replies

IPhone :: Playbook Support For Streaming And Choosing Camera

Dec 23, 2010

I am wondering if Flash / AIR can find all these mobile devices front facing camera and use RTMP to stream the video captured? I would like to create a video conferencing app for these devices. Of course none of them support testing this in the simulators and I don't have the funds to purchase or access all of them that I would like to test. I have seen some posts where they have done this for android but not sure about support for finding a list of cameras, choosing one and streaming from iphone 4 and playbook.

View 2 Replies

Android :: Streaming Using Front Camera Using Adobe Flex?

Jul 19, 2011

I wanted to open front camera of the Motorola XOOM and try to live streaming using the front camera.

View 1 Replies

ActionScript 3.0 :: Attempting To Use The Isight Camera But When Trace The Cam - Height

May 22, 2008

I am attempting to use the isight camera but when I trace the cam.height and cam.width i get 160 x 120 when it should be 640x480. Why is this happening?

View 1 Replies

Media Server :: FMS Interactive With Data Events - Camera Streaming Video

Sep 15, 2011

I'm completely new to FMS but a seasoned Flex developer. We're building a Flash Builder 4.5 application which will be deployed to iPads. The basic functional requirements are as follows:

1. Presenter in a room has a camera streaming video of themselves2. Participants in the same room have an iPad - there are 30 participants and the stream is sent to all 30 iPads simultaneously.3. There must be lowest delay possible with good quality video - we understand this can be achieved with RTMP and that VP6 has to be used (as there is no H.264 support at present in AIR on iOS)4. The presenter will trigger certain things from their iPad which will then display certain alerts, content on the partcipants iPad (from server connection the participant iPads are listening to)

Firstly, I'm interested to know your thoughts on this current spec. This was put together from zero initial experience with FMS and having read a lot online and creating a proof-of-concept. Secondly, with regards to the two-way interaction: Is this something FMS handles? Previously I have used LCDS or BlazeDS for the data events & streaming aspects of our applications. Initially I was planning on using BlazeDS again, in addition to FMS. But from what I have read FMS possible handles data push too? Does FMS have LCDS/Blaze built in in some way?

View 4 Replies

100% Width But Not 100% Height?

Aug 23, 2009

I have a flash banner graphic that I created at 1000px wide by 420px tall. I want this to be fluid and fill the browser width, so that when the browser is rescaled the swf fills the horizontal space. My problem is that there is content below it that needs to touch it, but the height is trying to fill 100% so it is creating vertical space between the flash content and the div below it.
 
I guess a better way to describe it is that I don't want to define the height I just want the width to be 100%. At 100% height there is unused space so I need to make the height maybe undefined or something smaller then 100%?Also, if you make the browser too small vertically the width will not fill. So I want 100% width regardless of the browser height.

View 2 Replies

AS3 :: Set The Width And Height Of Swf?

Jun 15, 2010

How do I set the width and height of my swf in AS3?

This is my code so far:

package {
import flash.display.Sprite;
public class Game extends Sprite {
}
}

Right now, when loaded it is at some arbitrary default size.

If I can't change the size this way, is there any easy work around that will be consistent?

View 3 Replies

ActionScript 3.0 :: How To Tell Width/height Of .swf

Dec 2, 2009

my .swf goes full screen and changes proportion if it is accessed directly at it's url

[URL]

is it possible to tell how big it currently is? i'd like to reposition some elements accordingly...

View 2 Replies

Stage Width And Height Are Both 0?

Oct 11, 2010

I'm trying to change the position of a movieclip I've added to the stage. When I try to access stage.width or stage.height I get 0. I've tried MovieClip(root).stage, DisplayObject(root).stage, root.stage, stage, and simply width and height. All of these are equal to zero.

View 1 Replies

ActionScript 3.0 :: Height And Width Are 0?

Feb 22, 2010

I want to write a shell that creates instances of an app and scales it down for animating. Well, I created my shell class and instanced the app and set scales for x and y and then I traced the height and width because I wasn't sure what they'd be. I thought they'd be based on the stuff on the stage or whatever, but they both came up zero. So I'm not sure how that works, am I supposed to have set those values?
 
[Code]....

View 5 Replies

Xml :: Can't Set Width And Height To The Backgroundn?

Dec 26, 2010

I have an empty movieclip in the stage that holds a backgroundbg._width = Stage.width;bg._height = Stage.height;the background is loaded from XML and works fine since I'm not set the width and heightbut if I set: bg._width = Stage.width and bg._height = Stage.height

View 1 Replies

Actionscript 3 :: Get A To Have The Same Width And Height Of B?

May 21, 2009

I have two Canvas A and B, A is the child of B.A can be resized by some user actions like adding some UI components to its base.A is bounded by an other Parent canvas B which should show scolling handles if its child A gets too large.I would like A to have the same width and height of B (or really close) while the calculated width and height of A is smaller than those of B.If w or h of A get larger than those of B then A should grow and B will show scrolling.

View 2 Replies

Set Width And Height To JPlayer?

Feb 12, 2012

I am using jPlayer library but i don't know how to set width and height[code]...

View 4 Replies

ActionScript 2.0 :: Can't Get Mc's Width And Height

Oct 5, 2006

I'm a student for design and want to build myself a portfolio, showing pictures and being able to jump between fit_to_screen mode to actual_pixel_size mode. The following code is just the beginning.

I've wrote the code mixing some tutorials (sorry, but I didn't find a good way to clean it so it'll be more focused) - I'm a really new about action script.

myFile is a mc waiting for an external parameter run_url - a string contains something like "/projects/illustration/alice_in_wonderland.jpg"

You can see the trace command marked as red. I'd expect it to give me a number of the movie clip's width, yet i get "undefined"

import mx.utils.Delegate;
var streamingID:Number;
var fileLoaded:Boolean;

[Code].....

View 12 Replies

AS3 :: IDE - Changing .swf Width And Height

Dec 13, 2009

Is there any possibility to change screen width and height not in Flash ( in Properties ), but in Code [ any AS3 line? ].

View 1 Replies

ActionScript 3.0 :: How To 100% Width/height Air App

Dec 11, 2010

I was wondering if there was a way to set an air app to fill 100% width and 100% height of the screen?

I know how to do it on the web by setting swf address parameters to 100% and setting stage.scalemode and stage.align

I am using FDT to publish my air package with an ANT build. So it does not use mxml, just my document .as class.

View 1 Replies

ActionScript 3.0 :: Get Height / Width From Embed?

Feb 19, 2009

How can I use the width and height that's set by the object's embed code within my Flash movie?

I've got items that position based on stage height/width. Problem is although the object appears re-sized when you adjust the values in the embed, the stage size obviously does not change.

Ideally I'd like to position and scale objects based on the dimensions provided in the embed.

View 1 Replies

Set The Movieclip Width And Height With The Button?

Mar 18, 2010

i want to zoom the movie clip, for this i have set the movieclip width and height with the button. It is correct or anything els

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved