简体   繁体   English

QuickBlox WebRtc VideoChat Android

[英]QuickBlox WebRtc VideoChat Android

For few days i am working on quickblox.i keep opponent view below my view like this. 几天来,我一直在使用quickblox.i,这样就将对手的视线保持在我的视线之下。 在此处输入图片说明

It works fine but when i keep views like skype:- Opponent view is on full screen and my view is on top right corner of opponent view it renders only one view which is render at last. 它可以正常工作,但是当我保持像Skype这样的视图时:-对手视图处于全屏模式,而我的视图位于对手视图的右上角,因此仅渲染一个最终渲染的视图。 I look quickblox webrtc Sample given on quickblox site. 我看了quickblox网站上提供的quickblox webrtc示例。 i saw the code in that sample but it contains conference talk is given with some complex coding of recycle view for me single one to one talk is required can any one tell me the best way to keep one webrtc view above another which works in perfect manner.Can any one tell me how to put one webrtc above another. 我看到了该示例中的代码,但其中包含会议演讲,并提供了一些复杂的回收视图编码,对我来说,需要一对一的演讲,任何人都可以告诉我将一种Webrtc视图保持在另一种之上的最佳方法,从而以一种完美的方式工作谁能告诉我如何将一个webrtc放在另一个之上。

In My Understanding QuickBlox is handling room based Video chatting based on WebRTC protocol. 在我的理解中,QuickBlox正在处理基于WebRTC协议的会议室视频聊天。 They are managing a room ID and anyone got the room id can join the video. 他们正在管理房间ID,任何获得房间ID的人都可以加入视频。 We can create one to one session with our own idea. 我们可以根据自己的想法创建一对一的会话。 In the case of the layout, we can modify the layout in our own way. 对于布局,我们可以用自己的方式修改布局。 Please check my layout implementation and its working fine for me. 请检查我的布局实施及其对我的正常工作。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <RelativeLayout
        android:id="@+id/rl_video_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <ImageView
            android:id="@+id/iv_hang_up_icon"
            android:layout_width="@dimen/app_video_screen_icon_width_height"
            android:layout_height="@dimen/app_video_screen_icon_width_height"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:layout_marginRight="@dimen/activity_horizontal_margin"
            android:layout_marginTop="@dimen/activity_horizontal_margin"
            android:background="@mipmap/hung_up" />

        <android.support.v4.view.ViewPager
            android:id="@+id/pager"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="gone"
            android:layout_gravity="top">

            <android.support.v4.view.PagerTitleStrip
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="top"
                android:background="@color/app_text_icon_color" />

        </android.support.v4.view.ViewPager>

        <RelativeLayout
            android:id="@+id/preview"
            android:layout_width="100dp"
            android:layout_height="100dp"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:layout_margin="@dimen/app_common_five_dp_padding" />
    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/rl_patient_info_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@android:color/transparent"
        android:gravity="bottom">

        <LinearLayout
            android:id="@+id/ll_patient_details_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/app_common_five_dp_padding"
            android:orientation="vertical">

            <com.adoctortalk.android.utilities.CustomTxtViewBold
                android:id="@+id/tv_patient_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/app_common_five_dp_padding"
                android:layout_marginLeft="@dimen/app_common_ten_dp_padding"
                android:layout_marginTop="@dimen/app_common_five_dp_padding"
                android:text="New Text"
                android:textColor="@color/app_text_icon_color"
                android:textSize="@dimen/application_font_size_very_large" />

            <com.adoctortalk.android.utilities.CustomTxtViewBold
                android:id="@+id/tv_patient_sub_info"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/app_common_five_dp_padding"
                android:layout_marginLeft="@dimen/app_common_ten_dp_padding"
                android:layout_marginTop="@dimen/app_common_five_dp_padding"
                android:text="New Text"
                android:textColor="@color/app_text_icon_color"
                android:textSize="@dimen/application_font_size_large" />

            <LinearLayout
                android:id="@+id/ll_patient_action_cotainer"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginBottom="@dimen/app_common_five_dp_padding"
                android:layout_margin="@dimen/app_common_five_dp_padding"
                android:orientation="horizontal"
                android:visibility="visible">

                <ImageView
                    android:id="@+id/iv_profile_icon"
                    android:layout_width="@dimen/app_video_screen_icon_width_height"
                    android:layout_height="@dimen/app_video_screen_icon_width_height"
                    android:layout_marginRight="@dimen/app_common_five_dp_padding"
                    android:background="@mipmap/profile" />

                <ImageView
                    android:id="@+id/iv_medical_notes_icon"
                    android:layout_width="@dimen/app_video_screen_icon_width_height"
                    android:layout_height="@dimen/app_video_screen_icon_width_height"
                    android:layout_marginLeft="@dimen/app_common_five_dp_padding"
                    android:layout_marginRight="@dimen/app_common_five_dp_padding"
                    android:background="@mipmap/medical_notes" />

                <ImageView
                    android:id="@+id/iv_prescription_icon"
                    android:layout_width="@dimen/app_video_screen_icon_width_height"
                    android:layout_height="@dimen/app_video_screen_icon_width_height"
                    android:layout_marginLeft="@dimen/app_common_five_dp_padding"
                    android:layout_marginRight="@dimen/app_common_five_dp_padding"
                    android:background="@mipmap/prescription" />

                <ImageView
                    android:id="@+id/iv_attachment_icon"
                    android:layout_width="@dimen/app_video_screen_icon_width_height"
                    android:layout_height="@dimen/app_video_screen_icon_width_height"
                    android:layout_marginLeft="@dimen/app_common_five_dp_padding"
                    android:layout_marginRight="@dimen/app_common_five_dp_padding"
                    android:background="@mipmap/attachments" />
            </LinearLayout>
        </LinearLayout>

        <RelativeLayout
            android:id="@+id/rl_video_fragmnet_container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/ll_patient_details_container"
            android:visibility="gone"></RelativeLayout>
    </RelativeLayout>

</RelativeLayout>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Quickblox VideoChat-未连接 - Quickblox VideoChat- Not connecting quickblox Sample-videochat-android无法正常工作(原因:java.lang.UnsatisfiedLinkError) - quickblox Sample-videochat-android is not working (Caused by: java.lang.UnsatisfiedLinkError) Quickblox示例视频聊天-无法创建用户 - Quickblox sample videochat - can not create user WebApp使用webRTC在iOS浏览器和Android Chrome中实现跨平台视频聊天 - WebApp using webRTC for cross-platform videochat in iOS Browser and Android Chrome 在Android中使用WebRTC QuickBlox进行视频通话时,远程QBGLvideoView不起作用 - Remote QBGLvideoView not working when video calling using WebRTC QuickBlox in Android 无法在Android中使用QuickBlox WebRtc接收和接受视频通话 - Unable to receive and accept Video Calls using QuickBlox WebRtc in Android Quickbloxcordova 示例视频 webrtc 应用程序不在 Android 设备上显示相机流 - Quickblox cordova sample video webrtc app don't show camera stream on android device 运行quickblox andorid videochat-sample时,Dx坏类文件魔术(cafebabe)或版本(0033.0000) - Dx bad class file magic (cafebabe) or version (0033.0000) when running quickblox andorid videochat-sample Quickblox 2.6.1 WebRTC:缺少org.webrtc.videocapturerandroid $ nativeobserver - Quickblox 2.6.1 webrtc: missing org.webrtc.videocapturerandroid$nativeobserver 在Android中将Quickblox与Proguard集成 - Integrating quickblox with Proguard in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM