Skip to content

Commit

Permalink
修改保存录像时,传入bitmap的宽高设置。
Browse files Browse the repository at this point in the history
Change-Id: I7ee025cf722847a0753661e2fd6cfeb9bbcb616a
  • Loading branch information
SundoggyNew committed Nov 30, 2023
1 parent a87630c commit c05f268
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Surface
VideoPlaybackActivity.startPlaybackActivity(this@VideoPreviewActivity, dev)
}
radio_photo.setOnClickListener {
ImageSelect.saveBitmap(this@VideoPreviewActivity, v_preview.bitmap)
val bitmap = v_preview.getBitmap(player.videoWidth, player.videoHeight)
ImageSelect.saveBitmap(this@VideoPreviewActivity, bitmap)
ToastDialog(this, ToastDialog.Type.SUCCESS, getString(R.string.capture_successed), 2000).show()
}
iv_up.setOnClickListener(controlListener)
Expand Down

0 comments on commit c05f268

Please sign in to comment.