Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

macos-media-info

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

macos-media-info

> Retrieves info of currently-playing media from various sources on macOS

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-96.97%
Maintainers
0
Weekly downloads
 
Created
Source

Retrieve macOS Media Playback Metadata

Retrieves info of currently-playing media from various sources on macOS

This package provides methods to retrieve information of media playback via the following macOS APIs:

MediaRemote.framework

Retrieve metadata of the highest priority media session system-wide. This includes playback originating from any app which implements the macOS media session API.

Use this if you'd like to retrieve metadata of any media playback on the system, of which some examples include:

  • Browsers
  • Apple Music/TV
  • Spotify
  • etc.

Note that this method only returns metadata corresponding to the session with the highest priority, decided based on system heuristics. This means that the metadata need not necessarily always be that of a single application and may change based on the active media sessions at the moment.

ScriptingBridge

Retrieves metadata of media playback in Apple Music via its Scripting Bridge interface.

Note: Only supports Apple Music currently.


A native node plugin is used to interface with the aforementioned macOS APIs. This is the most efficient approach and does not involve invoking any additional binaries/shell commands.

FAQs

Package last updated on 04 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc