ohos-media-sys 0.1.0

Raw Bindings to the media framework on OpenHarmony
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
// automatically generated by rust-bindgen 0.71.1

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(deprecated)]
#[allow(unused_imports)]
use crate::averrors::OH_AVErrCode;
#[cfg(feature = "api-12")]
use crate::avformat::OH_AVFormat;

#[repr(C)]
pub struct OH_AVPlayer {
    _unused: [u8; 0],
}
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
impl AVPlayerState {
    pub const AV_IDLE: AVPlayerState = AVPlayerState(0);
    pub const AV_INITIALIZED: AVPlayerState = AVPlayerState(1);
    pub const AV_PREPARED: AVPlayerState = AVPlayerState(2);
    pub const AV_PLAYING: AVPlayerState = AVPlayerState(3);
    pub const AV_PAUSED: AVPlayerState = AVPlayerState(4);
    pub const AV_STOPPED: AVPlayerState = AVPlayerState(5);
    pub const AV_COMPLETED: AVPlayerState = AVPlayerState(6);
    pub const AV_RELEASED: AVPlayerState = AVPlayerState(7);
    pub const AV_ERROR: AVPlayerState = AVPlayerState(8);
}
#[repr(transparent)]
/// Player States
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
///
/// Available since API-level: 11
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct AVPlayerState(pub ::core::ffi::c_uint);
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
impl AVPlayerSeekMode {
    pub const AV_SEEK_NEXT_SYNC: AVPlayerSeekMode = AVPlayerSeekMode(0);
    pub const AV_SEEK_PREVIOUS_SYNC: AVPlayerSeekMode = AVPlayerSeekMode(1);
    /// Sync to frames closest to the time point.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub const AV_SEEK_CLOSEST: AVPlayerSeekMode = AVPlayerSeekMode(2);
}
#[repr(transparent)]
/// Player Seek Mode
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
///
/// Available since API-level: 11
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct AVPlayerSeekMode(pub ::core::ffi::c_uint);
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
impl AVPlaybackSpeed {
    pub const AV_SPEED_FORWARD_0_75_X: AVPlaybackSpeed = AVPlaybackSpeed(0);
    pub const AV_SPEED_FORWARD_1_00_X: AVPlaybackSpeed = AVPlaybackSpeed(1);
    pub const AV_SPEED_FORWARD_1_25_X: AVPlaybackSpeed = AVPlaybackSpeed(2);
    pub const AV_SPEED_FORWARD_1_75_X: AVPlaybackSpeed = AVPlaybackSpeed(3);
    pub const AV_SPEED_FORWARD_2_00_X: AVPlaybackSpeed = AVPlaybackSpeed(4);
    /// Video playback at 0.5x normal speed.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub const AV_SPEED_FORWARD_0_50_X: AVPlaybackSpeed = AVPlaybackSpeed(5);
    /// Video playback at 1.5x normal speed.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub const AV_SPEED_FORWARD_1_50_X: AVPlaybackSpeed = AVPlaybackSpeed(6);
    /// Video playback at 3.0x normal speed.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub const AV_SPEED_FORWARD_3_00_X: AVPlaybackSpeed = AVPlaybackSpeed(7);
    /// Video playback at 0.25x normal speed.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub const AV_SPEED_FORWARD_0_25_X: AVPlaybackSpeed = AVPlaybackSpeed(8);
    /// Video playback at 0.125x normal speed.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 13
    #[cfg(feature = "api-13")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
    pub const AV_SPEED_FORWARD_0_125_X: AVPlaybackSpeed = AVPlaybackSpeed(9);
}
#[repr(transparent)]
/// Playback Speed
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
///
/// Available since API-level: 11
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct AVPlaybackSpeed(pub ::core::ffi::c_uint);
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
impl AVPlayerOnInfoType {
    pub const AV_INFO_TYPE_SEEKDONE: AVPlayerOnInfoType = AVPlayerOnInfoType(0);
    pub const AV_INFO_TYPE_SPEEDDONE: AVPlayerOnInfoType = AVPlayerOnInfoType(1);
    pub const AV_INFO_TYPE_BITRATEDONE: AVPlayerOnInfoType = AVPlayerOnInfoType(2);
    pub const AV_INFO_TYPE_EOS: AVPlayerOnInfoType = AVPlayerOnInfoType(3);
    pub const AV_INFO_TYPE_STATE_CHANGE: AVPlayerOnInfoType = AVPlayerOnInfoType(4);
    pub const AV_INFO_TYPE_POSITION_UPDATE: AVPlayerOnInfoType = AVPlayerOnInfoType(5);
    pub const AV_INFO_TYPE_MESSAGE: AVPlayerOnInfoType = AVPlayerOnInfoType(6);
    pub const AV_INFO_TYPE_VOLUME_CHANGE: AVPlayerOnInfoType = AVPlayerOnInfoType(7);
    pub const AV_INFO_TYPE_RESOLUTION_CHANGE: AVPlayerOnInfoType = AVPlayerOnInfoType(8);
    pub const AV_INFO_TYPE_BUFFERING_UPDATE: AVPlayerOnInfoType = AVPlayerOnInfoType(9);
    pub const AV_INFO_TYPE_BITRATE_COLLECT: AVPlayerOnInfoType = AVPlayerOnInfoType(10);
    pub const AV_INFO_TYPE_INTERRUPT_EVENT: AVPlayerOnInfoType = AVPlayerOnInfoType(11);
    pub const AV_INFO_TYPE_DURATION_UPDATE: AVPlayerOnInfoType = AVPlayerOnInfoType(12);
    pub const AV_INFO_TYPE_IS_LIVE_STREAM: AVPlayerOnInfoType = AVPlayerOnInfoType(13);
    pub const AV_INFO_TYPE_TRACKCHANGE: AVPlayerOnInfoType = AVPlayerOnInfoType(14);
    pub const AV_INFO_TYPE_TRACK_INFO_UPDATE: AVPlayerOnInfoType = AVPlayerOnInfoType(15);
    pub const AV_INFO_TYPE_SUBTITLE_UPDATE: AVPlayerOnInfoType = AVPlayerOnInfoType(16);
    /// Return the reason when the audio output device changes. When this info is reported, the extra param of
    /// [`OH_AVPlayerOnInfo`] is the same as [`OH_AudioStream_DeviceChangeReason`] in audio framework.
    pub const AV_INFO_TYPE_AUDIO_OUTPUT_DEVICE_CHANGE: AVPlayerOnInfoType = AVPlayerOnInfoType(17);
    /// Event type indicating playback rate configuration completed.
    ///
    /// Triggered when playback rate are successfully applied,
    /// notifying the application of the actual effective value.
    /// Use defined key [`OH_PLAYER_PLAYBACK_RATE`] to retrieve value from the event data.
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub const AV_INFO_TYPE_PLAYBACK_RATE_DONE: AVPlayerOnInfoType = AVPlayerOnInfoType(18);
}
#[repr(transparent)]
/// Player OnInfo Type
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
///
/// Available since API-level: 11
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct AVPlayerOnInfoType(pub ::core::ffi::c_uint);
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
impl AVPlayerBufferingType {
    /// Indicates the buffer to start buffering.
    pub const AVPLAYER_BUFFERING_START: AVPlayerBufferingType = AVPlayerBufferingType(1);
    /// Indicates the buffer to end buffering and start playback.
    pub const AVPLAYER_BUFFERING_END: AVPlayerBufferingType = AVPlayerBufferingType(2);
    /// Indicates the current buffering percentage of the buffer.
    pub const AVPLAYER_BUFFERING_PERCENT: AVPlayerBufferingType = AVPlayerBufferingType(3);
    /// Indicates how long the buffer cache data can be played.
    pub const AVPLAYER_BUFFERING_CACHED_DURATION: AVPlayerBufferingType = AVPlayerBufferingType(4);
}
#[repr(transparent)]
/// Player Buffering Type
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
///
/// Available since API-level: 12
///
/// Version: 1.0
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct AVPlayerBufferingType(pub ::core::ffi::c_uint);
/// Called when a player message or alarm is received.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
/// # Arguments
///
/// * `player` - The pointer to an OH_AVPlayer instance.
///
/// * `type` - Indicates the information type. For details, see [`AVPlayerOnInfoType`].
///
/// * `extra` - Indicates other information, for example, the start time position of a playing file.
///
/// Available since API-level: 11
///
/// **Deprecated** since 12
/// [`OH_AVPlayerOnInfoCallback`]
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[deprecated(since = "12")]
pub type OH_AVPlayerOnInfo = ::core::option::Option<
    unsafe extern "C" fn(player: *mut OH_AVPlayer, type_: AVPlayerOnInfoType, extra: i32),
>;
/// Called when a player info event is received.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
/// # Arguments
///
/// * `player` - The pointer to an OH_AVPlayer instance.
///
/// * `type` - Indicates the information type. For details, see [`AVPlayerOnInfoType`].
///
/// * `infoBody` - Indicates the information parameters, only valid in callback function.
///
/// * `userData` - Pointer to user specific data.
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub type OH_AVPlayerOnInfoCallback = ::core::option::Option<
    unsafe extern "C" fn(
        player: *mut OH_AVPlayer,
        type_: AVPlayerOnInfoType,
        infoBody: *mut OH_AVFormat,
        userData: *mut ::core::ffi::c_void,
    ),
>;
/// Called when an error occurred for versions above api9
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
/// # Arguments
///
/// * `player` - The pointer to an OH_AVPlayer instance.
///
/// * `errorCode` - Error code.
///
/// * `errorMsg` - Error message.
///
/// Available since API-level: 11
///
/// **Deprecated** since 12
/// [`OH_AVPlayerOnInfoCallback`] [`OH_AVPlayerOnError`]
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[deprecated(since = "12")]
pub type OH_AVPlayerOnError = ::core::option::Option<
    unsafe extern "C" fn(
        player: *mut OH_AVPlayer,
        errorCode: i32,
        errorMsg: *const ::core::ffi::c_char,
    ),
>;
/// Called when an error occurred.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
/// # Arguments
///
/// * `player` - The pointer to an OH_AVPlayer instance.
///
/// * `errorCode` - Error code.
///
/// * `errorMsg` - Error message, only valid in callback function.
///
/// * `userData` - Pointer to user specific data.
///
/// Available since API-level: 12
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub type OH_AVPlayerOnErrorCallback = ::core::option::Option<
    unsafe extern "C" fn(
        player: *mut OH_AVPlayer,
        errorCode: i32,
        errorMsg: *const ::core::ffi::c_char,
        userData: *mut ::core::ffi::c_void,
    ),
>;
/// A collection of all callback function pointers in OH_AVPlayer. Register an instance of this
/// structure to the OH_AVPlayer instance, and process the information reported through the callback to ensure the
/// normal operation of OH_AVPlayer.
///
/// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
/// # Arguments
///
/// * `onInfo` - Monitor OH_AVPlayer operation information, refer to [`OH_AVPlayerOnInfo`]
///
/// * `onError` - Monitor OH_AVPlayer operation errors, refer to [`OH_AVPlayerOnError`]
///
/// Available since API-level: 11
///
/// **Deprecated** since 12
/// [`OH_AVPlayerOnInfoCallback`] [`OH_AVPlayerOnErrorCallback`]
///
/// Version: 1.0
#[cfg(feature = "api-11")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
#[deprecated(since = "12")]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct AVPlayerCallback {
    pub onInfo: OH_AVPlayerOnInfo,
    pub onError: OH_AVPlayerOnError,
}
extern "C" {
    /// Key to get state, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_STATE: *const ::core::ffi::c_char;
    /// Key to get state change reason, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_STATE_CHANGE_REASON: *const ::core::ffi::c_char;
    /// Key to get volume, value type is float.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_VOLUME: *const ::core::ffi::c_char;
    /// Key to get bitrate count, value type is uint32_t array.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_BITRATE_ARRAY: *const ::core::ffi::c_char;
    /// Key to get audio interrupt type, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_AUDIO_INTERRUPT_TYPE: *const ::core::ffi::c_char;
    /// Key to get audio interrupt force, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_AUDIO_INTERRUPT_FORCE: *const ::core::ffi::c_char;
    /// Key to get audio interrupt hint, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_AUDIO_INTERRUPT_HINT: *const ::core::ffi::c_char;
    /// Key to get audio device change reason, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_AUDIO_DEVICE_CHANGE_REASON: *const ::core::ffi::c_char;
    /// Key to get buffering type, value type is AVPlayerBufferingType.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_BUFFERING_TYPE: *const ::core::ffi::c_char;
    /// Key to get buffering value, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    ///
    /// Version: 1.0
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_BUFFERING_VALUE: *const ::core::ffi::c_char;
    /// Key to get seek position, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_SEEK_POSITION: *const ::core::ffi::c_char;
    /// Key to get playback speed, value type is AVPlaybackSpeed.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_PLAYBACK_SPEED: *const ::core::ffi::c_char;
    /// Key for retrieving effective playback rate, the value type is float.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 20
    #[cfg(feature = "api-20")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-20")))]
    pub static mut OH_PLAYER_PLAYBACK_RATE: *const ::core::ffi::c_char;
    /// Key to get bitrate, value type is uint32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_BITRATE: *const ::core::ffi::c_char;
    /// Key to get current position, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_CURRENT_POSITION: *const ::core::ffi::c_char;
    /// Key to get duration, value type is int64_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_DURATION: *const ::core::ffi::c_char;
    /// Key to get video width, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_VIDEO_WIDTH: *const ::core::ffi::c_char;
    /// Key to get video height, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_VIDEO_HEIGHT: *const ::core::ffi::c_char;
    /// Key to get message type, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_MESSAGE_TYPE: *const ::core::ffi::c_char;
    /// Key to get is live stream, value type is int32_t.
    ///
    /// Required System Capabilities: SystemCapability.Multimedia.Media.AVPlayer
    ///
    /// Available since API-level: 12
    #[cfg(feature = "api-12")]
    #[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
    pub static mut OH_PLAYER_IS_LIVE_STREAM: *const ::core::ffi::c_char;
}