initial MPMedia bridge
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* mpmediabridge.h
|
||||
*
|
||||
* This file provides a C bridge to the Objective-C framework for macOS media playback.
|
||||
* It offers a simplified interface to interact with the MPNowPlayingInfoCenter and other
|
||||
* related media playback functionalities in macOS without dealing directly with
|
||||
* Objective-C code.
|
||||
*/
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include <MediaPlayer/MediaPlayer.h>
|
||||
|
||||
/**
|
||||
* Updates the "Now Playing" information on macOS for media playback
|
||||
* using the MPNowPlayingInfoCenter API to set the metadata
|
||||
* for the currently playing media in the system's "Now Playing" interface.
|
||||
*/
|
||||
void setNowPlayingInfo(const char *title, const char *artist);
|
||||
Reference in New Issue
Block a user