上滑关闭暂停播放
This commit is contained in:
@@ -130,6 +130,6 @@ public class V2XRoadVideoCarScenario extends AbsV2XScenario<V2XEventShowEntity>
|
||||
@Override
|
||||
public void beforeViewRemoveAnim(View view) {
|
||||
Log.d(TAG, "beforeViewRemoveAnim");
|
||||
( (V2XRoadVideoWindow)getV2XWindow()).pauseVideo();
|
||||
((V2XRoadVideoWindow) getV2XWindow()).pauseVideo();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,10 +97,10 @@ public class V2XRoadVideoWindow extends RelativeLayout implements
|
||||
* 开始播放
|
||||
*/
|
||||
private void startPlayWithVideoUrl(String videoUrl) {
|
||||
GSYVideoManager.instance().setNeedMute(true);
|
||||
gsyVideoOptionBuilder.setUrl(videoUrl).setCacheWithPlay(false).setPlayTag(TAG)
|
||||
.build(simpleCoverVideoPlayer);
|
||||
simpleCoverVideoPlayer.getStartButton().performClick();
|
||||
GSYVideoManager.instance().setNeedMute(true);
|
||||
thumbnailImage.setVisibility(View.GONE);
|
||||
playImageView.setVisibility(View.GONE);
|
||||
}
|
||||
@@ -157,12 +157,12 @@ public class V2XRoadVideoWindow extends RelativeLayout implements
|
||||
}
|
||||
if (path.contains(".mp4")) {
|
||||
startPlayWithVideoUrl(path);
|
||||
Bitmap firstbitmap = BitmapHelper.getVideoThumbnail(path);/*获取第一帧图*/
|
||||
Bitmap firstBitmap = BitmapHelper.getVideoThumbnail(path);/*获取第一帧图*/
|
||||
|
||||
simpleCoverVideoPlayer.setVideoAllCallBack(new VideoAllCallBack() {
|
||||
@Override
|
||||
public void onAutoComplete(String url, Object... objects) {
|
||||
complete(firstbitmap, path);
|
||||
complete(firstBitmap, path);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user