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">一个Locale插件模拟按下耳机或耳麦按钮。可用的按钮是“钩子”,即单一的耳机按钮,播放/暂停,播放,暂停,下,前,快进,快退,停止。还可以检查是否任何当前正在播放。
这是非常有用的,因为耳机按钮自动使用当前的“优选的”媒体播放器的移动设备上,这通常是最近使用的一种,而不是任何一个特定的播放器。
我使用它来重新启动,无论是打最后当我插上耳机。这是很好的Android会自动暂停时,他们拔出,但很烦人解锁屏幕,通过播放器应用程序导航,记者再次发挥。添加语言环境的情况与耳机连接的条件和这个插件的设置,瞧,你的音乐或播客自动重新启动“播放/暂停”,当你插入耳机回来!
警告:一些媒体播放器应用程序不处理耳机按钮一致,甚至根本,甚至内置的应用程序。与特定的应用程序,如果这个插件不起作用,检查它支持耳机按钮,你所选择的,和/或尝试其他的按钮。</div> <div class="show-more-end">