161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * Seek mode.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @enum { number }
2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2661847f8eSopenharmony_ci * @since 8
2761847f8eSopenharmony_ci */
2861847f8eSopenharmony_ci/**
2961847f8eSopenharmony_ci * Seek mode.
3061847f8eSopenharmony_ci *
3161847f8eSopenharmony_ci * @enum { number }
3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3361847f8eSopenharmony_ci * @crossplatform
3461847f8eSopenharmony_ci * @since 10
3561847f8eSopenharmony_ci */
3661847f8eSopenharmony_ci/**
3761847f8eSopenharmony_ci * Seek mode.
3861847f8eSopenharmony_ci *
3961847f8eSopenharmony_ci * @enum { number }
4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4161847f8eSopenharmony_ci * @crossplatform
4261847f8eSopenharmony_ci * @atomicservice
4361847f8eSopenharmony_ci * @since 11
4461847f8eSopenharmony_ci */
4561847f8eSopenharmony_cideclare enum SeekMode {
4661847f8eSopenharmony_ci  /**
4761847f8eSopenharmony_ci   * Sync to keyframes before the time point.
4861847f8eSopenharmony_ci   *
4961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5061847f8eSopenharmony_ci   * @since 8
5161847f8eSopenharmony_ci   */
5261847f8eSopenharmony_ci  /**
5361847f8eSopenharmony_ci   * Sync to keyframes before the time point.
5461847f8eSopenharmony_ci   *
5561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
5661847f8eSopenharmony_ci   * @crossplatform
5761847f8eSopenharmony_ci   * @since 10
5861847f8eSopenharmony_ci   */
5961847f8eSopenharmony_ci  /**
6061847f8eSopenharmony_ci   * Sync to keyframes before the time point.
6161847f8eSopenharmony_ci   *
6261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
6361847f8eSopenharmony_ci   * @crossplatform
6461847f8eSopenharmony_ci   * @atomicservice
6561847f8eSopenharmony_ci   * @since 11
6661847f8eSopenharmony_ci   */
6761847f8eSopenharmony_ci  PreviousKeyframe,
6861847f8eSopenharmony_ci
6961847f8eSopenharmony_ci  /**
7061847f8eSopenharmony_ci   * Sync to keyframes after the time point.
7161847f8eSopenharmony_ci   *
7261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7361847f8eSopenharmony_ci   * @since 8
7461847f8eSopenharmony_ci   */
7561847f8eSopenharmony_ci  /**
7661847f8eSopenharmony_ci   * Sync to keyframes after the time point.
7761847f8eSopenharmony_ci   *
7861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
7961847f8eSopenharmony_ci   * @crossplatform
8061847f8eSopenharmony_ci   * @since 10
8161847f8eSopenharmony_ci   */
8261847f8eSopenharmony_ci  /**
8361847f8eSopenharmony_ci   * Sync to keyframes after the time point.
8461847f8eSopenharmony_ci   *
8561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
8661847f8eSopenharmony_ci   * @crossplatform
8761847f8eSopenharmony_ci   * @atomicservice
8861847f8eSopenharmony_ci   * @since 11
8961847f8eSopenharmony_ci   */
9061847f8eSopenharmony_ci  NextKeyframe,
9161847f8eSopenharmony_ci
9261847f8eSopenharmony_ci  /**
9361847f8eSopenharmony_ci   * Sync to closest keyframes.
9461847f8eSopenharmony_ci   *
9561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
9661847f8eSopenharmony_ci   * @since 8
9761847f8eSopenharmony_ci   */
9861847f8eSopenharmony_ci  /**
9961847f8eSopenharmony_ci   * Sync to closest keyframes.
10061847f8eSopenharmony_ci   *
10161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10261847f8eSopenharmony_ci   * @crossplatform
10361847f8eSopenharmony_ci   * @since 10
10461847f8eSopenharmony_ci   */
10561847f8eSopenharmony_ci  /**
10661847f8eSopenharmony_ci   * Sync to closest keyframes.
10761847f8eSopenharmony_ci   *
10861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10961847f8eSopenharmony_ci   * @crossplatform
11061847f8eSopenharmony_ci   * @atomicservice
11161847f8eSopenharmony_ci   * @since 11
11261847f8eSopenharmony_ci   */
11361847f8eSopenharmony_ci  ClosestKeyframe,
11461847f8eSopenharmony_ci
11561847f8eSopenharmony_ci  /**
11661847f8eSopenharmony_ci   * Seek to frames closest the time point.
11761847f8eSopenharmony_ci   *
11861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11961847f8eSopenharmony_ci   * @since 8
12061847f8eSopenharmony_ci   */
12161847f8eSopenharmony_ci  /**
12261847f8eSopenharmony_ci   * Seek to frames closest the time point.
12361847f8eSopenharmony_ci   *
12461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12561847f8eSopenharmony_ci   * @crossplatform
12661847f8eSopenharmony_ci   * @since 10
12761847f8eSopenharmony_ci   */
12861847f8eSopenharmony_ci  /**
12961847f8eSopenharmony_ci   * Seek to frames closest the time point.
13061847f8eSopenharmony_ci   *
13161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13261847f8eSopenharmony_ci   * @crossplatform
13361847f8eSopenharmony_ci   * @atomicservice
13461847f8eSopenharmony_ci   * @since 11
13561847f8eSopenharmony_ci   */
13661847f8eSopenharmony_ci  Accurate,
13761847f8eSopenharmony_ci}
13861847f8eSopenharmony_ci
13961847f8eSopenharmony_ci/**
14061847f8eSopenharmony_ci * playback speed.
14161847f8eSopenharmony_ci *
14261847f8eSopenharmony_ci * @enum { number }
14361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
14461847f8eSopenharmony_ci * @since 8
14561847f8eSopenharmony_ci */
14661847f8eSopenharmony_ci/**
14761847f8eSopenharmony_ci * playback speed.
14861847f8eSopenharmony_ci *
14961847f8eSopenharmony_ci * @enum { number }
15061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
15161847f8eSopenharmony_ci * @crossplatform
15261847f8eSopenharmony_ci * @since 10
15361847f8eSopenharmony_ci */
15461847f8eSopenharmony_ci/**
15561847f8eSopenharmony_ci * playback speed.
15661847f8eSopenharmony_ci *
15761847f8eSopenharmony_ci * @enum { number }
15861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
15961847f8eSopenharmony_ci * @crossplatform
16061847f8eSopenharmony_ci * @atomicservice
16161847f8eSopenharmony_ci * @since 11
16261847f8eSopenharmony_ci */
16361847f8eSopenharmony_cideclare enum PlaybackSpeed {
16461847f8eSopenharmony_ci  /**
16561847f8eSopenharmony_ci   * 0.75x speed playback.
16661847f8eSopenharmony_ci   *
16761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
16861847f8eSopenharmony_ci   * @since 8
16961847f8eSopenharmony_ci   */
17061847f8eSopenharmony_ci  /**
17161847f8eSopenharmony_ci   * 0.75x speed playback.
17261847f8eSopenharmony_ci   *
17361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17461847f8eSopenharmony_ci   * @crossplatform
17561847f8eSopenharmony_ci   * @since 10
17661847f8eSopenharmony_ci   */
17761847f8eSopenharmony_ci  /**
17861847f8eSopenharmony_ci   * 0.75x speed playback.
17961847f8eSopenharmony_ci   *
18061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
18161847f8eSopenharmony_ci   * @crossplatform
18261847f8eSopenharmony_ci   * @atomicservice
18361847f8eSopenharmony_ci   * @since 11
18461847f8eSopenharmony_ci   */
18561847f8eSopenharmony_ci  Speed_Forward_0_75_X,
18661847f8eSopenharmony_ci
18761847f8eSopenharmony_ci  /**
18861847f8eSopenharmony_ci   * 1.00x speed playback.
18961847f8eSopenharmony_ci   *
19061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19161847f8eSopenharmony_ci   * @since 8
19261847f8eSopenharmony_ci   */
19361847f8eSopenharmony_ci  /**
19461847f8eSopenharmony_ci   * 1.00x speed playback.
19561847f8eSopenharmony_ci   *
19661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19761847f8eSopenharmony_ci   * @crossplatform
19861847f8eSopenharmony_ci   * @since 10
19961847f8eSopenharmony_ci   */
20061847f8eSopenharmony_ci  /**
20161847f8eSopenharmony_ci   * 1.00x speed playback.
20261847f8eSopenharmony_ci   *
20361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20461847f8eSopenharmony_ci   * @crossplatform
20561847f8eSopenharmony_ci   * @atomicservice
20661847f8eSopenharmony_ci   * @since 11
20761847f8eSopenharmony_ci   */
20861847f8eSopenharmony_ci  Speed_Forward_1_00_X,
20961847f8eSopenharmony_ci
21061847f8eSopenharmony_ci  /**
21161847f8eSopenharmony_ci   * 1.25x speed playback.
21261847f8eSopenharmony_ci   *
21361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21461847f8eSopenharmony_ci   * @since 8
21561847f8eSopenharmony_ci   */
21661847f8eSopenharmony_ci  /**
21761847f8eSopenharmony_ci   * 1.25x speed playback.
21861847f8eSopenharmony_ci   *
21961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22061847f8eSopenharmony_ci   * @crossplatform
22161847f8eSopenharmony_ci   * @since 10
22261847f8eSopenharmony_ci   */
22361847f8eSopenharmony_ci  /**
22461847f8eSopenharmony_ci   * 1.25x speed playback.
22561847f8eSopenharmony_ci   *
22661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
22761847f8eSopenharmony_ci   * @crossplatform
22861847f8eSopenharmony_ci   * @atomicservice
22961847f8eSopenharmony_ci   * @since 11
23061847f8eSopenharmony_ci   */
23161847f8eSopenharmony_ci  Speed_Forward_1_25_X,
23261847f8eSopenharmony_ci
23361847f8eSopenharmony_ci  /**
23461847f8eSopenharmony_ci   * 1.75x speed playback.
23561847f8eSopenharmony_ci   *
23661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
23761847f8eSopenharmony_ci   * @since 8
23861847f8eSopenharmony_ci   */
23961847f8eSopenharmony_ci  /**
24061847f8eSopenharmony_ci   * 1.75x speed playback.
24161847f8eSopenharmony_ci   *
24261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
24361847f8eSopenharmony_ci   * @crossplatform
24461847f8eSopenharmony_ci   * @since 10
24561847f8eSopenharmony_ci   */
24661847f8eSopenharmony_ci  /**
24761847f8eSopenharmony_ci   * 1.75x speed playback.
24861847f8eSopenharmony_ci   *
24961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25061847f8eSopenharmony_ci   * @crossplatform
25161847f8eSopenharmony_ci   * @atomicservice
25261847f8eSopenharmony_ci   * @since 11
25361847f8eSopenharmony_ci   */
25461847f8eSopenharmony_ci  Speed_Forward_1_75_X,
25561847f8eSopenharmony_ci
25661847f8eSopenharmony_ci  /**
25761847f8eSopenharmony_ci   * 2.00x speed playback.
25861847f8eSopenharmony_ci   *
25961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26061847f8eSopenharmony_ci   * @since 8
26161847f8eSopenharmony_ci   */
26261847f8eSopenharmony_ci  /**
26361847f8eSopenharmony_ci   * 2.00x speed playback.
26461847f8eSopenharmony_ci   *
26561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26661847f8eSopenharmony_ci   * @crossplatform
26761847f8eSopenharmony_ci   * @since 10
26861847f8eSopenharmony_ci   */
26961847f8eSopenharmony_ci  /**
27061847f8eSopenharmony_ci   * 2.00x speed playback.
27161847f8eSopenharmony_ci   *
27261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27361847f8eSopenharmony_ci   * @crossplatform
27461847f8eSopenharmony_ci   * @atomicservice
27561847f8eSopenharmony_ci   * @since 11
27661847f8eSopenharmony_ci   */
27761847f8eSopenharmony_ci  Speed_Forward_2_00_X,
27861847f8eSopenharmony_ci}
27961847f8eSopenharmony_ci
28061847f8eSopenharmony_ci/**
28161847f8eSopenharmony_ci * Fullscreen information of the video.
28261847f8eSopenharmony_ci *
28361847f8eSopenharmony_ci * @typedef FullscreenInfo
28461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
28561847f8eSopenharmony_ci * @crossplatform
28661847f8eSopenharmony_ci * @atomicservice
28761847f8eSopenharmony_ci * @since 14
28861847f8eSopenharmony_ci */
28961847f8eSopenharmony_ciinterface FullscreenInfo {
29061847f8eSopenharmony_ci  /**
29161847f8eSopenharmony_ci   * The flag whether play in full screen.
29261847f8eSopenharmony_ci   *
29361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29461847f8eSopenharmony_ci   * @crossplatform
29561847f8eSopenharmony_ci   * @since 10
29661847f8eSopenharmony_ci   */
29761847f8eSopenharmony_ci  /**
29861847f8eSopenharmony_ci   * The flag whether play in full screen.
29961847f8eSopenharmony_ci   *
30061847f8eSopenharmony_ci   * @type { boolean }
30161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30261847f8eSopenharmony_ci   * @crossplatform
30361847f8eSopenharmony_ci   * @atomicservice
30461847f8eSopenharmony_ci   * @since 11
30561847f8eSopenharmony_ci   */
30661847f8eSopenharmony_ci  fullscreen: boolean;
30761847f8eSopenharmony_ci}
30861847f8eSopenharmony_ci
30961847f8eSopenharmony_ci/**
31061847f8eSopenharmony_ci * Prepared information of the video.
31161847f8eSopenharmony_ci *
31261847f8eSopenharmony_ci * @typedef PreparedInfo
31361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
31461847f8eSopenharmony_ci * @crossplatform
31561847f8eSopenharmony_ci * @atomicservice
31661847f8eSopenharmony_ci * @since 14
31761847f8eSopenharmony_ci */
31861847f8eSopenharmony_ciinterface PreparedInfo {
31961847f8eSopenharmony_ci  /**
32061847f8eSopenharmony_ci   * The duration of the current video, in seconds.
32161847f8eSopenharmony_ci   *
32261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32361847f8eSopenharmony_ci   * @crossplatform
32461847f8eSopenharmony_ci   * @since 10
32561847f8eSopenharmony_ci   */
32661847f8eSopenharmony_ci  /**
32761847f8eSopenharmony_ci   * The duration of the current video, in seconds.
32861847f8eSopenharmony_ci   *
32961847f8eSopenharmony_ci   * @type { number }
33061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33161847f8eSopenharmony_ci   * @crossplatform
33261847f8eSopenharmony_ci   * @atomicservice
33361847f8eSopenharmony_ci   * @since 11
33461847f8eSopenharmony_ci   */
33561847f8eSopenharmony_ci  duration: number;
33661847f8eSopenharmony_ci}
33761847f8eSopenharmony_ci
33861847f8eSopenharmony_ci/**
33961847f8eSopenharmony_ci * Playback information of the video.
34061847f8eSopenharmony_ci *
34161847f8eSopenharmony_ci * @typedef PlaybackInfo
34261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
34361847f8eSopenharmony_ci * @crossplatform
34461847f8eSopenharmony_ci * @atomicservice
34561847f8eSopenharmony_ci * @since 14
34661847f8eSopenharmony_ci */
34761847f8eSopenharmony_ciinterface PlaybackInfo {
34861847f8eSopenharmony_ci  /**
34961847f8eSopenharmony_ci   * The current video playback progress, expressed in seconds.
35061847f8eSopenharmony_ci   *
35161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35261847f8eSopenharmony_ci   * @crossplatform
35361847f8eSopenharmony_ci   * @since 10
35461847f8eSopenharmony_ci   */
35561847f8eSopenharmony_ci  /**
35661847f8eSopenharmony_ci   * The current video playback progress, expressed in seconds.
35761847f8eSopenharmony_ci   *
35861847f8eSopenharmony_ci   * @type { number }
35961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
36061847f8eSopenharmony_ci   * @crossplatform
36161847f8eSopenharmony_ci   * @atomicservice
36261847f8eSopenharmony_ci   * @since 11
36361847f8eSopenharmony_ci   */
36461847f8eSopenharmony_ci  time: number;
36561847f8eSopenharmony_ci}
36661847f8eSopenharmony_ci
36761847f8eSopenharmony_ci/**
36861847f8eSopenharmony_ci * Defines the video options.
36961847f8eSopenharmony_ci *
37061847f8eSopenharmony_ci * @interface VideoOptions
37161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
37261847f8eSopenharmony_ci * @since 7
37361847f8eSopenharmony_ci */
37461847f8eSopenharmony_ci/**
37561847f8eSopenharmony_ci * Defines the video options.
37661847f8eSopenharmony_ci *
37761847f8eSopenharmony_ci * @interface VideoOptions
37861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
37961847f8eSopenharmony_ci * @crossplatform
38061847f8eSopenharmony_ci * @since 10
38161847f8eSopenharmony_ci */
38261847f8eSopenharmony_ci/**
38361847f8eSopenharmony_ci * Defines the video options.
38461847f8eSopenharmony_ci *
38561847f8eSopenharmony_ci * @interface VideoOptions
38661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
38761847f8eSopenharmony_ci * @crossplatform
38861847f8eSopenharmony_ci * @atomicservice
38961847f8eSopenharmony_ci * @since 11
39061847f8eSopenharmony_ci */
39161847f8eSopenharmony_ci/**
39261847f8eSopenharmony_ci * Defines the video options.
39361847f8eSopenharmony_ci *
39461847f8eSopenharmony_ci * @interface VideoOptions
39561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
39661847f8eSopenharmony_ci * @crossplatform
39761847f8eSopenharmony_ci * @atomicservice
39861847f8eSopenharmony_ci * @since 12
39961847f8eSopenharmony_ci */
40061847f8eSopenharmony_cideclare interface VideoOptions {
40161847f8eSopenharmony_ci  /**
40261847f8eSopenharmony_ci   * src of video.
40361847f8eSopenharmony_ci   *
40461847f8eSopenharmony_ci   * @type { ?(string | Resource) }
40561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40661847f8eSopenharmony_ci   * @since 7
40761847f8eSopenharmony_ci   */
40861847f8eSopenharmony_ci  /**
40961847f8eSopenharmony_ci   * src of video.
41061847f8eSopenharmony_ci   *
41161847f8eSopenharmony_ci   * @type { ?(string | Resource) }
41261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41361847f8eSopenharmony_ci   * @crossplatform
41461847f8eSopenharmony_ci   * @since 10
41561847f8eSopenharmony_ci   */
41661847f8eSopenharmony_ci  /**
41761847f8eSopenharmony_ci   * src of video.
41861847f8eSopenharmony_ci   *
41961847f8eSopenharmony_ci   * @type { ?(string | Resource) }
42061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42161847f8eSopenharmony_ci   * @crossplatform
42261847f8eSopenharmony_ci   * @atomicservice
42361847f8eSopenharmony_ci   * @since 11
42461847f8eSopenharmony_ci   */
42561847f8eSopenharmony_ci  src?: string | Resource;
42661847f8eSopenharmony_ci
42761847f8eSopenharmony_ci  /**
42861847f8eSopenharmony_ci   * playback rate of video.
42961847f8eSopenharmony_ci   *
43061847f8eSopenharmony_ci   * @type { ?(number | string | PlaybackSpeed) }
43161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43261847f8eSopenharmony_ci   * @since 7
43361847f8eSopenharmony_ci   */
43461847f8eSopenharmony_ci  /**
43561847f8eSopenharmony_ci   * playback rate of video.
43661847f8eSopenharmony_ci   *
43761847f8eSopenharmony_ci   * @type { ?(number | string | PlaybackSpeed) }
43861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43961847f8eSopenharmony_ci   * @crossplatform
44061847f8eSopenharmony_ci   * @since 10
44161847f8eSopenharmony_ci   */
44261847f8eSopenharmony_ci  /**
44361847f8eSopenharmony_ci   * playback rate of video.
44461847f8eSopenharmony_ci   *
44561847f8eSopenharmony_ci   * @type { ?(number | string | PlaybackSpeed) }
44661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44761847f8eSopenharmony_ci   * @crossplatform
44861847f8eSopenharmony_ci   * @atomicservice
44961847f8eSopenharmony_ci   * @since 11
45061847f8eSopenharmony_ci   */
45161847f8eSopenharmony_ci  currentProgressRate?: number | string | PlaybackSpeed;
45261847f8eSopenharmony_ci
45361847f8eSopenharmony_ci  /**
45461847f8eSopenharmony_ci   * preview uri of video.
45561847f8eSopenharmony_ci   *
45661847f8eSopenharmony_ci   * @type { ?(string | PixelMap | Resource) }
45761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
45861847f8eSopenharmony_ci   * @since 7
45961847f8eSopenharmony_ci   */
46061847f8eSopenharmony_ci  /**
46161847f8eSopenharmony_ci   * preview uri of video.
46261847f8eSopenharmony_ci   *
46361847f8eSopenharmony_ci   * @type { ?(string | PixelMap | Resource) }
46461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46561847f8eSopenharmony_ci   * @crossplatform
46661847f8eSopenharmony_ci   * @since 10
46761847f8eSopenharmony_ci   */
46861847f8eSopenharmony_ci  /**
46961847f8eSopenharmony_ci   * preview uri of video.
47061847f8eSopenharmony_ci   *
47161847f8eSopenharmony_ci   * @type { ?(string | PixelMap | Resource) }
47261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
47361847f8eSopenharmony_ci   * @crossplatform
47461847f8eSopenharmony_ci   * @atomicservice
47561847f8eSopenharmony_ci   * @since 11
47661847f8eSopenharmony_ci   */
47761847f8eSopenharmony_ci  previewUri?: string | PixelMap | Resource;
47861847f8eSopenharmony_ci
47961847f8eSopenharmony_ci  /**
48061847f8eSopenharmony_ci   * controller of video.
48161847f8eSopenharmony_ci   *
48261847f8eSopenharmony_ci   * @type { ?VideoController }
48361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48461847f8eSopenharmony_ci   * @since 7
48561847f8eSopenharmony_ci   */
48661847f8eSopenharmony_ci  /**
48761847f8eSopenharmony_ci   * controller of video.
48861847f8eSopenharmony_ci   *
48961847f8eSopenharmony_ci   * @type { ?VideoController }
49061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49161847f8eSopenharmony_ci   * @crossplatform
49261847f8eSopenharmony_ci   * @since 10
49361847f8eSopenharmony_ci   */
49461847f8eSopenharmony_ci  /**
49561847f8eSopenharmony_ci   * controller of video.
49661847f8eSopenharmony_ci   *
49761847f8eSopenharmony_ci   * @type { ?VideoController }
49861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49961847f8eSopenharmony_ci   * @crossplatform
50061847f8eSopenharmony_ci   * @atomicservice
50161847f8eSopenharmony_ci   * @since 11
50261847f8eSopenharmony_ci   */
50361847f8eSopenharmony_ci  controller?: VideoController;
50461847f8eSopenharmony_ci
50561847f8eSopenharmony_ci  /**
50661847f8eSopenharmony_ci   * image ai options of video.
50761847f8eSopenharmony_ci   *
50861847f8eSopenharmony_ci   * @type { ?ImageAIOptions }
50961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
51061847f8eSopenharmony_ci   * @atomicservice
51161847f8eSopenharmony_ci   * @since 12
51261847f8eSopenharmony_ci   */
51361847f8eSopenharmony_ci  imageAIOptions?: ImageAIOptions;
51461847f8eSopenharmony_ci}
51561847f8eSopenharmony_ci
51661847f8eSopenharmony_ci/**
51761847f8eSopenharmony_ci * Defines the video controller.
51861847f8eSopenharmony_ci *
51961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
52061847f8eSopenharmony_ci * @since 7
52161847f8eSopenharmony_ci */
52261847f8eSopenharmony_ci/**
52361847f8eSopenharmony_ci * Defines the video controller.
52461847f8eSopenharmony_ci *
52561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
52661847f8eSopenharmony_ci * @crossplatform
52761847f8eSopenharmony_ci * @since 10
52861847f8eSopenharmony_ci */
52961847f8eSopenharmony_ci/**
53061847f8eSopenharmony_ci * Defines the video controller.
53161847f8eSopenharmony_ci *
53261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
53361847f8eSopenharmony_ci * @crossplatform
53461847f8eSopenharmony_ci * @atomicservice
53561847f8eSopenharmony_ci * @since 11
53661847f8eSopenharmony_ci */
53761847f8eSopenharmony_cideclare class VideoController {
53861847f8eSopenharmony_ci  /**
53961847f8eSopenharmony_ci   * constructor.
54061847f8eSopenharmony_ci   *
54161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54261847f8eSopenharmony_ci   * @since 7
54361847f8eSopenharmony_ci   */
54461847f8eSopenharmony_ci  /**
54561847f8eSopenharmony_ci   * constructor.
54661847f8eSopenharmony_ci   *
54761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54861847f8eSopenharmony_ci   * @crossplatform
54961847f8eSopenharmony_ci   * @since 10
55061847f8eSopenharmony_ci   */
55161847f8eSopenharmony_ci  /**
55261847f8eSopenharmony_ci   * constructor.
55361847f8eSopenharmony_ci   *
55461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
55561847f8eSopenharmony_ci   * @crossplatform
55661847f8eSopenharmony_ci   * @atomicservice
55761847f8eSopenharmony_ci   * @since 11
55861847f8eSopenharmony_ci   */
55961847f8eSopenharmony_ci  constructor();
56061847f8eSopenharmony_ci
56161847f8eSopenharmony_ci  /**
56261847f8eSopenharmony_ci   * Provides events to play.
56361847f8eSopenharmony_ci   *
56461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
56561847f8eSopenharmony_ci   * @since 7
56661847f8eSopenharmony_ci   */
56761847f8eSopenharmony_ci  /**
56861847f8eSopenharmony_ci   * Provides events to play.
56961847f8eSopenharmony_ci   *
57061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
57161847f8eSopenharmony_ci   * @crossplatform
57261847f8eSopenharmony_ci   * @since 10
57361847f8eSopenharmony_ci   */
57461847f8eSopenharmony_ci  /**
57561847f8eSopenharmony_ci   * Provides events to play.
57661847f8eSopenharmony_ci   *
57761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
57861847f8eSopenharmony_ci   * @crossplatform
57961847f8eSopenharmony_ci   * @atomicservice
58061847f8eSopenharmony_ci   * @since 11
58161847f8eSopenharmony_ci   */
58261847f8eSopenharmony_ci  start();
58361847f8eSopenharmony_ci
58461847f8eSopenharmony_ci  /**
58561847f8eSopenharmony_ci   * Provides a pause event for playback.
58661847f8eSopenharmony_ci   *
58761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58861847f8eSopenharmony_ci   * @since 7
58961847f8eSopenharmony_ci   */
59061847f8eSopenharmony_ci  /**
59161847f8eSopenharmony_ci   * Provides a pause event for playback.
59261847f8eSopenharmony_ci   *
59361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59461847f8eSopenharmony_ci   * @crossplatform
59561847f8eSopenharmony_ci   * @since 10
59661847f8eSopenharmony_ci   */
59761847f8eSopenharmony_ci  /**
59861847f8eSopenharmony_ci   * Provides a pause event for playback.
59961847f8eSopenharmony_ci   *
60061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
60161847f8eSopenharmony_ci   * @crossplatform
60261847f8eSopenharmony_ci   * @atomicservice
60361847f8eSopenharmony_ci   * @since 11
60461847f8eSopenharmony_ci   */
60561847f8eSopenharmony_ci  pause();
60661847f8eSopenharmony_ci
60761847f8eSopenharmony_ci  /**
60861847f8eSopenharmony_ci   * Provides an event to stop playback.
60961847f8eSopenharmony_ci   *
61061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
61161847f8eSopenharmony_ci   * @since 7
61261847f8eSopenharmony_ci   */
61361847f8eSopenharmony_ci  /**
61461847f8eSopenharmony_ci   * Provides an event to stop playback.
61561847f8eSopenharmony_ci   *
61661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
61761847f8eSopenharmony_ci   * @crossplatform
61861847f8eSopenharmony_ci   * @since 10
61961847f8eSopenharmony_ci   */
62061847f8eSopenharmony_ci  /**
62161847f8eSopenharmony_ci   * Provides an event to stop playback.
62261847f8eSopenharmony_ci   *
62361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
62461847f8eSopenharmony_ci   * @crossplatform
62561847f8eSopenharmony_ci   * @atomicservice
62661847f8eSopenharmony_ci   * @since 11
62761847f8eSopenharmony_ci   */
62861847f8eSopenharmony_ci  stop();
62961847f8eSopenharmony_ci
63061847f8eSopenharmony_ci  /**
63161847f8eSopenharmony_ci   * Provide the progress method of video playback.
63261847f8eSopenharmony_ci   *
63361847f8eSopenharmony_ci   * @param { number } value
63461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
63561847f8eSopenharmony_ci   * @since 7
63661847f8eSopenharmony_ci   */
63761847f8eSopenharmony_ci  /**
63861847f8eSopenharmony_ci   * Provide the progress method of video playback.
63961847f8eSopenharmony_ci   *
64061847f8eSopenharmony_ci   * @param { number } value
64161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64261847f8eSopenharmony_ci   * @crossplatform
64361847f8eSopenharmony_ci   * @since 10
64461847f8eSopenharmony_ci   */
64561847f8eSopenharmony_ci  /**
64661847f8eSopenharmony_ci   * Provide the progress method of video playback.
64761847f8eSopenharmony_ci   *
64861847f8eSopenharmony_ci   * @param { number } value
64961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
65061847f8eSopenharmony_ci   * @crossplatform
65161847f8eSopenharmony_ci   * @atomicservice
65261847f8eSopenharmony_ci   * @since 11
65361847f8eSopenharmony_ci   */
65461847f8eSopenharmony_ci  setCurrentTime(value: number);
65561847f8eSopenharmony_ci
65661847f8eSopenharmony_ci  /**
65761847f8eSopenharmony_ci   * Provides a full screen playback method.
65861847f8eSopenharmony_ci   *
65961847f8eSopenharmony_ci   * @param { boolean } value
66061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
66161847f8eSopenharmony_ci   * @since 7
66261847f8eSopenharmony_ci   */
66361847f8eSopenharmony_ci  /**
66461847f8eSopenharmony_ci   * Provides a full screen playback method.
66561847f8eSopenharmony_ci   *
66661847f8eSopenharmony_ci   * @param { boolean } value
66761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
66861847f8eSopenharmony_ci   * @crossplatform
66961847f8eSopenharmony_ci   * @since 10
67061847f8eSopenharmony_ci   */
67161847f8eSopenharmony_ci  /**
67261847f8eSopenharmony_ci   * Provides a full screen playback method.
67361847f8eSopenharmony_ci   *
67461847f8eSopenharmony_ci   * @param { boolean } value
67561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67661847f8eSopenharmony_ci   * @crossplatform
67761847f8eSopenharmony_ci   * @atomicservice
67861847f8eSopenharmony_ci   * @since 11
67961847f8eSopenharmony_ci   */
68061847f8eSopenharmony_ci  requestFullscreen(value: boolean);
68161847f8eSopenharmony_ci
68261847f8eSopenharmony_ci  /**
68361847f8eSopenharmony_ci   * Provides a method to exit full screen playback.
68461847f8eSopenharmony_ci   *
68561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68661847f8eSopenharmony_ci   * @since 7
68761847f8eSopenharmony_ci   */
68861847f8eSopenharmony_ci  /**
68961847f8eSopenharmony_ci   * Provides a method to exit full screen playback.
69061847f8eSopenharmony_ci   *
69161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
69261847f8eSopenharmony_ci   * @crossplatform
69361847f8eSopenharmony_ci   * @since 10
69461847f8eSopenharmony_ci   */
69561847f8eSopenharmony_ci  /**
69661847f8eSopenharmony_ci   * Provides a method to exit full screen playback.
69761847f8eSopenharmony_ci   *
69861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
69961847f8eSopenharmony_ci   * @crossplatform
70061847f8eSopenharmony_ci   * @atomicservice
70161847f8eSopenharmony_ci   * @since 11
70261847f8eSopenharmony_ci   */
70361847f8eSopenharmony_ci  exitFullscreen();
70461847f8eSopenharmony_ci
70561847f8eSopenharmony_ci  /**
70661847f8eSopenharmony_ci   * Provide the progress method of video playback.
70761847f8eSopenharmony_ci   *
70861847f8eSopenharmony_ci   * @param { number } value
70961847f8eSopenharmony_ci   * @param { SeekMode } seekMode
71061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71161847f8eSopenharmony_ci   * @since 8
71261847f8eSopenharmony_ci   */
71361847f8eSopenharmony_ci  /**
71461847f8eSopenharmony_ci   * Provide the progress method of video playback.
71561847f8eSopenharmony_ci   *
71661847f8eSopenharmony_ci   * @param { number } value
71761847f8eSopenharmony_ci   * @param { SeekMode } seekMode
71861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71961847f8eSopenharmony_ci   * @crossplatform
72061847f8eSopenharmony_ci   * @since 10
72161847f8eSopenharmony_ci   */
72261847f8eSopenharmony_ci  /**
72361847f8eSopenharmony_ci   * Provide the progress method of video playback.
72461847f8eSopenharmony_ci   *
72561847f8eSopenharmony_ci   * @param { number } value
72661847f8eSopenharmony_ci   * @param { SeekMode } seekMode
72761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72861847f8eSopenharmony_ci   * @crossplatform
72961847f8eSopenharmony_ci   * @atomicservice
73061847f8eSopenharmony_ci   * @since 11
73161847f8eSopenharmony_ci   */
73261847f8eSopenharmony_ci  setCurrentTime(value: number, seekMode: SeekMode);
73361847f8eSopenharmony_ci
73461847f8eSopenharmony_ci  /**
73561847f8eSopenharmony_ci   * Provide the reset method of video playback.
73661847f8eSopenharmony_ci   *
73761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
73861847f8eSopenharmony_ci   * @atomicservice
73961847f8eSopenharmony_ci   * @since 12
74061847f8eSopenharmony_ci   */
74161847f8eSopenharmony_ci  reset(): void;
74261847f8eSopenharmony_ci}
74361847f8eSopenharmony_ci
74461847f8eSopenharmony_ci/**
74561847f8eSopenharmony_ci * Defines the video interface.
74661847f8eSopenharmony_ci *
74761847f8eSopenharmony_ci * @interface VideoInterface
74861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
74961847f8eSopenharmony_ci * @since 7
75061847f8eSopenharmony_ci */
75161847f8eSopenharmony_ci/**
75261847f8eSopenharmony_ci * Defines the video interface.
75361847f8eSopenharmony_ci *
75461847f8eSopenharmony_ci * @interface VideoInterface
75561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
75661847f8eSopenharmony_ci * @crossplatform
75761847f8eSopenharmony_ci * @since 10
75861847f8eSopenharmony_ci */
75961847f8eSopenharmony_ci/**
76061847f8eSopenharmony_ci * Defines the video interface.
76161847f8eSopenharmony_ci *
76261847f8eSopenharmony_ci * @interface VideoInterface
76361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
76461847f8eSopenharmony_ci * @crossplatform
76561847f8eSopenharmony_ci * @atomicservice
76661847f8eSopenharmony_ci * @since 11
76761847f8eSopenharmony_ci */
76861847f8eSopenharmony_ciinterface VideoInterface {
76961847f8eSopenharmony_ci  /**
77061847f8eSopenharmony_ci   * Set the value.
77161847f8eSopenharmony_ci   *
77261847f8eSopenharmony_ci   * @param { VideoOptions } value
77361847f8eSopenharmony_ci   * @returns { VideoAttribute }
77461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77561847f8eSopenharmony_ci   * @since 7
77661847f8eSopenharmony_ci   */
77761847f8eSopenharmony_ci  /**
77861847f8eSopenharmony_ci   * Set the value.
77961847f8eSopenharmony_ci   *
78061847f8eSopenharmony_ci   * @param { VideoOptions } value
78161847f8eSopenharmony_ci   * @returns { VideoAttribute }
78261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78361847f8eSopenharmony_ci   * @crossplatform
78461847f8eSopenharmony_ci   * @since 10
78561847f8eSopenharmony_ci   */
78661847f8eSopenharmony_ci  /**
78761847f8eSopenharmony_ci   * Set the value.
78861847f8eSopenharmony_ci   *
78961847f8eSopenharmony_ci   * @param { VideoOptions } value
79061847f8eSopenharmony_ci   * @returns { VideoAttribute }
79161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
79261847f8eSopenharmony_ci   * @crossplatform
79361847f8eSopenharmony_ci   * @atomicservice
79461847f8eSopenharmony_ci   * @since 11
79561847f8eSopenharmony_ci   */
79661847f8eSopenharmony_ci  (value: VideoOptions): VideoAttribute;
79761847f8eSopenharmony_ci}
79861847f8eSopenharmony_ci
79961847f8eSopenharmony_ci/**
80061847f8eSopenharmony_ci * Defines the video attribute functions.
80161847f8eSopenharmony_ci *
80261847f8eSopenharmony_ci * @extends CommonMethod<VideoAttribute>
80361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
80461847f8eSopenharmony_ci * @since 7
80561847f8eSopenharmony_ci */
80661847f8eSopenharmony_ci/**
80761847f8eSopenharmony_ci * Defines the video attribute functions.
80861847f8eSopenharmony_ci *
80961847f8eSopenharmony_ci * @extends CommonMethod<VideoAttribute>
81061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
81161847f8eSopenharmony_ci * @crossplatform
81261847f8eSopenharmony_ci * @since 10
81361847f8eSopenharmony_ci */
81461847f8eSopenharmony_ci/**
81561847f8eSopenharmony_ci * Defines the video attribute functions.
81661847f8eSopenharmony_ci *
81761847f8eSopenharmony_ci * @extends CommonMethod<VideoAttribute>
81861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
81961847f8eSopenharmony_ci * @crossplatform
82061847f8eSopenharmony_ci * @atomicservice
82161847f8eSopenharmony_ci * @since 11
82261847f8eSopenharmony_ci */
82361847f8eSopenharmony_cideclare class VideoAttribute extends CommonMethod<VideoAttribute> {
82461847f8eSopenharmony_ci  /**
82561847f8eSopenharmony_ci   * Called when judging whether the video is muted.
82661847f8eSopenharmony_ci   *
82761847f8eSopenharmony_ci   * @param { boolean } value
82861847f8eSopenharmony_ci   * @returns { VideoAttribute }
82961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83061847f8eSopenharmony_ci   * @since 7
83161847f8eSopenharmony_ci   */
83261847f8eSopenharmony_ci  /**
83361847f8eSopenharmony_ci   * Called when judging whether the video is muted.
83461847f8eSopenharmony_ci   *
83561847f8eSopenharmony_ci   * @param { boolean } value
83661847f8eSopenharmony_ci   * @returns { VideoAttribute }
83761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83861847f8eSopenharmony_ci   * @crossplatform
83961847f8eSopenharmony_ci   * @since 10
84061847f8eSopenharmony_ci   */
84161847f8eSopenharmony_ci  /**
84261847f8eSopenharmony_ci   * Called when judging whether the video is muted.
84361847f8eSopenharmony_ci   *
84461847f8eSopenharmony_ci   * @param { boolean } value
84561847f8eSopenharmony_ci   * @returns { VideoAttribute }
84661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84761847f8eSopenharmony_ci   * @crossplatform
84861847f8eSopenharmony_ci   * @atomicservice
84961847f8eSopenharmony_ci   * @since 11
85061847f8eSopenharmony_ci   */
85161847f8eSopenharmony_ci  muted(value: boolean): VideoAttribute;
85261847f8eSopenharmony_ci
85361847f8eSopenharmony_ci  /**
85461847f8eSopenharmony_ci   * Called when judging whether the video is played automatically.
85561847f8eSopenharmony_ci   *
85661847f8eSopenharmony_ci   * @param { boolean } value
85761847f8eSopenharmony_ci   * @returns { VideoAttribute }
85861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
85961847f8eSopenharmony_ci   * @since 7
86061847f8eSopenharmony_ci   */
86161847f8eSopenharmony_ci  /**
86261847f8eSopenharmony_ci   * Called when judging whether the video is played automatically.
86361847f8eSopenharmony_ci   *
86461847f8eSopenharmony_ci   * @param { boolean } value
86561847f8eSopenharmony_ci   * @returns { VideoAttribute }
86661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86761847f8eSopenharmony_ci   * @crossplatform
86861847f8eSopenharmony_ci   * @since 10
86961847f8eSopenharmony_ci   */
87061847f8eSopenharmony_ci  /**
87161847f8eSopenharmony_ci   * Called when judging whether the video is played automatically.
87261847f8eSopenharmony_ci   *
87361847f8eSopenharmony_ci   * @param { boolean } value
87461847f8eSopenharmony_ci   * @returns { VideoAttribute }
87561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
87661847f8eSopenharmony_ci   * @crossplatform
87761847f8eSopenharmony_ci   * @atomicservice
87861847f8eSopenharmony_ci   * @since 11
87961847f8eSopenharmony_ci   */
88061847f8eSopenharmony_ci  autoPlay(value: boolean): VideoAttribute;
88161847f8eSopenharmony_ci
88261847f8eSopenharmony_ci  /**
88361847f8eSopenharmony_ci   * Called when judging whether the control bar is displayed.
88461847f8eSopenharmony_ci   *
88561847f8eSopenharmony_ci   * @param { boolean } value
88661847f8eSopenharmony_ci   * @returns { VideoAttribute }
88761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
88861847f8eSopenharmony_ci   * @since 7
88961847f8eSopenharmony_ci   */
89061847f8eSopenharmony_ci  /**
89161847f8eSopenharmony_ci   * Called when judging whether the control bar is displayed.
89261847f8eSopenharmony_ci   *
89361847f8eSopenharmony_ci   * @param { boolean } value
89461847f8eSopenharmony_ci   * @returns { VideoAttribute }
89561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
89661847f8eSopenharmony_ci   * @crossplatform
89761847f8eSopenharmony_ci   * @since 10
89861847f8eSopenharmony_ci   */
89961847f8eSopenharmony_ci  /**
90061847f8eSopenharmony_ci   * Called when judging whether the control bar is displayed.
90161847f8eSopenharmony_ci   *
90261847f8eSopenharmony_ci   * @param { boolean } value
90361847f8eSopenharmony_ci   * @returns { VideoAttribute }
90461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
90561847f8eSopenharmony_ci   * @crossplatform
90661847f8eSopenharmony_ci   * @atomicservice
90761847f8eSopenharmony_ci   * @since 11
90861847f8eSopenharmony_ci   */
90961847f8eSopenharmony_ci  controls(value: boolean): VideoAttribute;
91061847f8eSopenharmony_ci
91161847f8eSopenharmony_ci  /**
91261847f8eSopenharmony_ci   * Called when judging whether the video is played circular.
91361847f8eSopenharmony_ci   *
91461847f8eSopenharmony_ci   * @param { boolean } value
91561847f8eSopenharmony_ci   * @returns { VideoAttribute }
91661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
91761847f8eSopenharmony_ci   * @since 6
91861847f8eSopenharmony_ci   */
91961847f8eSopenharmony_ci  /**
92061847f8eSopenharmony_ci   * Called when judging whether the video is played circular.
92161847f8eSopenharmony_ci   *
92261847f8eSopenharmony_ci   * @param { boolean } value
92361847f8eSopenharmony_ci   * @returns { VideoAttribute }
92461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
92561847f8eSopenharmony_ci   * @crossplatform
92661847f8eSopenharmony_ci   * @since 10
92761847f8eSopenharmony_ci   */
92861847f8eSopenharmony_ci  /**
92961847f8eSopenharmony_ci   * Called when judging whether the video is played circular.
93061847f8eSopenharmony_ci   *
93161847f8eSopenharmony_ci   * @param { boolean } value
93261847f8eSopenharmony_ci   * @returns { VideoAttribute }
93361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
93461847f8eSopenharmony_ci   * @crossplatform
93561847f8eSopenharmony_ci   * @atomicservice
93661847f8eSopenharmony_ci   * @since 11
93761847f8eSopenharmony_ci   */
93861847f8eSopenharmony_ci  loop(value: boolean): VideoAttribute;
93961847f8eSopenharmony_ci
94061847f8eSopenharmony_ci  /**
94161847f8eSopenharmony_ci   * Called when determining the zoom type of the video source.
94261847f8eSopenharmony_ci   *
94361847f8eSopenharmony_ci   * @param { ImageFit } value
94461847f8eSopenharmony_ci   * @returns { VideoAttribute }
94561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
94661847f8eSopenharmony_ci   * @since 7
94761847f8eSopenharmony_ci   */
94861847f8eSopenharmony_ci  /**
94961847f8eSopenharmony_ci   * Called when determining the zoom type of the video source.
95061847f8eSopenharmony_ci   *
95161847f8eSopenharmony_ci   * @param { ImageFit } value
95261847f8eSopenharmony_ci   * @returns { VideoAttribute }
95361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95461847f8eSopenharmony_ci   * @crossplatform
95561847f8eSopenharmony_ci   * @since 10
95661847f8eSopenharmony_ci   */
95761847f8eSopenharmony_ci  /**
95861847f8eSopenharmony_ci   * Called when determining the zoom type of the video source.
95961847f8eSopenharmony_ci   *
96061847f8eSopenharmony_ci   * @param { ImageFit } value
96161847f8eSopenharmony_ci   * @returns { VideoAttribute }
96261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
96361847f8eSopenharmony_ci   * @crossplatform
96461847f8eSopenharmony_ci   * @atomicservice
96561847f8eSopenharmony_ci   * @since 11
96661847f8eSopenharmony_ci   */
96761847f8eSopenharmony_ci  objectFit(value: ImageFit): VideoAttribute;
96861847f8eSopenharmony_ci
96961847f8eSopenharmony_ci  /**
97061847f8eSopenharmony_ci   * Called when the video is played.
97161847f8eSopenharmony_ci   *
97261847f8eSopenharmony_ci   * @param { function } event
97361847f8eSopenharmony_ci   * @returns { VideoAttribute }
97461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
97561847f8eSopenharmony_ci   * @since 7
97661847f8eSopenharmony_ci   */
97761847f8eSopenharmony_ci  /**
97861847f8eSopenharmony_ci   * Called when the video is played.
97961847f8eSopenharmony_ci   *
98061847f8eSopenharmony_ci   * @param { function } event
98161847f8eSopenharmony_ci   * @returns { VideoAttribute }
98261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
98361847f8eSopenharmony_ci   * @crossplatform
98461847f8eSopenharmony_ci   * @since 10
98561847f8eSopenharmony_ci   */
98661847f8eSopenharmony_ci  /**
98761847f8eSopenharmony_ci   * Called when the video is played.
98861847f8eSopenharmony_ci   *
98961847f8eSopenharmony_ci   * @param { function } event
99061847f8eSopenharmony_ci   * @returns { VideoAttribute }
99161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
99261847f8eSopenharmony_ci   * @crossplatform
99361847f8eSopenharmony_ci   * @atomicservice
99461847f8eSopenharmony_ci   * @since 11
99561847f8eSopenharmony_ci   */
99661847f8eSopenharmony_ci  /**
99761847f8eSopenharmony_ci   * Called when the video is played.
99861847f8eSopenharmony_ci   *
99961847f8eSopenharmony_ci   * @param { VoidCallback } event
100061847f8eSopenharmony_ci   * @returns { VideoAttribute }
100161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
100261847f8eSopenharmony_ci   * @crossplatform
100361847f8eSopenharmony_ci   * @atomicservice
100461847f8eSopenharmony_ci   * @since 14
100561847f8eSopenharmony_ci   */
100661847f8eSopenharmony_ci  onStart(event: VoidCallback): VideoAttribute;
100761847f8eSopenharmony_ci
100861847f8eSopenharmony_ci  /**
100961847f8eSopenharmony_ci   * Called when the video is paused.
101061847f8eSopenharmony_ci   *
101161847f8eSopenharmony_ci   * @param { function } event
101261847f8eSopenharmony_ci   * @returns { VideoAttribute }
101361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
101461847f8eSopenharmony_ci   * @since 7
101561847f8eSopenharmony_ci   */
101661847f8eSopenharmony_ci  /**
101761847f8eSopenharmony_ci   * Called when the video is paused.
101861847f8eSopenharmony_ci   *
101961847f8eSopenharmony_ci   * @param { function } event
102061847f8eSopenharmony_ci   * @returns { VideoAttribute }
102161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
102261847f8eSopenharmony_ci   * @crossplatform
102361847f8eSopenharmony_ci   * @since 10
102461847f8eSopenharmony_ci   */
102561847f8eSopenharmony_ci  /**
102661847f8eSopenharmony_ci   * Called when the video is paused.
102761847f8eSopenharmony_ci   *
102861847f8eSopenharmony_ci   * @param { function } event
102961847f8eSopenharmony_ci   * @returns { VideoAttribute }
103061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103161847f8eSopenharmony_ci   * @crossplatform
103261847f8eSopenharmony_ci   * @atomicservice
103361847f8eSopenharmony_ci   * @since 11
103461847f8eSopenharmony_ci   */
103561847f8eSopenharmony_ci  /**
103661847f8eSopenharmony_ci   * Called when the video is paused.
103761847f8eSopenharmony_ci   *
103861847f8eSopenharmony_ci   * @param { VoidCallback } event
103961847f8eSopenharmony_ci   * @returns { VideoAttribute }
104061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
104161847f8eSopenharmony_ci   * @crossplatform
104261847f8eSopenharmony_ci   * @atomicservice
104361847f8eSopenharmony_ci   * @since 14
104461847f8eSopenharmony_ci   */
104561847f8eSopenharmony_ci  onPause(event: VoidCallback): VideoAttribute;
104661847f8eSopenharmony_ci
104761847f8eSopenharmony_ci  /**
104861847f8eSopenharmony_ci   * Called when the video playback ends.
104961847f8eSopenharmony_ci   *
105061847f8eSopenharmony_ci   * @param { function } event
105161847f8eSopenharmony_ci   * @returns { VideoAttribute }
105261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
105361847f8eSopenharmony_ci   * @since 7
105461847f8eSopenharmony_ci   */
105561847f8eSopenharmony_ci  /**
105661847f8eSopenharmony_ci   * Called when the video playback ends.
105761847f8eSopenharmony_ci   *
105861847f8eSopenharmony_ci   * @param { function } event
105961847f8eSopenharmony_ci   * @returns { VideoAttribute }
106061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
106161847f8eSopenharmony_ci   * @crossplatform
106261847f8eSopenharmony_ci   * @since 10
106361847f8eSopenharmony_ci   */
106461847f8eSopenharmony_ci  /**
106561847f8eSopenharmony_ci   * Called when the video playback ends.
106661847f8eSopenharmony_ci   *
106761847f8eSopenharmony_ci   * @param { function } event
106861847f8eSopenharmony_ci   * @returns { VideoAttribute }
106961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107061847f8eSopenharmony_ci   * @crossplatform
107161847f8eSopenharmony_ci   * @atomicservice
107261847f8eSopenharmony_ci   * @since 11
107361847f8eSopenharmony_ci   */
107461847f8eSopenharmony_ci  /**
107561847f8eSopenharmony_ci   * Called when the video playback ends.
107661847f8eSopenharmony_ci   *
107761847f8eSopenharmony_ci   * @param { VoidCallback } event
107861847f8eSopenharmony_ci   * @returns { VideoAttribute }
107961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
108061847f8eSopenharmony_ci   * @crossplatform
108161847f8eSopenharmony_ci   * @atomicservice
108261847f8eSopenharmony_ci   * @since 14
108361847f8eSopenharmony_ci   */
108461847f8eSopenharmony_ci  onFinish(event: VoidCallback): VideoAttribute;
108561847f8eSopenharmony_ci
108661847f8eSopenharmony_ci  /**
108761847f8eSopenharmony_ci   * Called when the video enters and exits the full screen.
108861847f8eSopenharmony_ci   *
108961847f8eSopenharmony_ci   * @param { function } callback
109061847f8eSopenharmony_ci   * @returns { VideoAttribute }
109161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109261847f8eSopenharmony_ci   * @since 7
109361847f8eSopenharmony_ci   */
109461847f8eSopenharmony_ci  /**
109561847f8eSopenharmony_ci   * Called when the video enters and exits the full screen.
109661847f8eSopenharmony_ci   *
109761847f8eSopenharmony_ci   * @param { function } callback
109861847f8eSopenharmony_ci   * @returns { VideoAttribute }
109961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
110061847f8eSopenharmony_ci   * @crossplatform
110161847f8eSopenharmony_ci   * @since 10
110261847f8eSopenharmony_ci   */
110361847f8eSopenharmony_ci  /**
110461847f8eSopenharmony_ci   * Called when the video enters and exits the full screen.
110561847f8eSopenharmony_ci   *
110661847f8eSopenharmony_ci   * @param { function } callback
110761847f8eSopenharmony_ci   * @returns { VideoAttribute }
110861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
110961847f8eSopenharmony_ci   * @crossplatform
111061847f8eSopenharmony_ci   * @atomicservice
111161847f8eSopenharmony_ci   * @since 11
111261847f8eSopenharmony_ci   */
111361847f8eSopenharmony_ci  /**
111461847f8eSopenharmony_ci   * Called when the video enters and exits the full screen.
111561847f8eSopenharmony_ci   *
111661847f8eSopenharmony_ci   * @param { Callback<FullscreenInfo> } callback
111761847f8eSopenharmony_ci   * @returns { VideoAttribute }
111861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
111961847f8eSopenharmony_ci   * @crossplatform
112061847f8eSopenharmony_ci   * @atomicservice
112161847f8eSopenharmony_ci   * @since 14
112261847f8eSopenharmony_ci   */
112361847f8eSopenharmony_ci  onFullscreenChange(callback: Callback<FullscreenInfo>): VideoAttribute;
112461847f8eSopenharmony_ci
112561847f8eSopenharmony_ci  /**
112661847f8eSopenharmony_ci   * Called when the video preparation is complete.
112761847f8eSopenharmony_ci   *
112861847f8eSopenharmony_ci   * @param { function } callback
112961847f8eSopenharmony_ci   * @returns { VideoAttribute }
113061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113161847f8eSopenharmony_ci   * @since 7
113261847f8eSopenharmony_ci   */
113361847f8eSopenharmony_ci  /**
113461847f8eSopenharmony_ci   * Called when the video preparation is complete.
113561847f8eSopenharmony_ci   *
113661847f8eSopenharmony_ci   * @param { function } callback
113761847f8eSopenharmony_ci   * @returns { VideoAttribute }
113861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113961847f8eSopenharmony_ci   * @crossplatform
114061847f8eSopenharmony_ci   * @since 10
114161847f8eSopenharmony_ci   */
114261847f8eSopenharmony_ci  /**
114361847f8eSopenharmony_ci   * Called when the video preparation is complete.
114461847f8eSopenharmony_ci   *
114561847f8eSopenharmony_ci   * @param { function } callback
114661847f8eSopenharmony_ci   * @returns { VideoAttribute }
114761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
114861847f8eSopenharmony_ci   * @crossplatform
114961847f8eSopenharmony_ci   * @atomicservice
115061847f8eSopenharmony_ci   * @since 11
115161847f8eSopenharmony_ci   */
115261847f8eSopenharmony_ci  /**
115361847f8eSopenharmony_ci   * Called when the video preparation is complete.
115461847f8eSopenharmony_ci   *
115561847f8eSopenharmony_ci   * @param { Callback<PreparedInfo> } callback
115661847f8eSopenharmony_ci   * @returns { VideoAttribute }
115761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
115861847f8eSopenharmony_ci   * @crossplatform
115961847f8eSopenharmony_ci   * @atomicservice
116061847f8eSopenharmony_ci   * @since 14
116161847f8eSopenharmony_ci   */
116261847f8eSopenharmony_ci  onPrepared(callback: Callback<PreparedInfo>): VideoAttribute;
116361847f8eSopenharmony_ci
116461847f8eSopenharmony_ci  /**
116561847f8eSopenharmony_ci   * Called when the time information is reported when the progress bar process is operated.
116661847f8eSopenharmony_ci   *
116761847f8eSopenharmony_ci   * @param { function } callback
116861847f8eSopenharmony_ci   * @returns { VideoAttribute }
116961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
117061847f8eSopenharmony_ci   * @since 7
117161847f8eSopenharmony_ci   */
117261847f8eSopenharmony_ci  /**
117361847f8eSopenharmony_ci   * Called when the time information is reported when the progress bar process is operated.
117461847f8eSopenharmony_ci   *
117561847f8eSopenharmony_ci   * @param { function } callback
117661847f8eSopenharmony_ci   * @returns { VideoAttribute }
117761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
117861847f8eSopenharmony_ci   * @crossplatform
117961847f8eSopenharmony_ci   * @since 10
118061847f8eSopenharmony_ci   */
118161847f8eSopenharmony_ci  /**
118261847f8eSopenharmony_ci   * Called when the time information is reported when the progress bar process is operated.
118361847f8eSopenharmony_ci   *
118461847f8eSopenharmony_ci   * @param { function } callback
118561847f8eSopenharmony_ci   * @returns { VideoAttribute }
118661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
118761847f8eSopenharmony_ci   * @crossplatform
118861847f8eSopenharmony_ci   * @atomicservice
118961847f8eSopenharmony_ci   * @since 11
119061847f8eSopenharmony_ci   */
119161847f8eSopenharmony_ci  /**
119261847f8eSopenharmony_ci   * Called when the time information is reported when the progress bar process is operated.
119361847f8eSopenharmony_ci   *
119461847f8eSopenharmony_ci   * @param { Callback<PlaybackInfo> } callback
119561847f8eSopenharmony_ci   * @returns { VideoAttribute }
119661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
119761847f8eSopenharmony_ci   * @crossplatform
119861847f8eSopenharmony_ci   * @atomicservice
119961847f8eSopenharmony_ci   * @since 14
120061847f8eSopenharmony_ci   */
120161847f8eSopenharmony_ci  onSeeking(callback: Callback<PlaybackInfo>): VideoAttribute;
120261847f8eSopenharmony_ci
120361847f8eSopenharmony_ci  /**
120461847f8eSopenharmony_ci   * Called when the playback time information is reported after the operation progress bar is completed.
120561847f8eSopenharmony_ci   *
120661847f8eSopenharmony_ci   * @param { function } callback
120761847f8eSopenharmony_ci   * @returns { VideoAttribute }
120861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
120961847f8eSopenharmony_ci   * @since 7
121061847f8eSopenharmony_ci   */
121161847f8eSopenharmony_ci  /**
121261847f8eSopenharmony_ci   * Called when the playback time information is reported after the operation progress bar is completed.
121361847f8eSopenharmony_ci   *
121461847f8eSopenharmony_ci   * @param { function } callback
121561847f8eSopenharmony_ci   * @returns { VideoAttribute }
121661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
121761847f8eSopenharmony_ci   * @crossplatform
121861847f8eSopenharmony_ci   * @since 10
121961847f8eSopenharmony_ci   */
122061847f8eSopenharmony_ci  /**
122161847f8eSopenharmony_ci   * Called when the playback time information is reported after the operation progress bar is completed.
122261847f8eSopenharmony_ci   *
122361847f8eSopenharmony_ci   * @param { function } callback
122461847f8eSopenharmony_ci   * @returns { VideoAttribute }
122561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
122661847f8eSopenharmony_ci   * @crossplatform
122761847f8eSopenharmony_ci   * @atomicservice
122861847f8eSopenharmony_ci   * @since 11
122961847f8eSopenharmony_ci   */
123061847f8eSopenharmony_ci  /**
123161847f8eSopenharmony_ci   * Called when the playback time information is reported after the operation progress bar is completed.
123261847f8eSopenharmony_ci   *
123361847f8eSopenharmony_ci   * @param { Callback<PlaybackInfo> } callback
123461847f8eSopenharmony_ci   * @returns { VideoAttribute }
123561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
123661847f8eSopenharmony_ci   * @crossplatform
123761847f8eSopenharmony_ci   * @atomicservice
123861847f8eSopenharmony_ci   * @since 14
123961847f8eSopenharmony_ci   */
124061847f8eSopenharmony_ci  onSeeked(callback: Callback<PlaybackInfo>): VideoAttribute;
124161847f8eSopenharmony_ci
124261847f8eSopenharmony_ci  /**
124361847f8eSopenharmony_ci   * Called when the playback progress changes.
124461847f8eSopenharmony_ci   *
124561847f8eSopenharmony_ci   * @param { function } callback
124661847f8eSopenharmony_ci   * @returns { VideoAttribute }
124761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
124861847f8eSopenharmony_ci   * @since 7
124961847f8eSopenharmony_ci   */
125061847f8eSopenharmony_ci  /**
125161847f8eSopenharmony_ci   * Called when the playback progress changes.
125261847f8eSopenharmony_ci   *
125361847f8eSopenharmony_ci   * @param { function } callback
125461847f8eSopenharmony_ci   * @returns { VideoAttribute }
125561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
125661847f8eSopenharmony_ci   * @crossplatform
125761847f8eSopenharmony_ci   * @since 10
125861847f8eSopenharmony_ci   */
125961847f8eSopenharmony_ci  /**
126061847f8eSopenharmony_ci   * Called when the playback progress changes.
126161847f8eSopenharmony_ci   *
126261847f8eSopenharmony_ci   * @param { function } callback
126361847f8eSopenharmony_ci   * @returns { VideoAttribute }
126461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
126561847f8eSopenharmony_ci   * @crossplatform
126661847f8eSopenharmony_ci   * @atomicservice
126761847f8eSopenharmony_ci   * @since 11
126861847f8eSopenharmony_ci   */
126961847f8eSopenharmony_ci  /**
127061847f8eSopenharmony_ci   * Called when the playback progress changes.
127161847f8eSopenharmony_ci   *
127261847f8eSopenharmony_ci   * @param { Callback<PlaybackInfo> } callback
127361847f8eSopenharmony_ci   * @returns { VideoAttribute }
127461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
127561847f8eSopenharmony_ci   * @crossplatform
127661847f8eSopenharmony_ci   * @atomicservice
127761847f8eSopenharmony_ci   * @since 14
127861847f8eSopenharmony_ci   */
127961847f8eSopenharmony_ci  onUpdate(callback: Callback<PlaybackInfo>): VideoAttribute;
128061847f8eSopenharmony_ci
128161847f8eSopenharmony_ci  /**
128261847f8eSopenharmony_ci   * Called when playback fails.
128361847f8eSopenharmony_ci   *
128461847f8eSopenharmony_ci   * @param { function } event
128561847f8eSopenharmony_ci   * @returns { VideoAttribute }
128661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
128761847f8eSopenharmony_ci   * @since 7
128861847f8eSopenharmony_ci   */
128961847f8eSopenharmony_ci  /**
129061847f8eSopenharmony_ci   * Called when playback fails.
129161847f8eSopenharmony_ci   *
129261847f8eSopenharmony_ci   * @param { function } event
129361847f8eSopenharmony_ci   * @returns { VideoAttribute }
129461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
129561847f8eSopenharmony_ci   * @crossplatform
129661847f8eSopenharmony_ci   * @since 10
129761847f8eSopenharmony_ci   */
129861847f8eSopenharmony_ci  /**
129961847f8eSopenharmony_ci   * Called when playback fails.
130061847f8eSopenharmony_ci   *
130161847f8eSopenharmony_ci   * @param { function } event
130261847f8eSopenharmony_ci   * @returns { VideoAttribute }
130361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
130461847f8eSopenharmony_ci   * @crossplatform
130561847f8eSopenharmony_ci   * @atomicservice
130661847f8eSopenharmony_ci   * @since 11
130761847f8eSopenharmony_ci   */
130861847f8eSopenharmony_ci  onError(event: () => void): VideoAttribute;
130961847f8eSopenharmony_ci
131061847f8eSopenharmony_ci  /**
131161847f8eSopenharmony_ci   * Called when the video is stopped.
131261847f8eSopenharmony_ci   *
131361847f8eSopenharmony_ci   * @param { Callback<void> } event
131461847f8eSopenharmony_ci   * @returns { VideoAttribute }
131561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
131661847f8eSopenharmony_ci   * @crossplatform
131761847f8eSopenharmony_ci   * @atomicservice
131861847f8eSopenharmony_ci   * @since 12
131961847f8eSopenharmony_ci   */
132061847f8eSopenharmony_ci  onStop(event: Callback<void>): VideoAttribute;
132161847f8eSopenharmony_ci
132261847f8eSopenharmony_ci  /**
132361847f8eSopenharmony_ci   * Enable image analyzer.
132461847f8eSopenharmony_ci   *
132561847f8eSopenharmony_ci   * @param { boolean } enable
132661847f8eSopenharmony_ci   * @returns { VideoAttribute }
132761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
132861847f8eSopenharmony_ci   * @atomicservice
132961847f8eSopenharmony_ci   * @since 12
133061847f8eSopenharmony_ci   */
133161847f8eSopenharmony_ci  enableAnalyzer(enable: boolean): VideoAttribute;
133261847f8eSopenharmony_ci
133361847f8eSopenharmony_ci  /**
133461847f8eSopenharmony_ci   * Set image analyzer with config.
133561847f8eSopenharmony_ci   *
133661847f8eSopenharmony_ci   * @param { ImageAnalyzerConfig } config
133761847f8eSopenharmony_ci   * @returns { VideoAttribute }
133861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
133961847f8eSopenharmony_ci   * @atomicservice
134061847f8eSopenharmony_ci   * @since 12
134161847f8eSopenharmony_ci   */
134261847f8eSopenharmony_ci  analyzerConfig(config: ImageAnalyzerConfig): VideoAttribute;
134361847f8eSopenharmony_ci}
134461847f8eSopenharmony_ci
134561847f8eSopenharmony_ci/**
134661847f8eSopenharmony_ci * Defines Video Component.
134761847f8eSopenharmony_ci *
134861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
134961847f8eSopenharmony_ci * @since 7
135061847f8eSopenharmony_ci */
135161847f8eSopenharmony_ci/**
135261847f8eSopenharmony_ci * Defines Video Component.
135361847f8eSopenharmony_ci *
135461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
135561847f8eSopenharmony_ci * @crossplatform
135661847f8eSopenharmony_ci * @since 10
135761847f8eSopenharmony_ci */
135861847f8eSopenharmony_ci/**
135961847f8eSopenharmony_ci * Defines Video Component.
136061847f8eSopenharmony_ci *
136161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
136261847f8eSopenharmony_ci * @crossplatform
136361847f8eSopenharmony_ci * @atomicservice
136461847f8eSopenharmony_ci * @since 11
136561847f8eSopenharmony_ci */
136661847f8eSopenharmony_cideclare const Video: VideoInterface;
136761847f8eSopenharmony_ci
136861847f8eSopenharmony_ci/**
136961847f8eSopenharmony_ci * Defines Video Component instance.
137061847f8eSopenharmony_ci *
137161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
137261847f8eSopenharmony_ci * @since 7
137361847f8eSopenharmony_ci */
137461847f8eSopenharmony_ci/**
137561847f8eSopenharmony_ci * Defines Video Component instance.
137661847f8eSopenharmony_ci *
137761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
137861847f8eSopenharmony_ci * @crossplatform
137961847f8eSopenharmony_ci * @since 10
138061847f8eSopenharmony_ci */
138161847f8eSopenharmony_ci/**
138261847f8eSopenharmony_ci * Defines Video Component instance.
138361847f8eSopenharmony_ci *
138461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
138561847f8eSopenharmony_ci * @crossplatform
138661847f8eSopenharmony_ci * @atomicservice
138761847f8eSopenharmony_ci * @since 11
138861847f8eSopenharmony_ci */
138961847f8eSopenharmony_cideclare const VideoInstance: VideoAttribute;
1390