| 1 |
/* |
| 2 |
* Copyright (C) 2025 Mohamad Al-Jaf |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Lesser General Public |
| 6 |
* License as published by the Free Software Foundation; either |
| 7 |
* version 2.1 of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General Public |
| 15 |
* License along with this library; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifdef __WIDL__ |
| 20 |
#pragma winrt ns_prefix |
| 21 |
#endif |
| 22 |
|
| 23 |
import "inspectable.idl"; |
| 24 |
import "asyncinfo.idl"; |
| 25 |
import "eventtoken.idl"; |
| 26 |
import "windowscontracts.idl"; |
| 27 |
import "windows.foundation.idl"; |
| 28 |
import "windows.devices.enumeration.idl"; |
| 29 |
import "windows.foundation.numerics.idl"; |
| 30 |
import "windows.graphics.directx.direct3d11.idl"; |
| 31 |
import "windows.media.idl"; |
| 32 |
/* import "windows.media.audio.idl"; */ |
| 33 |
/* import "windows.media.casting.idl"; */ |
| 34 |
import "windows.media.core.idl"; |
| 35 |
import "windows.media.mediaproperties.idl"; |
| 36 |
/* import "windows.media.protection.idl"; */ |
| 37 |
import "windows.storage.idl"; |
| 38 |
import "windows.storage.streams.idl"; |
| 39 |
import "windows.ui.composition.idl"; |
| 40 |
|
| 41 |
namespace Windows.Media.Playback { |
| 42 |
typedef enum MediaPlayerAudioCategory MediaPlayerAudioCategory; |
| 43 |
typedef enum MediaPlayerAudioDeviceType MediaPlayerAudioDeviceType; |
| 44 |
typedef enum MediaPlayerError MediaPlayerError; |
| 45 |
typedef enum MediaPlayerState MediaPlayerState; |
| 46 |
|
| 47 |
interface IBackgroundMediaPlayerStatics; |
| 48 |
interface IMediaPlayer; |
| 49 |
interface IMediaPlayer2; |
| 50 |
interface IMediaPlayerDataReceivedEventArgs; |
| 51 |
interface IMediaPlayerFailedEventArgs; |
| 52 |
interface IMediaPlayerRateChangedEventArgs; |
| 53 |
interface IPlaybackMediaMarker; |
| 54 |
interface IPlaybackMediaMarkerFactory; |
| 55 |
interface IPlaybackMediaMarkerReachedEventArgs; |
| 56 |
interface IPlaybackMediaMarkerSequence; |
| 57 |
|
| 58 |
runtimeclass BackgroundMediaPlayer; |
| 59 |
runtimeclass MediaPlayer; |
| 60 |
runtimeclass MediaPlayerDataReceivedEventArgs; |
| 61 |
runtimeclass MediaPlayerFailedEventArgs; |
| 62 |
runtimeclass MediaPlayerRateChangedEventArgs; |
| 63 |
runtimeclass PlaybackMediaMarker; |
| 64 |
runtimeclass PlaybackMediaMarkerSequence; |
| 65 |
runtimeclass PlaybackMediaMarkerReachedEventArgs; |
| 66 |
|
| 67 |
declare { |
| 68 |
interface Windows.Foundation.Collections.IIterable<Windows.Media.Playback.PlaybackMediaMarker *>; |
| 69 |
interface Windows.Foundation.Collections.IIterator<Windows.Media.Playback.PlaybackMediaMarker *>; |
| 70 |
interface Windows.Foundation.EventHandler<Windows.Media.Playback.MediaPlayerDataReceivedEventArgs *>; |
| 71 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, IInspectable *>; |
| 72 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, Windows.Media.Playback.MediaPlayerFailedEventArgs *>; |
| 73 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, Windows.Media.Playback.MediaPlayerRateChangedEventArgs *>; |
| 74 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, Windows.Media.Playback.PlaybackMediaMarkerReachedEventArgs *>; |
| 75 |
} |
| 76 |
|
| 77 |
[ |
| 78 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 79 |
] |
| 80 |
enum MediaPlayerAudioCategory |
| 81 |
{ |
| 82 |
Other = 0, |
| 83 |
Communications = 3, |
| 84 |
Alerts = 4, |
| 85 |
SoundEffects = 5, |
| 86 |
GameEffects = 6, |
| 87 |
GameMedia = 7, |
| 88 |
GameChat = 8, |
| 89 |
Speech = 9, |
| 90 |
Movie = 10, |
| 91 |
Media = 11, |
| 92 |
}; |
| 93 |
|
| 94 |
[ |
| 95 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 96 |
] |
| 97 |
enum MediaPlayerAudioDeviceType |
| 98 |
{ |
| 99 |
Console = 0, |
| 100 |
Multimedia = 1, |
| 101 |
Communications = 2, |
| 102 |
}; |
| 103 |
|
| 104 |
[ |
| 105 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 106 |
] |
| 107 |
enum MediaPlayerError |
| 108 |
{ |
| 109 |
Unknown = 0, |
| 110 |
Aborted = 1, |
| 111 |
NetworkError = 2, |
| 112 |
DecodingError = 3, |
| 113 |
SourceNotSupported = 4, |
| 114 |
}; |
| 115 |
|
| 116 |
[ |
| 117 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 118 |
deprecated("Use MediaPlaybackState", deprecate, Windows.Foundation.UniversalApiContract, 3.0) |
| 119 |
] |
| 120 |
enum MediaPlayerState |
| 121 |
{ |
| 122 |
Closed = 0, |
| 123 |
Opening = 1, |
| 124 |
Buffering = 2, |
| 125 |
Playing = 3, |
| 126 |
Paused = 4, |
| 127 |
Stopped = 5, |
| 128 |
}; |
| 129 |
|
| 130 |
[ |
| 131 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 132 |
exclusiveto(Windows.Media.Playback.BackgroundMediaPlayer), |
| 133 |
deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), |
| 134 |
uuid(856ddbc1-55f7-471f-a0f2-68ac4c904592) |
| 135 |
] |
| 136 |
interface IBackgroundMediaPlayerStatics : IInspectable |
| 137 |
{ |
| 138 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), propget] HRESULT Current([out, retval] Windows.Media.Playback.MediaPlayer **player); |
| 139 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), eventadd] HRESULT MessageReceivedFromBackground( |
| 140 |
[in] Windows.Foundation.EventHandler<Windows.Media.Playback.MediaPlayerDataReceivedEventArgs *> *value, |
| 141 |
[out, retval] EventRegistrationToken *token |
| 142 |
); |
| 143 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), eventremove] HRESULT MessageReceivedFromBackground([in] EventRegistrationToken token); |
| 144 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), eventadd] HRESULT MessageReceivedFromForeground( |
| 145 |
[in] Windows.Foundation.EventHandler<Windows.Media.Playback.MediaPlayerDataReceivedEventArgs *> *value, |
| 146 |
[out, retval] EventRegistrationToken *token |
| 147 |
); |
| 148 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), eventremove] HRESULT MessageReceivedFromForeground([in] EventRegistrationToken token); |
| 149 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0)] HRESULT SendMessageToBackground([in] Windows.Foundation.Collections.ValueSet *value); |
| 150 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0)] HRESULT SendMessageToForeground([in] Windows.Foundation.Collections.ValueSet *value); |
| 151 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0)] HRESULT IsMediaPlaying([out, retval] boolean *value); |
| 152 |
[deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0)] HRESULT Shutdown(); |
| 153 |
} |
| 154 |
|
| 155 |
[ |
| 156 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 157 |
exclusiveto(Windows.Media.Playback.MediaPlayer), |
| 158 |
uuid(381a83cb-6fff-499b-8d64-2885dfc1249e) |
| 159 |
] |
| 160 |
interface IMediaPlayer : IInspectable |
| 161 |
{ |
| 162 |
[propget] HRESULT AutoPlay([out, retval] boolean *value); |
| 163 |
[propput] HRESULT AutoPlay([in] boolean value); |
| 164 |
[deprecated("Use PlaybackSession.NaturalDuration", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 165 |
[propget] HRESULT NaturalDuration([out, retval] Windows.Foundation.TimeSpan *value); |
| 166 |
[deprecated("Use PlaybackSession.Position", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 167 |
[propget] HRESULT Position([out, retval] Windows.Foundation.TimeSpan *value); |
| 168 |
[deprecated("Use PlaybackSession.Position", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 169 |
[propput] HRESULT Position([in] Windows.Foundation.TimeSpan value); |
| 170 |
[deprecated("Use PlaybackSession.BufferingProgress", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 171 |
[propget] HRESULT BufferingProgress([out, retval] DOUBLE *value); |
| 172 |
[deprecated("Use PlaybackSession.State", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 173 |
[propget] HRESULT CurrentState([out, retval] Windows.Media.Playback.MediaPlayerState *value); |
| 174 |
[deprecated("Use PlaybackSession.CanSeek", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 175 |
[propget] HRESULT CanSeek([out, retval] boolean *value); |
| 176 |
[deprecated("Use PlaybackSession.CanPause", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 177 |
[propget] HRESULT CanPause([out, retval] boolean *value); |
| 178 |
[propget] HRESULT IsLoopingEnabled([out, retval] boolean *value); |
| 179 |
[propput] HRESULT IsLoopingEnabled([in] boolean value); |
| 180 |
[deprecated("Use PlaybackSession.IsProtected", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 181 |
[propget] HRESULT IsProtected([out, retval] boolean *value); |
| 182 |
[propget] HRESULT IsMuted([out, retval] boolean *value); |
| 183 |
[propput] HRESULT IsMuted([in] boolean value); |
| 184 |
[deprecated("Use PlaybackSession.PlaybackRate", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 185 |
[propget] HRESULT PlaybackRate([out, retval] DOUBLE *value); |
| 186 |
[deprecated("Use PlaybackSession.PlaybackRate", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 187 |
[propput] HRESULT PlaybackRate([in] DOUBLE value); |
| 188 |
[propget] HRESULT Volume([out, retval] DOUBLE *value); |
| 189 |
[propput] HRESULT Volume([in] DOUBLE value); |
| 190 |
[deprecated("Use media tracks on MediaPlaybackItem", deprecate, Windows.Foundation.UniversalApiContract, 2.0)] |
| 191 |
[propget] HRESULT PlaybackMediaMarkers([out, retval] Windows.Media.Playback.PlaybackMediaMarkerSequence **value); |
| 192 |
[eventadd] HRESULT MediaOpened( |
| 193 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, IInspectable *> *value, |
| 194 |
[out, retval] EventRegistrationToken *token |
| 195 |
); |
| 196 |
[eventremove] HRESULT MediaOpened([in] EventRegistrationToken token); |
| 197 |
[eventadd] HRESULT MediaEnded( |
| 198 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, IInspectable *> *value, |
| 199 |
[out, retval] EventRegistrationToken *token |
| 200 |
); |
| 201 |
[eventremove] HRESULT MediaEnded([in] EventRegistrationToken token); |
| 202 |
[eventadd] HRESULT MediaFailed( |
| 203 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, Windows.Media.Playback.MediaPlayerFailedEventArgs *> *value, |
| 204 |
[out, retval] EventRegistrationToken *token |
| 205 |
); |
| 206 |
[eventremove] HRESULT MediaFailed([in] EventRegistrationToken token); |
| 207 |
[deprecated("Use PlaybackSession.PlaybackStateChanged", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 208 |
[eventadd] HRESULT CurrentStateChanged( |
| 209 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, IInspectable *> *value, |
| 210 |
[out, retval] EventRegistrationToken *token |
| 211 |
); |
| 212 |
[deprecated("Use PlaybackSession.PlaybackStateChanged", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 213 |
[eventremove] HRESULT CurrentStateChanged([in] EventRegistrationToken token); |
| 214 |
[deprecated("Use media tracks on MediaPlaybackItem", deprecate, Windows.Foundation.UniversalApiContract, 2.0)] |
| 215 |
[eventadd] HRESULT PlaybackMediaMarkerReached( |
| 216 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, Windows.Media.Playback.PlaybackMediaMarkerReachedEventArgs *> *value, |
| 217 |
[out, retval] EventRegistrationToken *token |
| 218 |
); |
| 219 |
[deprecated("Use media tracks on MediaPlaybackItem", deprecate, Windows.Foundation.UniversalApiContract, 2.0)] |
| 220 |
[eventremove] HRESULT PlaybackMediaMarkerReached([in] EventRegistrationToken token); |
| 221 |
[deprecated("Use PlaybackSession.PlaybackRateChanged", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 222 |
[eventadd] HRESULT MediaPlayerRateChanged( |
| 223 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, Windows.Media.Playback.MediaPlayerRateChangedEventArgs *> *value, |
| 224 |
[out, retval] EventRegistrationToken *token |
| 225 |
); |
| 226 |
[deprecated("Use PlaybackSession.PlaybackRateChanged", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 227 |
[eventremove] HRESULT MediaPlayerRateChanged([in] EventRegistrationToken token); |
| 228 |
[eventadd] HRESULT VolumeChanged( |
| 229 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, IInspectable *> *value, |
| 230 |
[out, retval] EventRegistrationToken *token |
| 231 |
); |
| 232 |
[eventremove] HRESULT VolumeChanged([in] EventRegistrationToken token); |
| 233 |
[deprecated("Use PlaybackSession.SeekCompleted", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 234 |
[eventadd] HRESULT SeekCompleted( |
| 235 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, IInspectable *> *value, |
| 236 |
[out, retval] EventRegistrationToken *token |
| 237 |
); |
| 238 |
[deprecated("Use PlaybackSession.SeekCompleted", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 239 |
[eventremove] HRESULT SeekCompleted([in] EventRegistrationToken token); |
| 240 |
[deprecated("Use PlaybackSession.BufferingStarted", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 241 |
[eventadd] HRESULT BufferingStarted( |
| 242 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, IInspectable *> *value, |
| 243 |
[out, retval] EventRegistrationToken *token |
| 244 |
); |
| 245 |
[deprecated("Use PlaybackSession.BufferingStarted", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 246 |
[eventremove] HRESULT BufferingStarted([in] EventRegistrationToken token); |
| 247 |
[deprecated("Use PlaybackSession.BufferingEnded", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 248 |
[eventadd] HRESULT BufferingEnded( |
| 249 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.Playback.MediaPlayer *, IInspectable *> *value, |
| 250 |
[out, retval] EventRegistrationToken *token |
| 251 |
); |
| 252 |
[deprecated("Use PlaybackSession.BufferingEnded", deprecate, Windows.Foundation.UniversalApiContract, 3.0)] |
| 253 |
[eventremove] HRESULT BufferingEnded([in] EventRegistrationToken token); |
| 254 |
HRESULT Play(); |
| 255 |
HRESULT Pause(); |
| 256 |
[deprecated("Use Source", deprecate, Windows.Foundation.UniversalApiContract, 2.0)] |
| 257 |
HRESULT SetUriSource([in] Windows.Foundation.Uri *value); |
| 258 |
} |
| 259 |
|
| 260 |
[ |
| 261 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 262 |
exclusiveto(Windows.Media.Playback.MediaPlayer), |
| 263 |
uuid(3c841218-2123-4fc5-9082-2f883f77bdf5) |
| 264 |
] |
| 265 |
interface IMediaPlayer2 : IInspectable |
| 266 |
{ |
| 267 |
[propget] HRESULT SystemMediaTransportControls([out, retval] Windows.Media.SystemMediaTransportControls **value); |
| 268 |
[propget] HRESULT AudioCategory([out, retval] Windows.Media.Playback.MediaPlayerAudioCategory *value); |
| 269 |
[propput] HRESULT AudioCategory([in] Windows.Media.Playback.MediaPlayerAudioCategory value); |
| 270 |
[propget] HRESULT AudioDeviceType([out, retval] Windows.Media.Playback.MediaPlayerAudioDeviceType *value); |
| 271 |
[propput] HRESULT AudioDeviceType([in] Windows.Media.Playback.MediaPlayerAudioDeviceType value); |
| 272 |
} |
| 273 |
|
| 274 |
[ |
| 275 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 276 |
exclusiveto(Windows.Media.Playback.MediaPlayerDataReceivedEventArgs), |
| 277 |
uuid(c75a9405-c801-412a-835b-83fc0e622a8e) |
| 278 |
] |
| 279 |
interface IMediaPlayerDataReceivedEventArgs : IInspectable |
| 280 |
{ |
| 281 |
[propget] HRESULT Data([out, retval] Windows.Foundation.Collections.ValueSet **value); |
| 282 |
} |
| 283 |
|
| 284 |
[ |
| 285 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 286 |
exclusiveto(Windows.Media.Playback.MediaPlayerFailedEventArgs), |
| 287 |
uuid(2744e9b9-a7e3-4f16-bac4-7914ebc08301) |
| 288 |
] |
| 289 |
interface IMediaPlayerFailedEventArgs : IInspectable |
| 290 |
{ |
| 291 |
[propget] HRESULT Error([out, retval] Windows.Media.Playback.MediaPlayerError *value); |
| 292 |
[propget] HRESULT ExtendedErrorCode([out, retval] HRESULT *value); |
| 293 |
[propget] HRESULT ErrorMessage([out, retval] HSTRING *value); |
| 294 |
} |
| 295 |
|
| 296 |
[ |
| 297 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 298 |
exclusiveto(Windows.Media.Playback.MediaPlayerRateChangedEventArgs), |
| 299 |
uuid(40600d58-3b61-4bb2-989f-fc65608b6cab) |
| 300 |
] |
| 301 |
interface IMediaPlayerRateChangedEventArgs : IInspectable |
| 302 |
{ |
| 303 |
[propget] HRESULT NewRate([out, retval] DOUBLE *value); |
| 304 |
} |
| 305 |
|
| 306 |
[ |
| 307 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 308 |
exclusiveto(Windows.Media.Playback.PlaybackMediaMarker), |
| 309 |
uuid(c4d22f5c-3c1c-4444-b6b9-778b0422d41a) |
| 310 |
] |
| 311 |
interface IPlaybackMediaMarker : IInspectable |
| 312 |
{ |
| 313 |
[propget] HRESULT Time([out, retval] Windows.Foundation.TimeSpan *value); |
| 314 |
[propget] HRESULT MediaMarkerType([out, retval] HSTRING *value); |
| 315 |
[propget] HRESULT Text([out, retval] HSTRING *value); |
| 316 |
} |
| 317 |
|
| 318 |
[ |
| 319 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 320 |
exclusiveto(Windows.Media.Playback.PlaybackMediaMarker), |
| 321 |
uuid(8c530a78-e0ae-4e1a-a8c8-e23f982a937b) |
| 322 |
] |
| 323 |
interface IPlaybackMediaMarkerFactory : IInspectable |
| 324 |
{ |
| 325 |
HRESULT CreateFromTime([in] Windows.Foundation.TimeSpan value, [out, retval] Windows.Media.Playback.PlaybackMediaMarker **marker); |
| 326 |
HRESULT Create([in] Windows.Foundation.TimeSpan value, [in] HSTRING media_market_type, [in] HSTRING text, [out, retval] Windows.Media.Playback.PlaybackMediaMarker **marker); |
| 327 |
} |
| 328 |
|
| 329 |
[ |
| 330 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 331 |
exclusiveto(Windows.Media.Playback.PlaybackMediaMarkerReachedEventArgs), |
| 332 |
uuid(578cd1b9-90e2-4e60-abc4-8740b01f6196) |
| 333 |
] |
| 334 |
interface IPlaybackMediaMarkerReachedEventArgs : IInspectable |
| 335 |
{ |
| 336 |
[propget] HRESULT PlaybackMediaMarker([out, retval] Windows.Media.Playback.PlaybackMediaMarker **value); |
| 337 |
} |
| 338 |
|
| 339 |
[ |
| 340 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 341 |
exclusiveto(Windows.Media.Playback.PlaybackMediaMarkerSequence), |
| 342 |
uuid(f2810cee-638b-46cf-8817-1d111fe9d8c4) |
| 343 |
] |
| 344 |
interface IPlaybackMediaMarkerSequence : IInspectable |
| 345 |
requires Windows.Foundation.Collections.IIterable<Windows.Media.Playback.PlaybackMediaMarker *> |
| 346 |
{ |
| 347 |
[propget] HRESULT Size([out, retval] UINT32 *value); |
| 348 |
HRESULT Insert([in] Windows.Media.Playback.PlaybackMediaMarker *value); |
| 349 |
HRESULT Clear(); |
| 350 |
} |
| 351 |
|
| 352 |
[ |
| 353 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 354 |
deprecated("Use MediaPlayer", deprecate, Windows.Foundation.UniversalApiContract, 4.0), |
| 355 |
marshaling_behavior(agile), |
| 356 |
static(Windows.Media.Playback.IBackgroundMediaPlayerStatics, Windows.Foundation.UniversalApiContract, 1.0), |
| 357 |
threading(both) |
| 358 |
] |
| 359 |
runtimeclass BackgroundMediaPlayer |
| 360 |
{ |
| 361 |
} |
| 362 |
|
| 363 |
[ |
| 364 |
activatable(Windows.Foundation.UniversalApiContract, 3.0), |
| 365 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 366 |
marshaling_behavior(agile), |
| 367 |
threading(both) |
| 368 |
] |
| 369 |
runtimeclass MediaPlayer |
| 370 |
{ |
| 371 |
[default] interface Windows.Media.Playback.IMediaPlayer; |
| 372 |
/* interface Windows.Media.Playback.IMediaPlayerSource; */ |
| 373 |
/* [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.Playback.IMediaPlayerSource2; */ |
| 374 |
/* [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.Playback.IMediaPlayer2; */ |
| 375 |
/* [contract(Windows.Foundation.UniversalApiContract, 2.0)] interface Windows.Media.Playback.IMediaPlayerEffects; */ |
| 376 |
[contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.Foundation.IClosable; |
| 377 |
/* [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.Media.Playback.IMediaPlayer3; */ |
| 378 |
/* [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.Media.Playback.IMediaPlayer4; */ |
| 379 |
/* [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.Media.Playback.IMediaPlayerEffects2; */ |
| 380 |
/* [contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.Media.Playback.IMediaPlayer5; */ |
| 381 |
/* [contract(Windows.Foundation.UniversalApiContract, 5.0)] interface Windows.Media.Playback.IMediaPlayer6; */ |
| 382 |
/* [contract(Windows.Foundation.UniversalApiContract, 6.0)] interface Windows.Media.Playback.IMediaPlayer7; */ |
| 383 |
} |
| 384 |
|
| 385 |
[ |
| 386 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 387 |
marshaling_behavior(agile) |
| 388 |
] |
| 389 |
runtimeclass MediaPlayerDataReceivedEventArgs |
| 390 |
{ |
| 391 |
[default] interface Windows.Media.Playback.IMediaPlayerDataReceivedEventArgs; |
| 392 |
} |
| 393 |
|
| 394 |
[ |
| 395 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 396 |
marshaling_behavior(agile) |
| 397 |
] |
| 398 |
runtimeclass MediaPlayerFailedEventArgs |
| 399 |
{ |
| 400 |
[default] interface Windows.Media.Playback.IMediaPlayerFailedEventArgs; |
| 401 |
} |
| 402 |
|
| 403 |
[ |
| 404 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 405 |
marshaling_behavior(agile) |
| 406 |
] |
| 407 |
runtimeclass MediaPlayerRateChangedEventArgs |
| 408 |
{ |
| 409 |
[default] interface Windows.Media.Playback.IMediaPlayerRateChangedEventArgs; |
| 410 |
} |
| 411 |
|
| 412 |
[ |
| 413 |
activatable(Windows.Media.Playback.IPlaybackMediaMarkerFactory, Windows.Foundation.UniversalApiContract, 1.0), |
| 414 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 415 |
marshaling_behavior(agile) |
| 416 |
] |
| 417 |
runtimeclass PlaybackMediaMarker |
| 418 |
{ |
| 419 |
[default] interface Windows.Media.Playback.IPlaybackMediaMarker; |
| 420 |
} |
| 421 |
|
| 422 |
[ |
| 423 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 424 |
marshaling_behavior(agile) |
| 425 |
] |
| 426 |
runtimeclass PlaybackMediaMarkerSequence |
| 427 |
{ |
| 428 |
[default] interface Windows.Media.Playback.IPlaybackMediaMarkerSequence; |
| 429 |
interface Windows.Foundation.Collections.IIterable<Windows.Media.Playback.PlaybackMediaMarker *>; |
| 430 |
} |
| 431 |
|
| 432 |
[ |
| 433 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 434 |
marshaling_behavior(agile) |
| 435 |
] |
| 436 |
runtimeclass PlaybackMediaMarkerReachedEventArgs |
| 437 |
{ |
| 438 |
[default] interface Windows.Media.Playback.IPlaybackMediaMarkerReachedEventArgs; |
| 439 |
} |
| 440 |
} |