V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ichanne
V2EX  ›  iPhone

能不能做到带上 AirPods,自动打开网易云音乐 App?

  •  
  •   ichanne · 2019-05-07 17:50:17 +08:00 · 13386 次点击
    这是一个创建于 1787 天前的主题,其中的信息可能已经有所发展或是发生改变。

    现在默认都是音乐 App,还要手动打开云村 App,太麻烦了

    17 条回复    2019-05-08 13:18:02 +08:00
    lifespy
        1
    lifespy  
       2019-05-07 17:54:07 +08:00
    首先你得想办法让设备知道你已经把它戴上了,之后的就好解决了
    tatacheung
        2
    tatacheung  
       2019-05-07 18:03:09 +08:00
    买 AirPods 2
    “ Hey siri,打开网易云音乐”。
    x86
        3
    x86  
       2019-05-07 18:05:33 +08:00 via iPhone
    @tatacheung 我还不如手动打开
    tatacheung
        4
    tatacheung  
       2019-05-07 18:06:43 +08:00
    一代 AirPods
    戴上后快速连续两次敲击 AirPods 呼出 Siri
    “ 打开网易云音乐 ”
    glaucus
        5
    glaucus  
       2019-05-07 18:07:12 +08:00 via iPhone
    @lifespy iPhone 上有入耳检测呀,只是接口肯定不会开放就是了
    finab
        6
    finab  
       2019-05-07 18:11:50 +08:00
    把双击手势 设为 播放
    带上耳机直接双击,会自动启动上次的播放 APP 并播放
    我经常这样用,不过只有上次是网易云时,才会继续播放网易云
    ochatokori
        7
    ochatokori  
       2019-05-07 18:21:26 +08:00 via Android
    @glaucus 这个上耳检测会不会用的是距离感应器
    cxl008
        8
    cxl008  
       2019-05-07 18:22:43 +08:00
    @tatacheung 请先解锁 iphone。。。。。。
    MarineGG
        9
    MarineGG  
       2019-05-07 18:30:39 +08:00   ❤️ 1
    https://github.com/toy/blueutil

    有个参数 is-connected ID,检测到 airpod 连接的时候,执行 osascript

    网易云音乐要先打开全局快捷键,58 55 49 表示同时按下 ⌥ ⌘ 空格

    osasript -e 'tell application "System Events"' -e 'key code {58,55,49}' -e 'end tell'
    glaucus
        10
    glaucus  
       2019-05-07 18:35:24 +08:00 via iPhone
    @ochatokori 是的吧,和手机前置旁边那个一样,你拿手捂住也会触发
    MarineGG
        11
    MarineGG  
       2019-05-07 19:03:21 +08:00   ❤️ 1
    或者不设全局快捷键,直接 tell

    tell application "System Events"
    tell process "网易云音乐"
    click menu item "下一个" of menu "控制" of menu bar 1
    end tell
    end tell

    因为控制第一个按钮会是 "播放 /暂停",用 "下一个" 可以直接播放
    dingdangnao
        12
    dingdangnao  
       2019-05-07 20:28:25 +08:00
    你这也是懒到一定境界了😂未来可能就是 Hey Siri,帮我带上 AirPods。然后 AirPods 飞过来了,帮你自动打开网易云音乐播放私人电台啥的😂
    ichanne
        13
    ichanne  
    OP
       2019-05-08 00:28:29 +08:00
    @MarineGG #9 6b,在 Mac 上这是个好方法,不过我忘记说了,是 iPhone。。
    alfchin
        14
    alfchin  
       2019-05-08 08:33:50 +08:00 via Android
    三星可以。
    ichanne
        15
    ichanne  
    OP
       2019-05-08 09:04:33 +08:00
    @dingdangnao #12 懒惰让社会进步

    我上了车,iPhone 会自动连接蓝牙,然后自动播放。
    Zheming
        16
    Zheming  
       2019-05-08 12:54:38 +08:00 via iPhone
    @dingdangnao 应该像钢铁侠一抬手各个部件就飞过来一样,动动耳朵 airpods 就来了。不过不是所有人都能动耳朵 hhh
    IM1T
        17
    IM1T  
       2019-05-08 13:18:02 +08:00
    Mac 可以
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3369 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:43 · PVG 08:43 · LAX 17:43 · JFK 20:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.