|
|
|
@@ -68,7 +68,6 @@ import com.yunbao.common.utils.LogUtil;
|
|
|
|
import com.yunbao.common.utils.MicStatusManager;
|
|
|
|
import com.yunbao.common.utils.MicStatusManager;
|
|
|
|
import com.yunbao.common.utils.StringUtil;
|
|
|
|
import com.yunbao.common.utils.StringUtil;
|
|
|
|
import com.yunbao.common.utils.ToastUtil;
|
|
|
|
import com.yunbao.common.utils.ToastUtil;
|
|
|
|
import com.yunbao.common.utils.WordUtil;
|
|
|
|
|
|
|
|
import com.yunbao.common.views.LiveNewWishListPopup;
|
|
|
|
import com.yunbao.common.views.LiveNewWishListPopup;
|
|
|
|
import com.yunbao.common.views.LiveRobotSettingCustomPopup;
|
|
|
|
import com.yunbao.common.views.LiveRobotSettingCustomPopup;
|
|
|
|
import com.yunbao.faceunity.FaceManager;
|
|
|
|
import com.yunbao.faceunity.FaceManager;
|
|
|
|
@@ -223,9 +222,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|
|
|
long bitRate = statusBean.bitRate;
|
|
|
|
long bitRate = statusBean.bitRate;
|
|
|
|
//丢包率
|
|
|
|
//丢包率
|
|
|
|
long lossRate = statusBean.packetLostRate;
|
|
|
|
long lossRate = statusBean.packetLostRate;
|
|
|
|
//带宽
|
|
|
|
Log.e("网速和内存", "获取视频:" + resolution + " 丢包率:" + lossRate);
|
|
|
|
String googAvailableSendBandwidth = statusReport.googAvailableSendBandwidth;
|
|
|
|
|
|
|
|
Log.e("网速和内存", "获取视频:" + resolution + " 丢包率:" + lossRate + " 带宽:" + googAvailableSendBandwidth);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@@ -799,7 +796,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|
|
|
mLiveAnchorViewHolder.startAnchorLiveTime();
|
|
|
|
mLiveAnchorViewHolder.startAnchorLiveTime();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
mLiveBottomViewHolder = mLiveAnchorViewHolder;
|
|
|
|
mLiveBottomViewHolder = mLiveAnchorViewHolder;
|
|
|
|
mSocketRyClient = new SocketRyClient(mLiveUid, this,mContext);
|
|
|
|
mSocketRyClient = new SocketRyClient(mLiveUid, this, mContext);
|
|
|
|
mSocketRyClient.setLivePushRyViewHolder(mLivePushViewHolder);
|
|
|
|
mSocketRyClient.setLivePushRyViewHolder(mLivePushViewHolder);
|
|
|
|
CommonAppContext.Ingroup = 1;
|
|
|
|
CommonAppContext.Ingroup = 1;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -861,7 +858,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|
|
|
* 关闭直播
|
|
|
|
* 关闭直播
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public void closeLive() {
|
|
|
|
public void closeLive() {
|
|
|
|
DialogUitl.showSimpleDialog(mContext,mContext.getString(R.string.live_end_live), new DialogUitl.SimpleCallback() {
|
|
|
|
DialogUitl.showSimpleDialog(mContext, mContext.getString(R.string.live_end_live), new DialogUitl.SimpleCallback() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onConfirmClick(Dialog dialog, String content) {
|
|
|
|
public void onConfirmClick(Dialog dialog, String content) {
|
|
|
|
PKing = false;
|
|
|
|
PKing = false;
|
|
|
|
@@ -990,7 +987,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Dialog createLoadingDialog() {
|
|
|
|
public Dialog createLoadingDialog() {
|
|
|
|
return DialogUitl.loadingDialog(mContext,mContext.getString(R.string.live_end_ing));
|
|
|
|
return DialogUitl.loadingDialog(mContext, mContext.getString(R.string.live_end_ing));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -1122,7 +1119,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onSuperCloseLive() {
|
|
|
|
public void onSuperCloseLive() {
|
|
|
|
endLive();
|
|
|
|
endLive();
|
|
|
|
DialogUitl.showSimpleTipDialog(mContext,mContext.getString(R.string.live_illegal));
|
|
|
|
DialogUitl.showSimpleTipDialog(mContext, mContext.getString(R.string.live_illegal));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
|
|
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
|
|
|
|