This commit is contained in:
zhongchao
2021-04-15 12:52:36 +08:00
parent 469b7dd4ca
commit 658c39ce78
2 changed files with 8 additions and 8 deletions

View File

@@ -60,12 +60,12 @@ public class V2XPushLiveCarWindow extends V2XBasWindow implements IV2XWindow<V2X
public void initView(Context context) {
//Logger.w(MODULE_NAME, "初始化直播小窗口View。。。。。");
LayoutInflater.from(context).inflate(V2XServiceManager.getMoGoStatusManager().isVrMode()
View view = LayoutInflater.from(context).inflate(V2XServiceManager.getMoGoStatusManager().isVrMode()
? R.layout.item_v2x_push_live_video_vr
: R.layout.item_v2x_push_live_video, this);
// 详情列表
mV2XLiveGSYVideoView = findViewById(R.id.videoPlayer);
mIvReportHead = findViewById(R.id.ivReportHead);
mV2XLiveGSYVideoView = view.findViewById(R.id.videoPlayer);
mIvReportHead = view.findViewById(R.id.ivReportHead);
ImageView pushVideoClose = findViewById(R.id.pushVideoClose);
pushVideoClose.setOnClickListener(v -> close());
}

View File

@@ -50,13 +50,13 @@ public class V2XVoiceCallLiveCarWindow extends V2XBasWindow
private void initView(Context context) {
Logger.w(MODULE_NAME, "V2X===初始化语音呼叫直播视图");
LayoutInflater.from(context).inflate(V2XServiceManager.getMoGoStatusManager().isVrMode()
View view = LayoutInflater.from(context).inflate(V2XServiceManager.getMoGoStatusManager().isVrMode()
? R.layout.window_see_carlive_video_vr
: R.layout.window_see_carlive_video, this);
CarZegoLiveVideoView mV2XCarLiveVideoView = findViewById(R.id.videoPlayer);
tvCountDown = findViewById(R.id.tvCountDown);
ImageView ivLiveVideoClose = findViewById(R.id.liveVideoClose);
ivVideoPlayingSign = findViewById(R.id.ivVideoPlayingSign);
CarZegoLiveVideoView mV2XCarLiveVideoView = view.findViewById(R.id.videoPlayer);
tvCountDown = view.findViewById(R.id.tvCountDown);
ImageView ivLiveVideoClose = view.findViewById(R.id.liveVideoClose);
ivVideoPlayingSign = view.findViewById(R.id.ivVideoPlayingSign);
mV2XCarLiveVideoView.addOnVideoStatusChangeListener(videoPlaying -> {
isVideoPlay = videoPlaying;
if (isVideoPlay) {