录制屏幕
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以在 Android 模拟器中录制视频和音频,并将录制内容保存到 WebM 或动画 GIF 文件中。
屏幕录制控件位于 Extended Controls 窗口的 Record and Playback 标签页中。
提示:您也可以按 Ctrl + Shift + R 键(在 macOS 上,按 Command + Shift + R 键)来打开屏幕录制控件。
- 若要开始屏幕录制,请点击 Record and Playback 标签页中的 Start recording 按钮。
- 要停止录制,请点击 Stop recording。
如需保存录制的视频,请执行以下操作:
- 用于播放和保存录制视频的控件位于 Record and Playback 标签页底部。
- 从该标签页底部的菜单中选择 WebM 或 GIF。
- 点击 Save。
您也可以在命令行上使用以下命令,从模拟器中录制并保存屏幕录制内容:
adb emu screenrecord start --time-limit 10 [path to save video]/sample_video.webm
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Record the screen\n\nYou can record video and audio from the Android Emulator and save the recording\nto a WebM or animated GIF file.\n\nThe screen recording controls are in the **Record and Playback** tab of the\n[**Extended Controls**](/studio/run/emulator-extended-controls) window.\n\n**Tip:** You can open the screen recording controls by\npressing \u003ckbd\u003eControl\u003c/kbd\u003e+\u003ckbd\u003eShift\u003c/kbd\u003e+\u003ckbd\u003eR\u003c/kbd\u003e\n(\u003ckbd\u003eCommand\u003c/kbd\u003e+\u003ckbd\u003eShift\u003c/kbd\u003e+\u003ckbd\u003eR\u003c/kbd\u003e on macOS).\n\n- To begin screen recording, click the **Start recording** button in the **Record and Playback** tab.\n- To stop recording, click **Stop recording**.\n\nTo save the recorded video:\n\n1. Controls for playing and saving the recorded video are at the bottom of the **Record and Playback** tab.\n2. Choose **WebM** or **GIF** from the menu at the bottom of the tab.\n3. Click **Save**.\n\nYou can also record and save a screen recording from the emulator using the\nfollowing command on the command line:\n\n`adb emu screenrecord start --time-limit 10 `\u003cvar translate=\"no\"\u003e[path to save video]\u003c/var\u003e`/sample_video.webm`"]]