Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Gambar 1. Merekam video aplikasi Anda.
Logcat memungkinkan Anda merekam video MP4
dari perangkat, seperti untuk materi pemasaran atau untuk proses debug. Video maksimal berdurasi tiga
menit, dan audio tidak direkam dengan file video.
Untuk merekam video aplikasi Anda, lakukan hal berikut:
Lakukan perubahan di layar perangkat untuk menentukan titik mulai video.
Klik Screen Record di sisi kiri
jendela Logcat.
Dalam dialog Screen Recorder Options, tetapkan opsi perekaman:
Bit Rate: Masukkan kecepatan bit. Defaultnya adalah 4 Mbps.
Resolution: Masukkan nilai lebar dan tinggi dalam piksel. Nilai ini harus
kelipatan 16. Defaultnya adalah resolusi perangkat.
Show Taps: Memungkinkan masukan visual untuk ketukan.
Klik Start Recording untuk memulai perekaman.
Klik Stop Recording untuk menghentikan perekaman.
Dalam dialog Save As, simpan file MP4.
Dalam dialog Screen Recorder, klik salah satu tombol untuk menunjukkan lokasi file,
membuka rekaman dalam pemutar, atau menutup dialog.
Merekam video dengan emulator
Jika menggunakan emulator, Anda dapat merekam video langsung dari tab Record and Playback
pada Extended Controls. Setelah merekam video, Anda dapat menyimpannya dalam format WEBM atau
GIF:
Gambar 2. Rekam video menggunakan emulator.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-04-06 UTC.
[null,null,["Terakhir diperbarui pada 2025-04-06 UTC."],[],[],null,["# Record a video\n\n**Figure 1.** Record a video of your app.\n\n\n[Logcat](/studio/debug/am-logcat) lets you record an MP4 video\nfrom your device, such as for marketing materials or for debugging. Videos are a maximum of three\nminutes long, and audio is not recorded with the video file.\n\nTo record a video of your app, do the following:\n\n1. Open an app project.\n2. [Run the app](/studio/run#RunningApp) on a device.\n3. Click **View \\\u003e Tool Windows \\\u003e Logcat**.\n4. Interact with the display on the device to stage the start of the video.\n5. Click **Screen Record** in the left side of the Logcat window.\n6. In the **Screen Recorder Options** dialog, set the recording options:\n - **Bit Rate:** Enter a bit rate. The default is 4 Mbps.\n - **Resolution:** Enter a width and height value in pixels. The value must be a multiple of 16. The default is the resolution of the device.\n - **Show Taps:** Enable visual feedback for taps.\n7. Click **Start Recording** to start the recording.\n8. Click **Stop Recording** to stop the recording.\n9. In the **Save As** dialog, save the MP4 file.\n10. In the **Screen Recorder** dialog, click one of the buttons to show the file location, open the recording in a player, or dismiss the dialog.\n\nRecord video with the emulator\n------------------------------\n\nIf you are using an emulator, you can record video directly from the **Record and Playback**\ntab in **Extended Controls**. Once you have recorded a video, you can save it as either WEBM or\nGIF format:\n**Figure 2.** Record a video using an emulator."]]