Control iTunes from a cocoa application

后端 未结 3 1140
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 22:40

I am developing a mac application that involves audio playback. I would like to pause other audio players when our playback starts.

how can I
1) detect that itu

3条回答
  •  失恋的感觉
    2020-12-08 23:29

    1) detect that itunes is running

    NSRunningApplication or Process Manager.

    2) detect that itunes is currently playing
    3) pause itunes
    4) resume itunes when I am done

    Scripting Bridge.

    5) Is the a way to pause other types of media playback as well?

    That depends on the application.

    audio and video in the in the browser for example?

    No.

提交回复
热议问题