Rémi Bernon (@rbernon) commented about include/windows.media.playback.idl:
[propget] HRESULT Current([out, retval] Windows.Media.Playback.MediaPlayer **player);
[eventadd] HRESULT MessageReceivedFromBackground(
[in] Windows.Foundation.EventHandler<Windows.Media.Playback.MediaPlayerDataReceivedEventArgs *> *value,
[out, retval] EventRegistrationToken *token
);
[eventremove] HRESULT MessageReceivedFromBackground([in] EventRegistrationToken token);
[eventadd] HRESULT MessageReceivedFromForeground(
[in] Windows.Foundation.EventHandler<Windows.Media.Playback.MediaPlayerDataReceivedEventArgs *> *value,
[out, retval] EventRegistrationToken *token
);
[eventremove] HRESULT MessageReceivedFromForeground([in] EventRegistrationToken token);
HRESULT SendMessageToBackground([in] Windows.Foundation.Collections.ValueSet *value);
HRESULT SendMessageToForeground([in] Windows.Foundation.Collections.ValueSet *value);
HRESULT IsMediaPlaying([out, retval] boolean *value);
HRESULT Shutdown();
- }
As far as I can tell this should be made deprecated. Something like that:
```suggestion:-22+0 [ contract(Windows.Foundation.UniversalApiContract, 1.0), exclusiveto(Windows.Media.Playback.BackgroundMediaPlayer), deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), uuid(856ddbc1-55f7-471f-a0f2-68ac4c904592) ] interface IBackgroundMediaPlayerStatics : IInspectable { [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), propget] HRESULT Current([out, retval] Windows.Media.Playback.MediaPlayer **player); [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), eventadd] HRESULT MessageReceivedFromBackground( [in] Windows.Foundation.EventHandler<Windows.Media.Playback.MediaPlayerDataReceivedEventArgs *> *value, [out, retval] EventRegistrationToken *token ); [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), eventremove] HRESULT MessageReceivedFromBackground([in] EventRegistrationToken token); [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), eventadd] HRESULT MessageReceivedFromForeground( [in] Windows.Foundation.EventHandler<Windows.Media.Playback.MediaPlayerDataReceivedEventArgs *> *value, [out, retval] EventRegistrationToken *token ); [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), eventremove] HRESULT MessageReceivedFromForeground([in] EventRegistrationToken token); [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0)] HRESULT SendMessageToBackground([in] Windows.Foundation.Collections.ValueSet *value); [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0)] HRESULT SendMessageToForeground([in] Windows.Foundation.Collections.ValueSet *value); [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0)] HRESULT IsMediaPlaying([out, retval] boolean *value); [deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0)] HRESULT Shutdown(); } ```