[add] 分享列表UI资源添加,视频消音播放
This commit is contained in:
@@ -11,8 +11,6 @@ import com.mogo.module.common.entity.V2XMessageEntity;
|
||||
import com.mogo.module.v2x.R;
|
||||
import com.mogo.module.v2x.V2XServiceManager;
|
||||
import com.mogo.module.v2x.scenario.impl.AbsV2XScenario;
|
||||
import com.mogo.module.v2x.scenario.scene.animation.V2XAnimationWindow;
|
||||
import com.mogo.module.v2x.scenario.view.IV2XWindow;
|
||||
import com.mogo.module.v2x.utils.V2XUtils;
|
||||
import com.mogo.service.windowview.IMogoTopViewStatusListener;
|
||||
|
||||
@@ -132,6 +130,6 @@ public class V2XRoadVideoCarScenario extends AbsV2XScenario<V2XEventShowEntity>
|
||||
@Override
|
||||
public void beforeViewRemoveAnim(View view) {
|
||||
Log.d(TAG, "beforeViewRemoveAnim");
|
||||
closeWindow();
|
||||
( (V2XRoadVideoWindow)getV2XWindow()).pauseVideo();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ import com.mogo.module.v2x.listener.V2XWindowStatusListener;
|
||||
import com.mogo.module.v2x.scenario.view.IV2XWindow;
|
||||
import com.mogo.module.v2x.view.SimpleCoverVideoPlayer;
|
||||
import com.mogo.utils.BitmapHelper;
|
||||
import com.shuyu.gsyvideoplayer.GSYVideoManager;
|
||||
import com.shuyu.gsyvideoplayer.builder.GSYVideoOptionBuilder;
|
||||
import com.shuyu.gsyvideoplayer.listener.VideoAllCallBack;
|
||||
import com.shuyu.gsyvideoplayer.utils.GSYVideoType;
|
||||
@@ -99,6 +100,7 @@ public class V2XRoadVideoWindow extends RelativeLayout implements
|
||||
gsyVideoOptionBuilder.setUrl(videoUrl).setCacheWithPlay(false).setPlayTag(TAG)
|
||||
.build(simpleCoverVideoPlayer);
|
||||
simpleCoverVideoPlayer.getStartButton().performClick();
|
||||
GSYVideoManager.instance().setNeedMute(true);
|
||||
thumbnailImage.setVisibility(View.GONE);
|
||||
playImageView.setVisibility(View.GONE);
|
||||
}
|
||||
@@ -260,14 +262,14 @@ public class V2XRoadVideoWindow extends RelativeLayout implements
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
pushVideo();
|
||||
pauseVideo();
|
||||
//移除窗体
|
||||
V2XServiceManager
|
||||
.getMogoTopViewManager()
|
||||
.removeViewNoLinkage(this);
|
||||
}
|
||||
|
||||
void pushVideo() {
|
||||
public void pauseVideo() {
|
||||
if (simpleCoverVideoPlayer != null) {
|
||||
simpleCoverVideoPlayer.onVideoPause();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user