| 1 |
/* |
| 2 |
* Copyright 2021 Paul Gofman for CodeWeavers |
| 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 makedep header install winmd |
| 21 |
#pragma winrt ns_prefix |
| 22 |
#endif |
| 23 |
|
| 24 |
import "inspectable.idl"; |
| 25 |
import "windows.foundation.idl"; |
| 26 |
import "windows.storage.idl"; |
| 27 |
import "windows.storage.streams.idl"; |
| 28 |
|
| 29 |
namespace Windows.Media |
| 30 |
{ |
| 31 |
typedef enum AudioProcessing AudioProcessing; |
| 32 |
typedef enum MediaPlaybackAutoRepeatMode MediaPlaybackAutoRepeatMode; |
| 33 |
typedef enum MediaPlaybackStatus MediaPlaybackStatus; |
| 34 |
typedef enum MediaPlaybackType MediaPlaybackType; |
| 35 |
typedef enum SoundLevel SoundLevel; |
| 36 |
typedef enum SystemMediaTransportControlsButton SystemMediaTransportControlsButton; |
| 37 |
typedef enum SystemMediaTransportControlsProperty SystemMediaTransportControlsProperty; |
| 38 |
|
| 39 |
interface IAutoRepeatModeChangeRequestedEventArgs; |
| 40 |
interface IImageDisplayProperties; |
| 41 |
interface IMediaControl; |
| 42 |
interface IMediaMarker; |
| 43 |
interface IMusicDisplayProperties; |
| 44 |
interface IMusicDisplayProperties2; |
| 45 |
interface IMusicDisplayProperties3; |
| 46 |
interface IPlaybackPositionChangeRequestedEventArgs; |
| 47 |
interface IPlaybackRateChangeRequestedEventArgs; |
| 48 |
interface IShuffleEnabledChangeRequestedEventArgs; |
| 49 |
interface ISystemMediaTransportControls; |
| 50 |
interface ISystemMediaTransportControls2; |
| 51 |
interface ISystemMediaTransportControlsButtonPressedEventArgs; |
| 52 |
interface ISystemMediaTransportControlsDisplayUpdater; |
| 53 |
interface ISystemMediaTransportControlsPropertyChangedEventArgs; |
| 54 |
interface ISystemMediaTransportControlsStatics; |
| 55 |
interface ISystemMediaTransportControlsTimelineProperties; |
| 56 |
interface IVideoDisplayProperties; |
| 57 |
interface IVideoDisplayProperties2; |
| 58 |
|
| 59 |
runtimeclass AutoRepeatModeChangeRequestedEventArgs; |
| 60 |
runtimeclass ImageDisplayProperties; |
| 61 |
runtimeclass MusicDisplayProperties; |
| 62 |
runtimeclass PlaybackPositionChangeRequestedEventArgs; |
| 63 |
runtimeclass PlaybackRateChangeRequestedEventArgs; |
| 64 |
runtimeclass ShuffleEnabledChangeRequestedEventArgs; |
| 65 |
runtimeclass SystemMediaTransportControls; |
| 66 |
runtimeclass SystemMediaTransportControlsButtonPressedEventArgs; |
| 67 |
runtimeclass SystemMediaTransportControlsDisplayUpdater; |
| 68 |
runtimeclass SystemMediaTransportControlsPropertyChangedEventArgs; |
| 69 |
runtimeclass SystemMediaTransportControlsTimelineProperties; |
| 70 |
runtimeclass VideoDisplayProperties; |
| 71 |
|
| 72 |
declare |
| 73 |
{ |
| 74 |
interface Windows.Foundation.Collections.IIterable<Windows.Media.IMediaMarker*>; |
| 75 |
interface Windows.Foundation.Collections.IIterator<Windows.Media.IMediaMarker*>; |
| 76 |
interface Windows.Foundation.Collections.IVectorView<Windows.Media.IMediaMarker*>; |
| 77 |
interface Windows.Foundation.Collections.IVector<Windows.Media.IMediaMarker*>; |
| 78 |
interface Windows.Foundation.IReference<Windows.Media.MediaPlaybackAutoRepeatMode>; |
| 79 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls*, Windows.Media.AutoRepeatModeChangeRequestedEventArgs*>; |
| 80 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls*, Windows.Media.PlaybackPositionChangeRequestedEventArgs*>; |
| 81 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls*, Windows.Media.PlaybackRateChangeRequestedEventArgs*>; |
| 82 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls*, Windows.Media.ShuffleEnabledChangeRequestedEventArgs*>; |
| 83 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls*, Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs*>; |
| 84 |
interface Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls*, Windows.Media.SystemMediaTransportControlsPropertyChangedEventArgs*>; |
| 85 |
} |
| 86 |
|
| 87 |
[ |
| 88 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 89 |
] |
| 90 |
enum AudioProcessing |
| 91 |
{ |
| 92 |
Default = 0, |
| 93 |
Raw = 1, |
| 94 |
}; |
| 95 |
|
| 96 |
[ |
| 97 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 98 |
] |
| 99 |
enum MediaPlaybackAutoRepeatMode |
| 100 |
{ |
| 101 |
None = 0, |
| 102 |
Track = 1, |
| 103 |
List = 2, |
| 104 |
}; |
| 105 |
|
| 106 |
[ |
| 107 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 108 |
] |
| 109 |
enum MediaPlaybackStatus |
| 110 |
{ |
| 111 |
Closed = 0, |
| 112 |
Changing = 1, |
| 113 |
Stopped = 2, |
| 114 |
Playing = 3, |
| 115 |
Paused = 4, |
| 116 |
}; |
| 117 |
|
| 118 |
[ |
| 119 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 120 |
] |
| 121 |
enum MediaPlaybackType |
| 122 |
{ |
| 123 |
Unknown = 0, |
| 124 |
Music = 1, |
| 125 |
Video = 2, |
| 126 |
Image = 3, |
| 127 |
}; |
| 128 |
|
| 129 |
[ |
| 130 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 131 |
] |
| 132 |
enum SoundLevel |
| 133 |
{ |
| 134 |
Muted = 0, |
| 135 |
Low = 1, |
| 136 |
Full = 2, |
| 137 |
}; |
| 138 |
|
| 139 |
[ |
| 140 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 141 |
] |
| 142 |
enum SystemMediaTransportControlsButton |
| 143 |
{ |
| 144 |
Play = 0, |
| 145 |
Pause = 1, |
| 146 |
Stop = 2, |
| 147 |
Record = 3, |
| 148 |
FastForward = 4, |
| 149 |
Rewind = 5, |
| 150 |
Next = 6, |
| 151 |
Previous = 7, |
| 152 |
ChannelUp = 8, |
| 153 |
ChannelDown = 9, |
| 154 |
}; |
| 155 |
|
| 156 |
[ |
| 157 |
contract(Windows.Foundation.UniversalApiContract, 1.0) |
| 158 |
] |
| 159 |
enum SystemMediaTransportControlsProperty |
| 160 |
{ |
| 161 |
SoundLevel = 0, |
| 162 |
}; |
| 163 |
|
| 164 |
[ |
| 165 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 166 |
exclusiveto(Windows.Media.AutoRepeatModeChangeRequestedEventArgs), |
| 167 |
uuid(ea137efa-d852-438e-882b-c990109a78f4) |
| 168 |
] |
| 169 |
interface IAutoRepeatModeChangeRequestedEventArgs : IInspectable |
| 170 |
{ |
| 171 |
[propget] HRESULT RequestedAutoRepeatMode([out, retval] Windows.Media.MediaPlaybackAutoRepeatMode *value); |
| 172 |
} |
| 173 |
|
| 174 |
[ |
| 175 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 176 |
exclusiveto(Windows.Media.ImageDisplayProperties), |
| 177 |
uuid(cd0bc7ef-54e7-411f-9933-f0e98b0a96d2) |
| 178 |
] |
| 179 |
interface IImageDisplayProperties : IInspectable |
| 180 |
{ |
| 181 |
[propget] HRESULT Title([out, retval] HSTRING *value); |
| 182 |
[propput] HRESULT Title([in] HSTRING value); |
| 183 |
[propget] HRESULT Subtitle([out, retval] HSTRING *value); |
| 184 |
[propput] HRESULT Subtitle([in] HSTRING value); |
| 185 |
} |
| 186 |
|
| 187 |
[ |
| 188 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 189 |
uuid(1803def8-dca5-4b6f-9c20-e3d3c0643625) |
| 190 |
] |
| 191 |
interface IMediaMarker : IInspectable |
| 192 |
{ |
| 193 |
[propget] HRESULT Time([out, retval] Windows.Foundation.TimeSpan *value); |
| 194 |
[propget] HRESULT MediaMarkerType([out, retval] HSTRING *value); |
| 195 |
[propget] HRESULT Text([out, retval] HSTRING *value); |
| 196 |
} |
| 197 |
|
| 198 |
[ |
| 199 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 200 |
exclusiveto(Windows.Media.MusicDisplayProperties), |
| 201 |
uuid(6bbf0c59-d0a0-4d26-92a0-f978e1d18e7b) |
| 202 |
] |
| 203 |
interface IMusicDisplayProperties : IInspectable |
| 204 |
{ |
| 205 |
[propget] HRESULT Title([out, retval] HSTRING *value); |
| 206 |
[propput] HRESULT Title([in] HSTRING value); |
| 207 |
[propget] HRESULT AlbumArtist([out, retval] HSTRING *value); |
| 208 |
[propput] HRESULT AlbumArtist([in] HSTRING value); |
| 209 |
[propget] HRESULT Artist([out, retval] HSTRING *value); |
| 210 |
[propput] HRESULT Artist([in] HSTRING value); |
| 211 |
} |
| 212 |
|
| 213 |
[ |
| 214 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 215 |
exclusiveto(Windows.Media.MusicDisplayProperties), |
| 216 |
uuid(00368462-97d3-44b9-b00f-008afcefaf18) |
| 217 |
] |
| 218 |
interface IMusicDisplayProperties2 : IInspectable |
| 219 |
{ |
| 220 |
[propget] HRESULT AlbumTitle([out, retval] HSTRING *value); |
| 221 |
[propput] HRESULT AlbumTitle([in] HSTRING value); |
| 222 |
[propget] HRESULT TrackNumber([out, retval] UINT32 *value); |
| 223 |
[propput] HRESULT TrackNumber([in] UINT32 value); |
| 224 |
[propget] HRESULT Genres([out, retval] Windows.Foundation.Collections.IVector<HSTRING> **value); |
| 225 |
} |
| 226 |
|
| 227 |
[ |
| 228 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 229 |
exclusiveto(Windows.Media.PlaybackPositionChangeRequestedEventArgs), |
| 230 |
uuid(b4493f88-eb28-4961-9c14-335e44f3e125) |
| 231 |
] |
| 232 |
interface IPlaybackPositionChangeRequestedEventArgs : IInspectable |
| 233 |
{ |
| 234 |
[propget] HRESULT RequestedPlaybackPosition([out, retval] Windows.Foundation.TimeSpan *value); |
| 235 |
} |
| 236 |
|
| 237 |
[ |
| 238 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 239 |
exclusiveto(Windows.Media.PlaybackRateChangeRequestedEventArgs), |
| 240 |
uuid(2ce2c41f-3cd6-4f77-9ba7-eb27c26a2140) |
| 241 |
] |
| 242 |
interface IPlaybackRateChangeRequestedEventArgs : IInspectable |
| 243 |
{ |
| 244 |
[propget] HRESULT RequestedPlaybackRate([out, retval] DOUBLE *value); |
| 245 |
} |
| 246 |
|
| 247 |
[ |
| 248 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 249 |
exclusiveto(Windows.Media.ShuffleEnabledChangeRequestedEventArgs), |
| 250 |
uuid(49b593fe-4fd0-4666-a314-c0e01940d302) |
| 251 |
] |
| 252 |
interface IShuffleEnabledChangeRequestedEventArgs : IInspectable |
| 253 |
{ |
| 254 |
[propget] HRESULT RequestedShuffleEnabled([out, retval] boolean *value); |
| 255 |
} |
| 256 |
|
| 257 |
[ |
| 258 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 259 |
exclusiveto(Windows.Media.SystemMediaTransportControls), |
| 260 |
uuid(99fa3ff4-1742-42a6-902e-087d41f965ec) |
| 261 |
] |
| 262 |
interface ISystemMediaTransportControls : IInspectable |
| 263 |
{ |
| 264 |
[propget] HRESULT PlaybackStatus([out, retval] Windows.Media.MediaPlaybackStatus *value); |
| 265 |
[propput] HRESULT PlaybackStatus([in] Windows.Media.MediaPlaybackStatus value); |
| 266 |
[propget] HRESULT DisplayUpdater([out, retval] Windows.Media.SystemMediaTransportControlsDisplayUpdater **value); |
| 267 |
[propget] HRESULT SoundLevel([out, retval] Windows.Media.SoundLevel *value); |
| 268 |
[propget] HRESULT IsEnabled([out, retval] boolean *value); |
| 269 |
[propput] HRESULT IsEnabled([in] boolean value); |
| 270 |
[propget] HRESULT IsPlayEnabled([out, retval] boolean *value); |
| 271 |
[propput] HRESULT IsPlayEnabled([in] boolean value); |
| 272 |
[propget] HRESULT IsStopEnabled([out, retval] boolean *value); |
| 273 |
[propput] HRESULT IsStopEnabled([in] boolean value); |
| 274 |
[propget] HRESULT IsPauseEnabled([out, retval] boolean *value); |
| 275 |
[propput] HRESULT IsPauseEnabled([in] boolean value); |
| 276 |
[propget] HRESULT IsRecordEnabled([out, retval] boolean *value); |
| 277 |
[propput] HRESULT IsRecordEnabled([in] boolean value); |
| 278 |
[propget] HRESULT IsFastForwardEnabled([out, retval] boolean *value); |
| 279 |
[propput] HRESULT IsFastForwardEnabled([in] boolean value); |
| 280 |
[propget] HRESULT IsRewindEnabled([out, retval] boolean *value); |
| 281 |
[propput] HRESULT IsRewindEnabled([in] boolean value); |
| 282 |
[propget] HRESULT IsPreviousEnabled([out, retval] boolean *value); |
| 283 |
[propput] HRESULT IsPreviousEnabled([in] boolean value); |
| 284 |
[propget] HRESULT IsNextEnabled([out, retval] boolean *value); |
| 285 |
[propput] HRESULT IsNextEnabled([in] boolean value); |
| 286 |
[propget] HRESULT IsChannelUpEnabled([out, retval] boolean *value); |
| 287 |
[propput] HRESULT IsChannelUpEnabled([in] boolean value); |
| 288 |
[propget] HRESULT IsChannelDownEnabled([out, retval] boolean *value); |
| 289 |
[propput] HRESULT IsChannelDownEnabled([in] boolean value); |
| 290 |
[eventadd] HRESULT ButtonPressed( |
| 291 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls *, Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs *> *handler, |
| 292 |
[out, retval] EventRegistrationToken *token |
| 293 |
); |
| 294 |
[eventremove] HRESULT ButtonPressed([in] EventRegistrationToken token); |
| 295 |
[eventadd] HRESULT PropertyChanged( |
| 296 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls *, Windows.Media.SystemMediaTransportControlsPropertyChangedEventArgs *> *handler, |
| 297 |
[out, retval] EventRegistrationToken *token |
| 298 |
); |
| 299 |
[eventremove] HRESULT PropertyChanged([in] EventRegistrationToken token); |
| 300 |
} |
| 301 |
|
| 302 |
[ |
| 303 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 304 |
exclusiveto(Windows.Media.SystemMediaTransportControls), |
| 305 |
uuid(ea98d2f6-7f3c-4af2-a586-72889808efb1) |
| 306 |
] |
| 307 |
interface ISystemMediaTransportControls2 : IInspectable |
| 308 |
{ |
| 309 |
[propget] HRESULT AutoRepeatMode([out, retval] Windows.Media.MediaPlaybackAutoRepeatMode *value); |
| 310 |
[propput] HRESULT AutoRepeatMode([in] Windows.Media.MediaPlaybackAutoRepeatMode value); |
| 311 |
[propget] HRESULT ShuffleEnabled([out, retval] boolean *value); |
| 312 |
[propput] HRESULT ShuffleEnabled([in] boolean value); |
| 313 |
[propget] HRESULT PlaybackRate([out, retval] DOUBLE *value); |
| 314 |
[propput] HRESULT PlaybackRate([in] DOUBLE value); |
| 315 |
HRESULT UpdateTimelineProperties([in] Windows.Media.SystemMediaTransportControlsTimelineProperties *timeline_properties); |
| 316 |
[eventadd] HRESULT PlaybackPositionChangeRequested( |
| 317 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls *, Windows.Media.PlaybackPositionChangeRequestedEventArgs *> *handler, |
| 318 |
[out, retval] EventRegistrationToken *token); |
| 319 |
[eventremove] HRESULT PlaybackPositionChangeRequested([in] EventRegistrationToken token); |
| 320 |
[eventadd] HRESULT PlaybackRateChangeRequested( |
| 321 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls *, Windows.Media.PlaybackRateChangeRequestedEventArgs *> *handler, |
| 322 |
[out, retval] EventRegistrationToken *token); |
| 323 |
[eventremove] HRESULT PlaybackRateChangeRequested([in] EventRegistrationToken token); |
| 324 |
[eventadd] HRESULT ShuffleEnabledChangeRequested( |
| 325 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls *, Windows.Media.ShuffleEnabledChangeRequestedEventArgs *> *handler, |
| 326 |
[out, retval] EventRegistrationToken *token); |
| 327 |
[eventremove] HRESULT ShuffleEnabledChangeRequested([in] EventRegistrationToken token); |
| 328 |
[eventadd] HRESULT AutoRepeatModeChangeRequested( |
| 329 |
[in] Windows.Foundation.TypedEventHandler<Windows.Media.SystemMediaTransportControls *, Windows.Media.AutoRepeatModeChangeRequestedEventArgs *> *handler, |
| 330 |
[out, retval] EventRegistrationToken *token); |
| 331 |
[eventremove] HRESULT AutoRepeatModeChangeRequested([in] EventRegistrationToken token); |
| 332 |
} |
| 333 |
|
| 334 |
[ |
| 335 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 336 |
exclusiveto(Windows.Media.SystemMediaTransportControlsDisplayUpdater), |
| 337 |
uuid(8abbc53e-fa55-4ecf-ad8e-c984e5dd1550) |
| 338 |
] |
| 339 |
interface ISystemMediaTransportControlsDisplayUpdater : IInspectable |
| 340 |
{ |
| 341 |
[propget] HRESULT Type([out, retval] Windows.Media.MediaPlaybackType *value); |
| 342 |
[propput] HRESULT Type([in] Windows.Media.MediaPlaybackType value); |
| 343 |
[propget] HRESULT AppMediaId([out, retval] HSTRING *value); |
| 344 |
[propput] HRESULT AppMediaId([in] HSTRING value); |
| 345 |
[propget] HRESULT Thumbnail([out, retval] Windows.Storage.Streams.RandomAccessStreamReference **value); |
| 346 |
[propput] HRESULT Thumbnail([in] Windows.Storage.Streams.RandomAccessStreamReference *value); |
| 347 |
[propget] HRESULT MusicProperties([out, retval] Windows.Media.MusicDisplayProperties **value); |
| 348 |
[propget] HRESULT VideoProperties([out, retval] Windows.Media.VideoDisplayProperties **value); |
| 349 |
[propget] HRESULT ImageProperties([out, retval] Windows.Media.ImageDisplayProperties **value); |
| 350 |
HRESULT CopyFromFileAsync( |
| 351 |
[in] Windows.Media.MediaPlaybackType type, [in] Windows.Storage.StorageFile *source, |
| 352 |
[out, retval] Windows.Foundation.IAsyncOperation<boolean> **operation |
| 353 |
); |
| 354 |
HRESULT ClearAll(); |
| 355 |
HRESULT Update(); |
| 356 |
} |
| 357 |
|
| 358 |
[ |
| 359 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 360 |
exclusiveto(Windows.Media.SystemMediaTransportControlsButtonPressedEventArgs), |
| 361 |
uuid(b7f47116-a56f-4dc8-9e11-92031f4a87c2) |
| 362 |
] |
| 363 |
interface ISystemMediaTransportControlsButtonPressedEventArgs : IInspectable |
| 364 |
{ |
| 365 |
[propget] HRESULT Button([out, retval] Windows.Media.SystemMediaTransportControlsButton *value); |
| 366 |
} |
| 367 |
|
| 368 |
[ |
| 369 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 370 |
exclusiveto(Windows.Media.SystemMediaTransportControlsPropertyChangedEventArgs), |
| 371 |
uuid(d0ca0936-339b-4cb3-8eeb-737607f56e08) |
| 372 |
] |
| 373 |
interface ISystemMediaTransportControlsPropertyChangedEventArgs : IInspectable |
| 374 |
{ |
| 375 |
[propget] HRESULT Property([out, retval] Windows.Media.SystemMediaTransportControlsProperty *value); |
| 376 |
} |
| 377 |
|
| 378 |
[ |
| 379 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 380 |
exclusiveto(Windows.Media.SystemMediaTransportControls), |
| 381 |
uuid(43ba380a-eca4-4832-91ab-d415fae484c6) |
| 382 |
] |
| 383 |
interface ISystemMediaTransportControlsStatics : IInspectable |
| 384 |
{ |
| 385 |
HRESULT GetForCurrentView([out, retval] Windows.Media.SystemMediaTransportControls **controls); |
| 386 |
} |
| 387 |
|
| 388 |
[ |
| 389 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 390 |
exclusiveto(Windows.Media.SystemMediaTransportControlsTimelineProperties), |
| 391 |
uuid(5125316a-c3a2-475b-8507-93534dc88f15) |
| 392 |
] |
| 393 |
interface ISystemMediaTransportControlsTimelineProperties : IInspectable |
| 394 |
{ |
| 395 |
[propget] HRESULT StartTime([out, retval] Windows.Foundation.TimeSpan *value); |
| 396 |
[propput] HRESULT StartTime([in] Windows.Foundation.TimeSpan value); |
| 397 |
[propget] HRESULT EndTime([out, retval] Windows.Foundation.TimeSpan *value); |
| 398 |
[propput] HRESULT EndTime([in] Windows.Foundation.TimeSpan value); |
| 399 |
[propget] HRESULT MinSeekTime([out, retval] Windows.Foundation.TimeSpan *value); |
| 400 |
[propput] HRESULT MinSeekTime([in] Windows.Foundation.TimeSpan value); |
| 401 |
[propget] HRESULT MaxSeekTime([out, retval] Windows.Foundation.TimeSpan *value); |
| 402 |
[propput] HRESULT MaxSeekTime([in] Windows.Foundation.TimeSpan value); |
| 403 |
[propget] HRESULT Position([out, retval] Windows.Foundation.TimeSpan *value); |
| 404 |
[propput] HRESULT Position([in] Windows.Foundation.TimeSpan value); |
| 405 |
} |
| 406 |
|
| 407 |
[ |
| 408 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 409 |
exclusiveto(Windows.Media.VideoDisplayProperties), |
| 410 |
uuid(5609fdb1-5d2d-4872-8170-45dee5bc2f5c) |
| 411 |
] |
| 412 |
interface IVideoDisplayProperties : IInspectable |
| 413 |
{ |
| 414 |
[propget] HRESULT Title([out, retval] HSTRING *value); |
| 415 |
[propput] HRESULT Title([in] HSTRING value); |
| 416 |
[propget] HRESULT Subtitle([out, retval] HSTRING *value); |
| 417 |
[propput] HRESULT Subtitle([in] HSTRING value); |
| 418 |
} |
| 419 |
|
| 420 |
[ |
| 421 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 422 |
marshaling_behavior(agile) |
| 423 |
] |
| 424 |
runtimeclass AutoRepeatModeChangeRequestedEventArgs |
| 425 |
{ |
| 426 |
[default] interface Windows.Media.IAutoRepeatModeChangeRequestedEventArgs; |
| 427 |
} |
| 428 |
|
| 429 |
[ |
| 430 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 431 |
marshaling_behavior(agile), |
| 432 |
threading(both) |
| 433 |
] |
| 434 |
runtimeclass ImageDisplayProperties |
| 435 |
{ |
| 436 |
[default] interface Windows.Media.IImageDisplayProperties; |
| 437 |
} |
| 438 |
|
| 439 |
[ |
| 440 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 441 |
marshaling_behavior(agile), |
| 442 |
threading(both) |
| 443 |
] |
| 444 |
runtimeclass MusicDisplayProperties |
| 445 |
{ |
| 446 |
[default] interface Windows.Media.IMusicDisplayProperties; |
| 447 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.IMusicDisplayProperties2; |
| 448 |
/* [contract(Windows.Foundation.UniversalApiContract, 3.0)] interface Windows.Media.IMusicDisplayProperties3; */ |
| 449 |
} |
| 450 |
|
| 451 |
[ |
| 452 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 453 |
marshaling_behavior(agile) |
| 454 |
] |
| 455 |
runtimeclass PlaybackPositionChangeRequestedEventArgs |
| 456 |
{ |
| 457 |
[default] interface Windows.Media.IPlaybackPositionChangeRequestedEventArgs; |
| 458 |
} |
| 459 |
|
| 460 |
[ |
| 461 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 462 |
marshaling_behavior(agile) |
| 463 |
] |
| 464 |
runtimeclass PlaybackRateChangeRequestedEventArgs |
| 465 |
{ |
| 466 |
[default] interface Windows.Media.IPlaybackRateChangeRequestedEventArgs; |
| 467 |
} |
| 468 |
|
| 469 |
[ |
| 470 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 471 |
marshaling_behavior(agile) |
| 472 |
] |
| 473 |
runtimeclass ShuffleEnabledChangeRequestedEventArgs |
| 474 |
{ |
| 475 |
[default] interface Windows.Media.IShuffleEnabledChangeRequestedEventArgs; |
| 476 |
} |
| 477 |
|
| 478 |
[ |
| 479 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 480 |
marshaling_behavior(agile), |
| 481 |
static(Windows.Media.ISystemMediaTransportControlsStatics, Windows.Foundation.UniversalApiContract, 1.0), |
| 482 |
threading(mta) |
| 483 |
] |
| 484 |
runtimeclass SystemMediaTransportControls |
| 485 |
{ |
| 486 |
[default] interface Windows.Media.ISystemMediaTransportControls; |
| 487 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.ISystemMediaTransportControls2; |
| 488 |
} |
| 489 |
|
| 490 |
[ |
| 491 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 492 |
marshaling_behavior(agile) |
| 493 |
] |
| 494 |
runtimeclass SystemMediaTransportControlsButtonPressedEventArgs |
| 495 |
{ |
| 496 |
[default] interface Windows.Media.ISystemMediaTransportControlsButtonPressedEventArgs; |
| 497 |
} |
| 498 |
|
| 499 |
[ |
| 500 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 501 |
marshaling_behavior(agile), |
| 502 |
threading(both) |
| 503 |
] |
| 504 |
runtimeclass SystemMediaTransportControlsDisplayUpdater |
| 505 |
{ |
| 506 |
[default] interface Windows.Media.ISystemMediaTransportControlsDisplayUpdater; |
| 507 |
} |
| 508 |
|
| 509 |
[ |
| 510 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 511 |
marshaling_behavior(agile) |
| 512 |
] |
| 513 |
runtimeclass SystemMediaTransportControlsPropertyChangedEventArgs |
| 514 |
{ |
| 515 |
[default] interface Windows.Media.ISystemMediaTransportControlsPropertyChangedEventArgs; |
| 516 |
} |
| 517 |
|
| 518 |
[ |
| 519 |
activatable(Windows.Foundation.UniversalApiContract, 1.0), |
| 520 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 521 |
marshaling_behavior(agile), |
| 522 |
threading(both) |
| 523 |
] |
| 524 |
runtimeclass SystemMediaTransportControlsTimelineProperties |
| 525 |
{ |
| 526 |
[default] interface Windows.Media.ISystemMediaTransportControlsTimelineProperties; |
| 527 |
} |
| 528 |
|
| 529 |
[ |
| 530 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 531 |
marshaling_behavior(agile), |
| 532 |
threading(both) |
| 533 |
] |
| 534 |
runtimeclass VideoDisplayProperties |
| 535 |
{ |
| 536 |
[default] interface Windows.Media.IVideoDisplayProperties; |
| 537 |
/* [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Media.IVideoDisplayProperties2; */ |
| 538 |
} |
| 539 |
} |