• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * Seek mode.
18 *
19 * @enum { number }
20 * @syscap SystemCapability.ArkUI.ArkUI.Full
21 * @since 8
22 */
23/**
24 * Seek mode.
25 *
26 * @enum { number }
27 * @syscap SystemCapability.ArkUI.ArkUI.Full
28 * @crossplatform
29 * @since 10
30 */
31/**
32 * Seek mode.
33 *
34 * @enum { number }
35 * @syscap SystemCapability.ArkUI.ArkUI.Full
36 * @crossplatform
37 * @atomicservice
38 * @since 11
39 */
40declare enum SeekMode {
41  /**
42   * Sync to keyframes before the time point.
43   *
44   * @syscap SystemCapability.ArkUI.ArkUI.Full
45   * @since 8
46   */
47  /**
48   * Sync to keyframes before the time point.
49   *
50   * @syscap SystemCapability.ArkUI.ArkUI.Full
51   * @crossplatform
52   * @since 10
53   */
54  /**
55   * Sync to keyframes before the time point.
56   *
57   * @syscap SystemCapability.ArkUI.ArkUI.Full
58   * @crossplatform
59   * @atomicservice
60   * @since 11
61   */
62  PreviousKeyframe,
63
64  /**
65   * Sync to keyframes after the time point.
66   *
67   * @syscap SystemCapability.ArkUI.ArkUI.Full
68   * @since 8
69   */
70  /**
71   * Sync to keyframes after the time point.
72   *
73   * @syscap SystemCapability.ArkUI.ArkUI.Full
74   * @crossplatform
75   * @since 10
76   */
77  /**
78   * Sync to keyframes after the time point.
79   *
80   * @syscap SystemCapability.ArkUI.ArkUI.Full
81   * @crossplatform
82   * @atomicservice
83   * @since 11
84   */
85  NextKeyframe,
86
87  /**
88   * Sync to closest keyframes.
89   *
90   * @syscap SystemCapability.ArkUI.ArkUI.Full
91   * @since 8
92   */
93  /**
94   * Sync to closest keyframes.
95   *
96   * @syscap SystemCapability.ArkUI.ArkUI.Full
97   * @crossplatform
98   * @since 10
99   */
100  /**
101   * Sync to closest keyframes.
102   *
103   * @syscap SystemCapability.ArkUI.ArkUI.Full
104   * @crossplatform
105   * @atomicservice
106   * @since 11
107   */
108  ClosestKeyframe,
109
110  /**
111   * Seek to frames closest the time point.
112   *
113   * @syscap SystemCapability.ArkUI.ArkUI.Full
114   * @since 8
115   */
116  /**
117   * Seek to frames closest the time point.
118   *
119   * @syscap SystemCapability.ArkUI.ArkUI.Full
120   * @crossplatform
121   * @since 10
122   */
123  /**
124   * Seek to frames closest the time point.
125   *
126   * @syscap SystemCapability.ArkUI.ArkUI.Full
127   * @crossplatform
128   * @atomicservice
129   * @since 11
130   */
131  Accurate,
132}
133
134/**
135 * playback speed.
136 *
137 * @enum { number }
138 * @syscap SystemCapability.ArkUI.ArkUI.Full
139 * @since 8
140 */
141/**
142 * playback speed.
143 *
144 * @enum { number }
145 * @syscap SystemCapability.ArkUI.ArkUI.Full
146 * @crossplatform
147 * @since 10
148 */
149/**
150 * playback speed.
151 *
152 * @enum { number }
153 * @syscap SystemCapability.ArkUI.ArkUI.Full
154 * @crossplatform
155 * @atomicservice
156 * @since 11
157 */
158declare enum PlaybackSpeed {
159  /**
160   * 0.75x speed playback.
161   *
162   * @syscap SystemCapability.ArkUI.ArkUI.Full
163   * @since 8
164   */
165  /**
166   * 0.75x speed playback.
167   *
168   * @syscap SystemCapability.ArkUI.ArkUI.Full
169   * @crossplatform
170   * @since 10
171   */
172  /**
173   * 0.75x speed playback.
174   *
175   * @syscap SystemCapability.ArkUI.ArkUI.Full
176   * @crossplatform
177   * @atomicservice
178   * @since 11
179   */
180  Speed_Forward_0_75_X,
181
182  /**
183   * 1.00x speed playback.
184   *
185   * @syscap SystemCapability.ArkUI.ArkUI.Full
186   * @since 8
187   */
188  /**
189   * 1.00x speed playback.
190   *
191   * @syscap SystemCapability.ArkUI.ArkUI.Full
192   * @crossplatform
193   * @since 10
194   */
195  /**
196   * 1.00x speed playback.
197   *
198   * @syscap SystemCapability.ArkUI.ArkUI.Full
199   * @crossplatform
200   * @atomicservice
201   * @since 11
202   */
203  Speed_Forward_1_00_X,
204
205  /**
206   * 1.25x speed playback.
207   *
208   * @syscap SystemCapability.ArkUI.ArkUI.Full
209   * @since 8
210   */
211  /**
212   * 1.25x speed playback.
213   *
214   * @syscap SystemCapability.ArkUI.ArkUI.Full
215   * @crossplatform
216   * @since 10
217   */
218  /**
219   * 1.25x speed playback.
220   *
221   * @syscap SystemCapability.ArkUI.ArkUI.Full
222   * @crossplatform
223   * @atomicservice
224   * @since 11
225   */
226  Speed_Forward_1_25_X,
227
228  /**
229   * 1.75x speed playback.
230   *
231   * @syscap SystemCapability.ArkUI.ArkUI.Full
232   * @since 8
233   */
234  /**
235   * 1.75x speed playback.
236   *
237   * @syscap SystemCapability.ArkUI.ArkUI.Full
238   * @crossplatform
239   * @since 10
240   */
241  /**
242   * 1.75x speed playback.
243   *
244   * @syscap SystemCapability.ArkUI.ArkUI.Full
245   * @crossplatform
246   * @atomicservice
247   * @since 11
248   */
249  Speed_Forward_1_75_X,
250
251  /**
252   * 2.00x speed playback.
253   *
254   * @syscap SystemCapability.ArkUI.ArkUI.Full
255   * @since 8
256   */
257  /**
258   * 2.00x speed playback.
259   *
260   * @syscap SystemCapability.ArkUI.ArkUI.Full
261   * @crossplatform
262   * @since 10
263   */
264  /**
265   * 2.00x speed playback.
266   *
267   * @syscap SystemCapability.ArkUI.ArkUI.Full
268   * @crossplatform
269   * @atomicservice
270   * @since 11
271   */
272  Speed_Forward_2_00_X,
273}
274
275/**
276 * Defines the video options.
277 *
278 * @interface VideoOptions
279 * @syscap SystemCapability.ArkUI.ArkUI.Full
280 * @since 7
281 */
282/**
283 * Defines the video options.
284 *
285 * @interface VideoOptions
286 * @syscap SystemCapability.ArkUI.ArkUI.Full
287 * @crossplatform
288 * @since 10
289 */
290/**
291 * Defines the video options.
292 *
293 * @interface VideoOptions
294 * @syscap SystemCapability.ArkUI.ArkUI.Full
295 * @crossplatform
296 * @atomicservice
297 * @since 11
298 */
299declare interface VideoOptions {
300  /**
301   * src of video.
302   *
303   * @type { ?(string | Resource) }
304   * @syscap SystemCapability.ArkUI.ArkUI.Full
305   * @since 7
306   */
307  /**
308   * src of video.
309   *
310   * @type { ?(string | Resource) }
311   * @syscap SystemCapability.ArkUI.ArkUI.Full
312   * @crossplatform
313   * @since 10
314   */
315  /**
316   * src of video.
317   *
318   * @type { ?(string | Resource) }
319   * @syscap SystemCapability.ArkUI.ArkUI.Full
320   * @crossplatform
321   * @atomicservice
322   * @since 11
323   */
324  src?: string | Resource;
325
326  /**
327   * playback rate of video.
328   *
329   * @type { ?(number | string | PlaybackSpeed) }
330   * @syscap SystemCapability.ArkUI.ArkUI.Full
331   * @since 7
332   */
333  /**
334   * playback rate of video.
335   *
336   * @type { ?(number | string | PlaybackSpeed) }
337   * @syscap SystemCapability.ArkUI.ArkUI.Full
338   * @crossplatform
339   * @since 10
340   */
341  /**
342   * playback rate of video.
343   *
344   * @type { ?(number | string | PlaybackSpeed) }
345   * @syscap SystemCapability.ArkUI.ArkUI.Full
346   * @crossplatform
347   * @atomicservice
348   * @since 11
349   */
350  currentProgressRate?: number | string | PlaybackSpeed;
351
352  /**
353   * preview uri of video.
354   *
355   * @type { ?(string | PixelMap | Resource) }
356   * @syscap SystemCapability.ArkUI.ArkUI.Full
357   * @since 7
358   */
359  /**
360   * preview uri of video.
361   *
362   * @type { ?(string | PixelMap | Resource) }
363   * @syscap SystemCapability.ArkUI.ArkUI.Full
364   * @crossplatform
365   * @since 10
366   */
367  /**
368   * preview uri of video.
369   *
370   * @type { ?(string | PixelMap | Resource) }
371   * @syscap SystemCapability.ArkUI.ArkUI.Full
372   * @crossplatform
373   * @atomicservice
374   * @since 11
375   */
376  previewUri?: string | PixelMap | Resource;
377
378  /**
379   * controller of video.
380   *
381   * @type { ?VideoController }
382   * @syscap SystemCapability.ArkUI.ArkUI.Full
383   * @since 7
384   */
385  /**
386   * controller of video.
387   *
388   * @type { ?VideoController }
389   * @syscap SystemCapability.ArkUI.ArkUI.Full
390   * @crossplatform
391   * @since 10
392   */
393  /**
394   * controller of video.
395   *
396   * @type { ?VideoController }
397   * @syscap SystemCapability.ArkUI.ArkUI.Full
398   * @crossplatform
399   * @atomicservice
400   * @since 11
401   */
402  controller?: VideoController;
403}
404
405/**
406 * Defines the video controller.
407 *
408 * @syscap SystemCapability.ArkUI.ArkUI.Full
409 * @since 7
410 */
411/**
412 * Defines the video controller.
413 *
414 * @syscap SystemCapability.ArkUI.ArkUI.Full
415 * @crossplatform
416 * @since 10
417 */
418/**
419 * Defines the video controller.
420 *
421 * @syscap SystemCapability.ArkUI.ArkUI.Full
422 * @crossplatform
423 * @atomicservice
424 * @since 11
425 */
426declare class VideoController {
427  /**
428   * constructor.
429   *
430   * @syscap SystemCapability.ArkUI.ArkUI.Full
431   * @since 7
432   */
433  /**
434   * constructor.
435   *
436   * @syscap SystemCapability.ArkUI.ArkUI.Full
437   * @crossplatform
438   * @since 10
439   */
440  /**
441   * constructor.
442   *
443   * @syscap SystemCapability.ArkUI.ArkUI.Full
444   * @crossplatform
445   * @atomicservice
446   * @since 11
447   */
448  constructor();
449
450  /**
451   * Provides events to play.
452   *
453   * @syscap SystemCapability.ArkUI.ArkUI.Full
454   * @since 7
455   */
456  /**
457   * Provides events to play.
458   *
459   * @syscap SystemCapability.ArkUI.ArkUI.Full
460   * @crossplatform
461   * @since 10
462   */
463  /**
464   * Provides events to play.
465   *
466   * @syscap SystemCapability.ArkUI.ArkUI.Full
467   * @crossplatform
468   * @atomicservice
469   * @since 11
470   */
471  start();
472
473  /**
474   * Provides a pause event for playback.
475   *
476   * @syscap SystemCapability.ArkUI.ArkUI.Full
477   * @since 7
478   */
479  /**
480   * Provides a pause event for playback.
481   *
482   * @syscap SystemCapability.ArkUI.ArkUI.Full
483   * @crossplatform
484   * @since 10
485   */
486  /**
487   * Provides a pause event for playback.
488   *
489   * @syscap SystemCapability.ArkUI.ArkUI.Full
490   * @crossplatform
491   * @atomicservice
492   * @since 11
493   */
494  pause();
495
496  /**
497   * Provides an event to stop playback.
498   *
499   * @syscap SystemCapability.ArkUI.ArkUI.Full
500   * @since 7
501   */
502  /**
503   * Provides an event to stop playback.
504   *
505   * @syscap SystemCapability.ArkUI.ArkUI.Full
506   * @crossplatform
507   * @since 10
508   */
509  /**
510   * Provides an event to stop playback.
511   *
512   * @syscap SystemCapability.ArkUI.ArkUI.Full
513   * @crossplatform
514   * @atomicservice
515   * @since 11
516   */
517  stop();
518
519  /**
520   * Provide the progress method of video playback.
521   *
522   * @param { number } value
523   * @syscap SystemCapability.ArkUI.ArkUI.Full
524   * @since 7
525   */
526  /**
527   * Provide the progress method of video playback.
528   *
529   * @param { number } value
530   * @syscap SystemCapability.ArkUI.ArkUI.Full
531   * @crossplatform
532   * @since 10
533   */
534  /**
535   * Provide the progress method of video playback.
536   *
537   * @param { number } value
538   * @syscap SystemCapability.ArkUI.ArkUI.Full
539   * @crossplatform
540   * @atomicservice
541   * @since 11
542   */
543  setCurrentTime(value: number);
544
545  /**
546   * Provides a full screen playback method.
547   *
548   * @param { boolean } value
549   * @syscap SystemCapability.ArkUI.ArkUI.Full
550   * @since 7
551   */
552  /**
553   * Provides a full screen playback method.
554   *
555   * @param { boolean } value
556   * @syscap SystemCapability.ArkUI.ArkUI.Full
557   * @crossplatform
558   * @since 10
559   */
560  /**
561   * Provides a full screen playback method.
562   *
563   * @param { boolean } value
564   * @syscap SystemCapability.ArkUI.ArkUI.Full
565   * @crossplatform
566   * @atomicservice
567   * @since 11
568   */
569  requestFullscreen(value: boolean);
570
571  /**
572   * Provides a method to exit full screen playback.
573   *
574   * @syscap SystemCapability.ArkUI.ArkUI.Full
575   * @since 7
576   */
577  /**
578   * Provides a method to exit full screen playback.
579   *
580   * @syscap SystemCapability.ArkUI.ArkUI.Full
581   * @crossplatform
582   * @since 10
583   */
584  /**
585   * Provides a method to exit full screen playback.
586   *
587   * @syscap SystemCapability.ArkUI.ArkUI.Full
588   * @crossplatform
589   * @atomicservice
590   * @since 11
591   */
592  exitFullscreen();
593
594  /**
595   * Provide the progress method of video playback.
596   *
597   * @param { number } value
598   * @param { SeekMode } seekMode
599   * @syscap SystemCapability.ArkUI.ArkUI.Full
600   * @since 8
601   */
602  /**
603   * Provide the progress method of video playback.
604   *
605   * @param { number } value
606   * @param { SeekMode } seekMode
607   * @syscap SystemCapability.ArkUI.ArkUI.Full
608   * @crossplatform
609   * @since 10
610   */
611  /**
612   * Provide the progress method of video playback.
613   *
614   * @param { number } value
615   * @param { SeekMode } seekMode
616   * @syscap SystemCapability.ArkUI.ArkUI.Full
617   * @crossplatform
618   * @atomicservice
619   * @since 11
620   */
621  setCurrentTime(value: number, seekMode: SeekMode);
622}
623
624/**
625 * Defines the video interface.
626 *
627 * @interface VideoInterface
628 * @syscap SystemCapability.ArkUI.ArkUI.Full
629 * @since 7
630 */
631/**
632 * Defines the video interface.
633 *
634 * @interface VideoInterface
635 * @syscap SystemCapability.ArkUI.ArkUI.Full
636 * @crossplatform
637 * @since 10
638 */
639/**
640 * Defines the video interface.
641 *
642 * @interface VideoInterface
643 * @syscap SystemCapability.ArkUI.ArkUI.Full
644 * @crossplatform
645 * @atomicservice
646 * @since 11
647 */
648interface VideoInterface {
649  /**
650   * Set the value.
651   *
652   * @param { VideoOptions } value
653   * @returns { VideoAttribute }
654   * @syscap SystemCapability.ArkUI.ArkUI.Full
655   * @since 7
656   */
657  /**
658   * Set the value.
659   *
660   * @param { VideoOptions } value
661   * @returns { VideoAttribute }
662   * @syscap SystemCapability.ArkUI.ArkUI.Full
663   * @crossplatform
664   * @since 10
665   */
666  /**
667   * Set the value.
668   *
669   * @param { VideoOptions } value
670   * @returns { VideoAttribute }
671   * @syscap SystemCapability.ArkUI.ArkUI.Full
672   * @crossplatform
673   * @atomicservice
674   * @since 11
675   */
676  (value: VideoOptions): VideoAttribute;
677}
678
679/**
680 * Defines the video attribute functions.
681 *
682 * @extends CommonMethod<VideoAttribute>
683 * @syscap SystemCapability.ArkUI.ArkUI.Full
684 * @since 7
685 */
686/**
687 * Defines the video attribute functions.
688 *
689 * @extends CommonMethod<VideoAttribute>
690 * @syscap SystemCapability.ArkUI.ArkUI.Full
691 * @crossplatform
692 * @since 10
693 */
694/**
695 * Defines the video attribute functions.
696 *
697 * @extends CommonMethod<VideoAttribute>
698 * @syscap SystemCapability.ArkUI.ArkUI.Full
699 * @crossplatform
700 * @atomicservice
701 * @since 11
702 */
703declare class VideoAttribute extends CommonMethod<VideoAttribute> {
704  /**
705   * Called when judging whether the video is muted.
706   *
707   * @param { boolean } value
708   * @returns { VideoAttribute }
709   * @syscap SystemCapability.ArkUI.ArkUI.Full
710   * @since 7
711   */
712  /**
713   * Called when judging whether the video is muted.
714   *
715   * @param { boolean } value
716   * @returns { VideoAttribute }
717   * @syscap SystemCapability.ArkUI.ArkUI.Full
718   * @crossplatform
719   * @since 10
720   */
721  /**
722   * Called when judging whether the video is muted.
723   *
724   * @param { boolean } value
725   * @returns { VideoAttribute }
726   * @syscap SystemCapability.ArkUI.ArkUI.Full
727   * @crossplatform
728   * @atomicservice
729   * @since 11
730   */
731  muted(value: boolean): VideoAttribute;
732
733  /**
734   * Called when judging whether the video is played automatically.
735   *
736   * @param { boolean } value
737   * @returns { VideoAttribute }
738   * @syscap SystemCapability.ArkUI.ArkUI.Full
739   * @since 7
740   */
741  /**
742   * Called when judging whether the video is played automatically.
743   *
744   * @param { boolean } value
745   * @returns { VideoAttribute }
746   * @syscap SystemCapability.ArkUI.ArkUI.Full
747   * @crossplatform
748   * @since 10
749   */
750  /**
751   * Called when judging whether the video is played automatically.
752   *
753   * @param { boolean } value
754   * @returns { VideoAttribute }
755   * @syscap SystemCapability.ArkUI.ArkUI.Full
756   * @crossplatform
757   * @atomicservice
758   * @since 11
759   */
760  autoPlay(value: boolean): VideoAttribute;
761
762  /**
763   * Called when judging whether the control bar is displayed.
764   *
765   * @param { boolean } value
766   * @returns { VideoAttribute }
767   * @syscap SystemCapability.ArkUI.ArkUI.Full
768   * @since 7
769   */
770  /**
771   * Called when judging whether the control bar is displayed.
772   *
773   * @param { boolean } value
774   * @returns { VideoAttribute }
775   * @syscap SystemCapability.ArkUI.ArkUI.Full
776   * @crossplatform
777   * @since 10
778   */
779  /**
780   * Called when judging whether the control bar is displayed.
781   *
782   * @param { boolean } value
783   * @returns { VideoAttribute }
784   * @syscap SystemCapability.ArkUI.ArkUI.Full
785   * @crossplatform
786   * @atomicservice
787   * @since 11
788   */
789  controls(value: boolean): VideoAttribute;
790
791  /**
792   * Called when judging whether the video is played circular.
793   *
794   * @param { boolean } value
795   * @returns { VideoAttribute }
796   * @syscap SystemCapability.ArkUI.ArkUI.Full
797   * @since 6
798   */
799  /**
800   * Called when judging whether the video is played circular.
801   *
802   * @param { boolean } value
803   * @returns { VideoAttribute }
804   * @syscap SystemCapability.ArkUI.ArkUI.Full
805   * @crossplatform
806   * @since 10
807   */
808  /**
809   * Called when judging whether the video is played circular.
810   *
811   * @param { boolean } value
812   * @returns { VideoAttribute }
813   * @syscap SystemCapability.ArkUI.ArkUI.Full
814   * @crossplatform
815   * @atomicservice
816   * @since 11
817   */
818  loop(value: boolean): VideoAttribute;
819
820  /**
821   * Called when determining the zoom type of the video source.
822   *
823   * @param { ImageFit } value
824   * @returns { VideoAttribute }
825   * @syscap SystemCapability.ArkUI.ArkUI.Full
826   * @since 7
827   */
828  /**
829   * Called when determining the zoom type of the video source.
830   *
831   * @param { ImageFit } value
832   * @returns { VideoAttribute }
833   * @syscap SystemCapability.ArkUI.ArkUI.Full
834   * @crossplatform
835   * @since 10
836   */
837  /**
838   * Called when determining the zoom type of the video source.
839   *
840   * @param { ImageFit } value
841   * @returns { VideoAttribute }
842   * @syscap SystemCapability.ArkUI.ArkUI.Full
843   * @crossplatform
844   * @atomicservice
845   * @since 11
846   */
847  objectFit(value: ImageFit): VideoAttribute;
848
849  /**
850   * Called when the video is played.
851   *
852   * @param { function } event
853   * @returns { VideoAttribute }
854   * @syscap SystemCapability.ArkUI.ArkUI.Full
855   * @since 7
856   */
857  /**
858   * Called when the video is played.
859   *
860   * @param { function } event
861   * @returns { VideoAttribute }
862   * @syscap SystemCapability.ArkUI.ArkUI.Full
863   * @crossplatform
864   * @since 10
865   */
866  /**
867   * Called when the video is played.
868   *
869   * @param { function } event
870   * @returns { VideoAttribute }
871   * @syscap SystemCapability.ArkUI.ArkUI.Full
872   * @crossplatform
873   * @atomicservice
874   * @since 11
875   */
876  onStart(event: () => void): VideoAttribute;
877
878  /**
879   * Called when the video is paused.
880   *
881   * @param { function } event
882   * @returns { VideoAttribute }
883   * @syscap SystemCapability.ArkUI.ArkUI.Full
884   * @since 7
885   */
886  /**
887   * Called when the video is paused.
888   *
889   * @param { function } event
890   * @returns { VideoAttribute }
891   * @syscap SystemCapability.ArkUI.ArkUI.Full
892   * @crossplatform
893   * @since 10
894   */
895  /**
896   * Called when the video is paused.
897   *
898   * @param { function } event
899   * @returns { VideoAttribute }
900   * @syscap SystemCapability.ArkUI.ArkUI.Full
901   * @crossplatform
902   * @atomicservice
903   * @since 11
904   */
905  onPause(event: () => void): VideoAttribute;
906
907  /**
908   * Called when the video playback ends.
909   *
910   * @param { function } event
911   * @returns { VideoAttribute }
912   * @syscap SystemCapability.ArkUI.ArkUI.Full
913   * @since 7
914   */
915  /**
916   * Called when the video playback ends.
917   *
918   * @param { function } event
919   * @returns { VideoAttribute }
920   * @syscap SystemCapability.ArkUI.ArkUI.Full
921   * @crossplatform
922   * @since 10
923   */
924  /**
925   * Called when the video playback ends.
926   *
927   * @param { function } event
928   * @returns { VideoAttribute }
929   * @syscap SystemCapability.ArkUI.ArkUI.Full
930   * @crossplatform
931   * @atomicservice
932   * @since 11
933   */
934  onFinish(event: () => void): VideoAttribute;
935
936  /**
937   * Called when the video enters and exits the full screen.
938   *
939   * @param { function } callback
940   * @returns { VideoAttribute }
941   * @syscap SystemCapability.ArkUI.ArkUI.Full
942   * @since 7
943   */
944  /**
945   * Called when the video enters and exits the full screen.
946   *
947   * @param { function } callback
948   * @returns { VideoAttribute }
949   * @syscap SystemCapability.ArkUI.ArkUI.Full
950   * @crossplatform
951   * @since 10
952   */
953  /**
954   * Called when the video enters and exits the full screen.
955   *
956   * @param { function } callback
957   * @returns { VideoAttribute }
958   * @syscap SystemCapability.ArkUI.ArkUI.Full
959   * @crossplatform
960   * @atomicservice
961   * @since 11
962   */
963  onFullscreenChange(callback: (event: {
964    /**
965     * Play the flag in full screen.
966     *
967     * @syscap SystemCapability.ArkUI.ArkUI.Full
968     * @crossplatform
969     * @since 10
970     */
971    /**
972     * Play the flag in full screen.
973     *
974     * @syscap SystemCapability.ArkUI.ArkUI.Full
975     * @crossplatform
976     * @atomicservice
977     * @since 11
978     */
979    fullscreen: boolean
980  }) => void): VideoAttribute;
981
982  /**
983   * Called when the video preparation is complete.
984   *
985   * @param { function } callback
986   * @returns { VideoAttribute }
987   * @syscap SystemCapability.ArkUI.ArkUI.Full
988   * @since 7
989   */
990  /**
991   * Called when the video preparation is complete.
992   *
993   * @param { function } callback
994   * @returns { VideoAttribute }
995   * @syscap SystemCapability.ArkUI.ArkUI.Full
996   * @crossplatform
997   * @since 10
998   */
999  /**
1000   * Called when the video preparation is complete.
1001   *
1002   * @param { function } callback
1003   * @returns { VideoAttribute }
1004   * @syscap SystemCapability.ArkUI.ArkUI.Full
1005   * @crossplatform
1006   * @atomicservice
1007   * @since 11
1008   */
1009  onPrepared(callback: (event: {
1010    /**
1011     * Playback duration.
1012     *
1013     * @syscap SystemCapability.ArkUI.ArkUI.Full
1014     * @crossplatform
1015     * @since 10
1016     */
1017    /**
1018     * Playback duration.
1019     *
1020     * @syscap SystemCapability.ArkUI.ArkUI.Full
1021     * @crossplatform
1022     * @atomicservice
1023     * @since 11
1024     */
1025    duration: number
1026  }) => void): VideoAttribute;
1027
1028  /**
1029   * Called when the time information is reported when the progress bar process is operated.
1030   *
1031   * @param { function } callback
1032   * @returns { VideoAttribute }
1033   * @syscap SystemCapability.ArkUI.ArkUI.Full
1034   * @since 7
1035   */
1036  /**
1037   * Called when the time information is reported when the progress bar process is operated.
1038   *
1039   * @param { function } callback
1040   * @returns { VideoAttribute }
1041   * @syscap SystemCapability.ArkUI.ArkUI.Full
1042   * @crossplatform
1043   * @since 10
1044   */
1045  /**
1046   * Called when the time information is reported when the progress bar process is operated.
1047   *
1048   * @param { function } callback
1049   * @returns { VideoAttribute }
1050   * @syscap SystemCapability.ArkUI.ArkUI.Full
1051   * @crossplatform
1052   * @atomicservice
1053   * @since 11
1054   */
1055  onSeeking(callback: (event: {
1056    /**
1057     * Play time.
1058     *
1059     * @syscap SystemCapability.ArkUI.ArkUI.Full
1060     * @crossplatform
1061     * @since 10
1062     */
1063    /**
1064     * Play time.
1065     *
1066     * @syscap SystemCapability.ArkUI.ArkUI.Full
1067     * @crossplatform
1068     * @atomicservice
1069     * @since 11
1070     */
1071    time: number
1072  }) => void): VideoAttribute;
1073
1074  /**
1075   * Called when the playback time information is reported after the operation progress bar is completed.
1076   *
1077   * @param { function } callback
1078   * @returns { VideoAttribute }
1079   * @syscap SystemCapability.ArkUI.ArkUI.Full
1080   * @since 7
1081   */
1082  /**
1083   * Called when the playback time information is reported after the operation progress bar is completed.
1084   *
1085   * @param { function } callback
1086   * @returns { VideoAttribute }
1087   * @syscap SystemCapability.ArkUI.ArkUI.Full
1088   * @crossplatform
1089   * @since 10
1090   */
1091  /**
1092   * Called when the playback time information is reported after the operation progress bar is completed.
1093   *
1094   * @param { function } callback
1095   * @returns { VideoAttribute }
1096   * @syscap SystemCapability.ArkUI.ArkUI.Full
1097   * @crossplatform
1098   * @atomicservice
1099   * @since 11
1100   */
1101  onSeeked(callback: (event: {
1102    /**
1103     * Play time.
1104     *
1105     * @syscap SystemCapability.ArkUI.ArkUI.Full
1106     * @crossplatform
1107     * @since 10
1108     */
1109    /**
1110     * Play time.
1111     *
1112     * @syscap SystemCapability.ArkUI.ArkUI.Full
1113     * @crossplatform
1114     * @atomicservice
1115     * @since 11
1116     */
1117    time: number
1118  }) => void): VideoAttribute;
1119
1120  /**
1121   * Called when the playback progress changes.
1122   *
1123   * @param { function } callback
1124   * @returns { VideoAttribute }
1125   * @syscap SystemCapability.ArkUI.ArkUI.Full
1126   * @since 7
1127   */
1128  /**
1129   * Called when the playback progress changes.
1130   *
1131   * @param { function } callback
1132   * @returns { VideoAttribute }
1133   * @syscap SystemCapability.ArkUI.ArkUI.Full
1134   * @crossplatform
1135   * @since 10
1136   */
1137  /**
1138   * Called when the playback progress changes.
1139   *
1140   * @param { function } callback
1141   * @returns { VideoAttribute }
1142   * @syscap SystemCapability.ArkUI.ArkUI.Full
1143   * @crossplatform
1144   * @atomicservice
1145   * @since 11
1146   */
1147  onUpdate(callback: (event: {
1148    /**
1149     * Play time.
1150     *
1151     * @syscap SystemCapability.ArkUI.ArkUI.Full
1152     * @crossplatform
1153     * @since 10
1154     */
1155    /**
1156     * Play time.
1157     *
1158     * @syscap SystemCapability.ArkUI.ArkUI.Full
1159     * @crossplatform
1160     * @atomicservice
1161     * @since 11
1162     */
1163    time: number
1164  }) => void): VideoAttribute;
1165
1166  /**
1167   * Called when playback fails.
1168   *
1169   * @param { function } event
1170   * @returns { VideoAttribute }
1171   * @syscap SystemCapability.ArkUI.ArkUI.Full
1172   * @since 7
1173   */
1174  /**
1175   * Called when playback fails.
1176   *
1177   * @param { function } event
1178   * @returns { VideoAttribute }
1179   * @syscap SystemCapability.ArkUI.ArkUI.Full
1180   * @crossplatform
1181   * @since 10
1182   */
1183  /**
1184   * Called when playback fails.
1185   *
1186   * @param { function } event
1187   * @returns { VideoAttribute }
1188   * @syscap SystemCapability.ArkUI.ArkUI.Full
1189   * @crossplatform
1190   * @atomicservice
1191   * @since 11
1192   */
1193  onError(event: () => void): VideoAttribute;
1194}
1195
1196/**
1197 * Defines Video Component.
1198 *
1199 * @syscap SystemCapability.ArkUI.ArkUI.Full
1200 * @since 7
1201 */
1202/**
1203 * Defines Video Component.
1204 *
1205 * @syscap SystemCapability.ArkUI.ArkUI.Full
1206 * @crossplatform
1207 * @since 10
1208 */
1209/**
1210 * Defines Video Component.
1211 *
1212 * @syscap SystemCapability.ArkUI.ArkUI.Full
1213 * @crossplatform
1214 * @atomicservice
1215 * @since 11
1216 */
1217declare const Video: VideoInterface;
1218
1219/**
1220 * Defines Video Component instance.
1221 *
1222 * @syscap SystemCapability.ArkUI.ArkUI.Full
1223 * @since 7
1224 */
1225/**
1226 * Defines Video Component instance.
1227 *
1228 * @syscap SystemCapability.ArkUI.ArkUI.Full
1229 * @crossplatform
1230 * @since 10
1231 */
1232/**
1233 * Defines Video Component instance.
1234 *
1235 * @syscap SystemCapability.ArkUI.ArkUI.Full
1236 * @crossplatform
1237 * @atomicservice
1238 * @since 11
1239 */
1240declare const VideoInstance: VideoAttribute;
1241