A Locale plugin that simulates pressing a headphone or headset button. Available buttons are the "hook" ie single headset button, Play/Pause, Play, Pause, Next, Previous, Fast Forward, Rewind, Stop. Also optionally checks whether anything is currently playing.
This is useful because headphone buttons automatically use the current "preferred" media player on your device, which is usually the most recently used one, instead of any one specific player.
I use this to restart whatever was playing last when I plug in my headphones. It's nice that Android automatically pauses when they're unplugged, but it's annoying to have to unlock the screen, navigate through the player app, and press play again. Add a Locale situation with headphones connected as the condition and this plugin with "Play/Pause" as the setting, and voila, your music or podcast automatically restarts when you plug your headphones back in!
Warning: some media player apps don't handle headphone buttons consistently, or even at all, even built-in apps. If this plugin doesn't work with a specific app, check that it supports the headphone button you've selected, and/or try other buttons.
</div> <div jsname="WJz9Hc" style="display:none">Sebuah plugin Lokal yang mensimulasikan menekan tombol headset headphone atau. Tombol yang tersedia adalah "hook" yaitu tombol headset tunggal, Play / Pause, Play, Pause, Next, Sebelumnya, Fast Forward, Rewind, Berhenti. Juga opsional memeriksa apakah ada sesuatu yang sedang diputar.
Hal ini berguna karena headphone tombol otomatis menggunakan "disukai" pemain saat media pada perangkat Anda, yang biasanya paling terakhir digunakan satu, bukan salah satu pemain tertentu.
Saya menggunakan ini untuk me-restart apa pun bermain terakhir ketika saya pasang di headphone saya. Sangat menyenangkan bahwa Android secara otomatis berhenti ketika mereka dicabut, tapi itu menjengkelkan harus membuka kunci layar, menavigasi melalui app player, dan tekan bermain lagi. Tambahkan situasi Lokal dengan headphone terhubung sebagai kondisi dan plugin ini dengan "Play / Pause" sebagai pengaturan, dan voila, musik atau podcast secara otomatis restart ketika Anda pasang headphone Anda kembali!
Peringatan: beberapa aplikasi media player tidak menangani headphone tombol konsisten, atau bahkan sama sekali, bahkan built-in aplikasi. Jika plugin ini tidak bekerja dengan aplikasi tertentu, memeriksa bahwa itu mendukung tombol headphone yang telah Anda pilih, dan / atau mencoba tombol lainnya.</div> <div class="show-more-end">