Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

WebcamSubscriber positioning and sizing

Avatar

Former Community Member

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