跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] 摸鱼新思路:通过多媒体键输入命令和 Media Session 浮层输出图文

发表于

Windows 上通过键盘调整音量或者通过多媒体键控制音乐时会显示 Media Session 浮层,其中包含了当前音量、专辑名、封面图片等。利用这个界面输出,结合多媒体键的命令输入,加上耳机的声音信息,可打造一个后台摸鱼工具~

事实上这个方案完全可通过网页实现,目前主流浏览器都支持 Media Session API ,并且在网页最小化甚至设备锁屏时也能接收多媒体输入命令(这是理所当然的,毕竟在线听歌时大多在做其他事,不可能一直聚焦在听歌页面上),因此你在其他窗口工作的同时,通过多媒体键悄悄发送摸鱼命令~

拿之前『通过耳机发送摩尔斯电码』的 Demo 做了一点改进,目前在 Windows 上的效果:

e91426fc-9912-4e73-9c52-0d61f66ee4c9

(除了按耳机、按键盘上的多媒体,直接用鼠标点浮层里的圆圈控制按钮效果也是一样的)

演示视频: https://github.com/user-attachments/assets/6b51ff7e-8c3b-4607-8da6-8e6534e57c74 (录制的时候还没加封面图片)

在线演示: https://etherdream.com/headphone-morse-transmitter/

当然这个封面图片网上随便找的比较简陋,实际可通过交互展示不同的图片,甚至还可以做成一个摸鱼小游戏。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.