webex-android-sdk icon indicating copy to clipboard operation
webex-android-sdk copied to clipboard

Screen Shared not stretching video content properly

Open dcf82 opened this issue 3 years ago • 2 comments

Hi,

I'm testing the WebEx Android SDK, and tried to share content in a conference meeting, but saw that the sharing content video is not using the right aspect ratio & stretch the content properly, so I would like to know if I'm missing something when I set up the component.

Share

Thanks

dcf82 avatar Feb 01 '22 22:02 dcf82

Can you share more details about your current usage? There is also an example here https://github.com/webex/webex-android-sdk#examples under step 8 for screensharing. You can also compare this with the Sample App provided here https://developer.webex.com/docs/sdks/android#complete-demo-app

mpalkovi avatar Feb 02 '22 00:02 mpalkovi

Hi, in fact this error is weird, because it happens just with the MediaRenderView for the share component only, so I'm sharing the screen of my iPhone, and see the content on my Android device, so as we know there is no major configuration setup required more than just like done in the sample code in Step 8 as you mentioned, my video configuration looks like this code,

........ <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/screenShareContainer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:elevation="8dp" android:visibility="invisible" app:layout_constraintRight_toRightOf="@+id/remoteView" app:layout_constraintTop_toBottomOf="@+id/localView" tools:visibility="visible">

    <com.ciscowebex.androidsdk.phone.MediaRenderView
        android:id="@+id/screenShare"
        android:layout_width="60dp"
        android:layout_height="80dp"
        android:background="@drawable/border"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

......

So I'm running on SDK version: 2.7.0.9-SNAPSHOT@aar

But yeah, I'm using same sample code you have with minor cosmetic changes.

dcf82 avatar Feb 02 '22 03:02 dcf82