Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

WebcamSubscriber positioning and sizing

Avatar

Level 1

I am using 2 WebcamSubcribers in a ConnectSessionContainer.  The first WebcamSubscriber seems to be positioned and sized correctly, then when I add another the size and position changes, and I'm not sure why.  The first image below is with one WebcamSubscriber, and the second image is after the second WebcamSubscriber gets started. Also, top-left both WebcamSubscribers should be positioned at 20,100, and that's not happening either.

The code I am using is below both images.

Thanks!

-Matt

image1.jpg

image2.jpg

    <rtc:ConnectSessionContainer id="cSession"
        width="100%"
        height="100%"
        roomURL="">
        <rtc:authenticator>
            <rtc:AdobeHSAuthenticator userName=""
                password=""/>
        </rtc:authenticator>

        <rtc:WebcamPublisher id="pub"/>

        <rtc:WebcamSubscriber width="300"
            height="300"
            x="20"
            y="100"
            displayUserBars="false"/>

        <rtc:WebcamSubscriber width="100"
            height="100"
            x="20"
            y="100"
            displayUserBars="false"
            webcamPublisher="{pub}"
            publisherIDs="{[cSession.userManager.myUserID]}"/>


        <s:Button id="startCamAndVoice"
            label="Start Camera and Voice"
            click="startCamAndVoice_clickHandler(event)"/>

        <s:Button id="startScrShare"
            label="Start Screen Sharing"
            x="350"/>

    </rtc:ConnectSessionContainer>

0 Replies