Determine the type of connection & set webcam width/height

Hi, two quick questions:
1. Is there a way in ActionScript to determine what type of connection is being used (e.g. P2P or FMS)?
2. Is there a way to set the width/height of the webcam picture? I currently extend the WebcamPublisher class to access the _camera instance and use the Camera.setMode() method, but it looks like that doesn't have any effect whatsoever.
Thanks in advance,
Michiel
PS: I'm aware of the captureWidthHeightFactor method, but I really don't like that approach, as it's not really clear what dimensions are being used for the video. I would like to set the dimensions myself, like when using the Camera.setMode() method.

Hironmay wrote:
For you height/width part, you can use resolutionFactor API in webcamPublisher as captureWidthHeight API is deprecated. The default width and height gets multiplied.
Ok, I'm using resolutionFactor now, but I'm not sure what the difference is. captureWidthHeightFactor is not really documented (it's there, but pretty unexplained), but the resolutionFactor uses multiples of the default width/height. I assume it does the exact same thing? (By the way: the resolutionFactor is not documenten on livedocs, only in the local documentation received as part of the zipped SDK.)
And still if you want to set your own native width/height , since you are already subclassing WebcamPublisher, just subclass the function createMyStream and add your native width and height. See that function in the player 9 source code of WebcamPublisher provided.
I'll look into that, for now resolutionFactor will have to do. (For testing purposes all video parameters have to be adjustable on the fly, and I unfortunately am already very short on time.)
One thing I forgot to mention in last mail, you can only have P2P with player 10 and you need to use player 10 swc for any verification of P2P. Player 9 will be always FMS.
You may have just saved my life! I was indeed using the player 9 swc, and tried the isP2P property, but didn't get it to work. And since it's not documented I labeled this as "deprecated" and dropped it. Great to see that it really is in there.
Also, the difference between the player 9 and player 10 swc you just explained answers another question I had (but totally forgot about). When connecting, the console always showed:
#FMSConnector# Wed Jan 6 10:52:11 GMT+0100 2010 is using RTMPS? true
This gave me the idea that the P2P service was unavailable. I'm glad to see that this isn't the case.
Thanks for your rapid replies everyone, I really appreciate it!
Michiel

Similar Messages

  • How can I determine the type of video out connector I need?

    Howdy,
    I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
    System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
    Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
    http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
    and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
    I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
    Thanks for any help,
    Zebulon T

    Thanks, Ded,
    You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
    Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
    Thanks very much.
    Zeb T

  • How to determine the type of an existing iView

    Hi,
    While creating an iView using wizard there is a big list of type of iViews. But after creation of iView, how do I determine the type of iView. Which attribute or property of iView holds this information?
    -Lave Kulshreshtha

    You can copy and paste the existing Iview changing the name and ID if u want to replicate the same.
    Also, when you create a new iView from a template, you get a list of them e.g SAP BSP iView etc.
    Now what you see in the code link is much similar to what you see as a list of templates when u create iViews. So its pretty simple.
    I hope this helped you.

  • Determining the "type" of a SQL statement

    I'm using the Oracle thin driver with my JDBC program.
    I want to be able to accept a String containing a SQL statement from the user and execute it. If it's a select statement then present the rows returned in a JTable, otherwise retrieve the return value for the command (eg INSERT, DELETE, etc).
    Is there any "readymade" method in JDBC or Oracle driver to determine the type of a SQL statement in this sense. Or do I have to parse it myself? (Imagine having to write code to strip comments out etc!)

    There is no "readymade" method. But an easy way to check will be to check the first 6 charchters of the string.
    You could use
    newString = SQL.substring(0, 5); to obtain the first 6 characters.
    if the characters are "select"
    //do select things
    else
    // do insert/delete whatever things

  • Determining the type of a field-symbol

    Hi!
    I want to create a logical expression that determines the type of field-symbol that was passed in to a function.
    i want to do something like this:
    IF imported_fieldsymbol IS OF TYPE some_type
    ENDIF
    how do you create such an expression in ABAP?
    regards

    Hi,
      You can use the RTTS - Run Time Type Service.
      Try the sample code
    TYPES my_type TYPE i.
    DATA: my_data   TYPE my_type,
          descr_ref TYPE ref to cl_abap_typedescr.
    START-OF-SELECTION.
      descr_ref = cl_abap_typedescr=>describe_by_data( my_data ).
    The hierarchy of RTTS classes are as follows,
    CL_ABAP_TYPEDESCR
      |
      |--CL_ABAP_DATADESCR
      |   |
      |   |-- CL_ABAP_ELEMDESCR
      |   |--CL_ABAP_REFDESCR
      |   |--CL_ABAP_COMPLEXDESCR
      |       |
      |       |--CL_ABAP_STRUCTDESCR
      |       |--CL_ABAP_TABLEDESCR
      |
      |--CL_ABAP_OBJECTDESCR
         |
         |--CL_ABAP_CLASSDESCR
         |--CL_ABAP_INTFDESCR
    Regards,
    Mustajab

  • Determine the type of the caught exception

    Hi!
    Here is my problem :
    I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
    And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. I know that with C# I use the boolean function is :
    if (exception is TypeOfException1)
        // associated reaction
    else if(exception is TypeOfException2)
       // associated reaction
    }Is there any method or any other way in Java to do that?
    Thanks a lot,
    Gan�che.

    >
    Here is my problem :
    I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
    And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. >
    try {
      // stuff that may cause exceptions..
    } catch(RemoteException re) {
      // deal with this re
    } catch(ServiceException se) {
      // deal with this se
    } catch (Throwable didNotExpectThis) {
      // exceptional!
      didNotExpectThis.printStackTrace();
    }

  • How to determine the type of the jobject... similar to instanceof

    hi,
    I would like to know how to determine the jobject reference of an instance is of which class.
    this is something similar to instanceof we use in java.
    is there any thing like 'instanceof' in JNI. if there how to use it?
    i got this as objective question for which answers were(i do not remember exactly)
    1.instanceof
    2.assignedto
    i could nt het much help in googling.
    thanks in advance

    Hi
    The JNI provides a native version to the java instanceof operator, this function takes two arguments
    an object refrence and a class refrence and reports JNI_TRUE.
    jclass myclass = env->FindClass("your class name");
    if(env->IsInstanceOf(obj,myclass) == JNI_TRUE)
    // obj is of type myclass
    }Regards
    pradish

  • How to determine the types of interactive form fields

    Hello:
    I have written a utility that traverses through the objects in a PDF file, and finds the ones of Type "Annot", Subtype "Widget". I need to go one step down the hierarchy and determine which kind of widget (text, radio button, check mark, press button) is the one under scrutiny.
    I have looked at the innards of PDF files, and found that the widgets of type "text" are internally identified by the FT=Tx dictionary entry. So far, so good.
    Here is where the beauty and consistency stops. It turns out that all the other (non-text) types are ambiguously identified by FT=Btn dictionary entry.
    So: Every field which is not text, is a button.
    Where should I look?
    TIA,
    -RFH

    Digging a little deeper, I found that the 4 types of fields (as generated by default) have different keys, as follows:
    Text: [F, FT, MK, P, Rect, Subtype, T, Type]
    Check Box: [AP, AS, F, FT, MK, P, Rect, Subtype, T, Type]
    Radio Button: [AP, AS, BS, F, FT, Ff, MK, P, Rect, Subtype, T, Type]
    Button: [AP, DA, F, FT, Ff, MK, P, Rect, Subtype, T, Type]
    Is that the correct approach to determine the kind of fields, by querying for the keys, which somehow instantiate a fingerprint?
    TIA,
    -RFH

  • Determine the type of video card

    Hi
    How to determine what type of video card I have with command line utilities(not scanpci)?
    SuperProbe, lshw no works on Solaris 10.
    Thanks

    You can try prtconf(1M) . But this will only provide the PCI IDs.

  • Determining the type of sqlexception

    Is is possible to know the type of sql excpetion that occured? For instance if an sqlexception occured I need to know if the error is due to a non-existent table field or a non existent table.
    Basically I need to give the user a more specific desctiption of the error that occured. I can't just say "database error".
    thanks

    put it on a string like
    String ret="";
    try{
    }catch(SQLException sqle){
    ret = sqle.getMessage();
    return ret;

  • Strange Behaviour setting column width & height programmatically

    I'm trying to set the height and width of an image by storing the image, height and width in the database at the row level.
    OATableBean table = (OATableBean)webBean.findIndexedChildRecursive("QuoteLinesRN");
    OAImageBean lineImageBean = (OAImageBean)table.findIndexedChildRecursive("ImageItem");
    //Next 4 lines set the image file name from the data in Segment1 - they work as expected
    FixedBoundValue imageDirectory = new FixedBoundValue(APPS_MEDIA_DIRECTORY);
    OADataBoundValueViewObject statusBinding = new OADataBoundValueViewObject(lineImageBean, "Segment1");
    ConcatBoundValue statusCBV = new ConcatBoundValue(new BoundValue[] {imageDirectory, statusBinding});
    lineImageBean.setAttributeValue(SOURCE_ATTR, statusCBV);
    //Now here is the funny part -
    OAMessageStyledTextBean heightBean = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("Segment2");
    OAMessageStyledTextBean widthBean = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("Segment3");
    String height = (String)heightBean.getValue(pageContext);
    String width = (String)widthBean.getValue(pageContext);
    lineImageBean.setHeight(height);
    //Setting the width doesn't do anything if I set the height. And the image displays miraculously at the dimensions set in the actual physical file itself, for both height and width.
    //The values I have in the table to get the height and width are completely irrelevant.
    //Except I need to make a string out of the OAMessageStyleTextBean or the value for height and width will be as I specify ie. if I instead use: String height = "300" the height will be 300.
    //But why is the height and width not using the values I specify in the table as Segment2 and Segment3?
    //Is it because I'm not explicity setting the same index when creating the OAMessageStyledTextBeans as I used for my OAImageBean?

    I found some issues.
    http://javafx-jira.kenai.com/browse/RT-24636
    http://javafx-jira.kenai.com/browse/RT-22728
    http://javafx-jira.kenai.com/browse/RT-23517
    On my mind, these are the same.

  • How to determine the system color and set them for my app?

    Hi,
    I'd like to set the colors of my application to the system's colors. Especially the backgrounds of my JPanels, JButtons and so on should look like in the operating system. If you change the systems color scheme, my application looks really wierd with it's grey canvas an components and the border and menu of the window is displayed in the system's colors.
    any idea??
    koem

    The UIManager only seems to have control over
    awt-controls. All swing controls are not listed, when
    you try this:
            UIDefaults defaults =
    UIManager.getLookAndFeelDefaults();
    for(Iterator i = defaults.keySet().iterator();
    ator(); i.hasNext();)
    String name = (String)i.next();
    System.out.println(name);
    }It would be nice to have it set globally somewhere in
    the program.
    koemActually, the truth is quite the opposite, the UIManager only has control over swing components.
    There are many ways you can set these globally. You can sublcass your own look and feel, use the system look and feel, call UIDefaults.put() etc.
    Graeme

  • Determine the type of browser

    Hello all,
    I am not sure if I am posting this question in the right forum,
    anyway I am working on a JSF project. I have some tags in my jsp pages
    for e.g.
                   <h:inputText size="20" value="#{authentication.userName}" />
                   <h:inputSecret size="20" value="#{authentication.password}" />
    the problem is - the two JSF components above are displayed differently in deifferent browsers. In firefox and IE7, they are displayed without any problem,
    however in IE6 the inputSecret looks smaller in size than inputText.
    So how do I need some way to identify the kind of browser and its version details and based on which i will make the appropriate changes in my css file.
    is there some simple method to find the browser type in jsp?

    is there some simple method to find the browser type in jsp?The only thing you can do is to parse/guess the User-Agent header field sent by the browser (use request.getHeader("User-Agent") to access this value).

  • Determining the type of Powerbook G3

    Hi,
    My son has a 2000 Powerbook G3, 400 MHz (family M7572) with brown see-through keys. How does one determine its model name? I once heard "Wallstreet" applied to it, does "bronze" describe the keyboard. I also see "Pizmo" and "Lombard" and have no idea how these three are distinguished from each other. Does anyone know the differences? I would love to know as I would like to find a replacement keyboard and want to find the correct one for my son.
    Thanks, swic17

    swic,
    You have the Powerbook (FireWire) M7572 a.k.a. "Pismo" or "FireWire" or "2000". The Pismo unofficial code-name is by far the most commonly used.
    The "Lombard" is the Powerbook G3 Series Bronze Keyboard M5343 released in 1999.
    The "Wallstreet" is the Powerbook G3 Series M4753 released in 1998.

  • Determine The Type of HD

    Hello,,
    I want to upgrade my HD to an SSD one. but my problem is i can not figure out what is the best SSD compatble to my PC.
    Below is the SSD info LInk + Info about my PC
    Note that the ssd is SATA 3 .. Is My PC SATA 3 or 2 ??
    SSD Info
    My PC Info
    Please Help me to choose.
    This question was solved.
    View Solution.

    Hi,
    SATA 3 is backward compatible, it can run at lower speed under SATA 2 and you have to pay a little bit more. You can check your machine yourself using the following program:
       http://www.cpuid.com/downloads/pc-wizard/2012.2.0-setup.exe
    Please refer to my reply on the following link:
       http://h30434.www3.hp.com/t5/Notebook-Hardware/pavilion-g6-sata-6-Gbits-s/m-p/1576129#M73605
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • External Interface and Mouse Clicks

    I'm new to writing ActionScript. I am working in .NET (C#) environment using AxShockwaveFlashObjects. I am simply trying to react to a mouse click on the Flash ActiveX Control. I have inserted the code in a layer only used for script: import flash.ex

  • Is it possible to conditional format more than one cell at a time?

    I'd like to use conditional formatting to compare the value in cell E3 with the valve in cell D3.  Then I'd like to copy the conditional formatting rule I made in cell E3  to cells E4 E5 E6 E7 ETC.  I'd like the E4 to compare to D4. E5 to compare to

  • Raw material cost not coming KE30 profitability report

    Dear Gurus, We have two material type for our finished product for one material type without having cost release for current period we can't release the billing document for accounts but in other material type we can release the billing document for

  • Hyper-V Guest Cluster Node Failing Regularly

    Hi, We currently have a 4-node Server 2012 R2 Cluster witch hosts among other things, a 3 node Guest Cluster running a single clustered file service.   Around once a week, the guest cluster node that is currently hosting the clustered file service wi

  • Mysterious File

    Hello, I'm writing a simple servlet which should read a file. In the servlet constructor I call readFileBytes() method. The problem is that the file created with new File("corejava.zip") is shown to be empty while when created with new File("C:\\Tomc