1{ 2 "name": "video", 3 "version": [ 4 { 5 "name": "v3.0" 6 } 7 ], 8 "syscap": [ 9 "SystemCapability.ArkUI.ArkUI.Full" 10 ], 11 "description": [ 12 { 13 "name": "The <video> component provides a video player." 14 } 15 ], 16 "attributes": [ 17 { 18 "name": "muted", 19 "required": false, 20 "description": [ 21 { 22 "name": "Whether a video is muted." 23 } 24 ], 25 "type": "enum", 26 "options": [ 27 { 28 "name": "true" 29 }, 30 { 31 "name": "false" 32 } 33 ] 34 }, 35 { 36 "name": "src", 37 "required": false, 38 "description": [ 39 { 40 "name": "URI of the video content to play." 41 } 42 ], 43 "type": "string" 44 }, 45 { 46 "name": "autoplay", 47 "required": false, 48 "description": [ 49 { 50 "name": "Whether a video is played automatically after being rendered." 51 } 52 ], 53 "type": "enum", 54 "options": [ 55 { 56 "name": "true" 57 }, 58 { 59 "name": "false" 60 } 61 ] 62 }, 63 { 64 "name": "poster", 65 "required": false, 66 "description": [ 67 { 68 "name": "Preview poster of a video." 69 } 70 ], 71 "type": "string" 72 }, 73 { 74 "name": "loop", 75 "version": [ 76 { 77 "name": "v6.0" 78 } 79 ], 80 "required": false, 81 "description": [ 82 { 83 "name": "Whether the video play from the beginning." 84 } 85 ], 86 "type": "enum", 87 "options": [ 88 { 89 "name": "true" 90 }, 91 { 92 "name": "false" 93 } 94 ] 95 }, 96 { 97 "name": "controls", 98 "required": false, 99 "description": [ 100 { 101 "name": "Whether the control bar is displayed during video playback. If the value is set to false, the control bar is not displayed. The default value is true, and the platform can either show or hide the control bar." 102 } 103 ], 104 "type": "enum", 105 "options": [ 106 { 107 "name": "true" 108 }, 109 { 110 "name": "false" 111 } 112 ] 113 }, 114 { 115 "name": "starttime", 116 "version": [ 117 { 118 "name": "v6.0" 119 } 120 ], 121 "required": false, 122 "description": [ 123 { 124 "name": "Where the video starts playing." 125 } 126 ], 127 "type": "number" 128 }, 129 { 130 "name": "direction", 131 "version": [ 132 { 133 "name": "v6.0" 134 } 135 ], 136 "required": false, 137 "description": [ 138 { 139 "name": "Controls the layout mode of the Video component in full-screen mode. Set this parameter tovertical. Set this parameter tohorizontal. Set this parameter to auto. In full-screen mode, the video is displayed in landscape or portrait mode based on the width and height. If this parameter is set to adapt, the video is displayed in landscape or portrait mode based on the device direction." 140 } 141 ], 142 "type": "string" 143 }, 144 { 145 "name": "speed", 146 "version": [ 147 { 148 "name": "v6.0" 149 } 150 ], 151 "required": false, 152 "description": [ 153 { 154 "name": "Controls the video playback speed. A larger value indicates a faster video playback speed.The value ranges from 0.1 to 20.0. The precision is float." 155 } 156 ], 157 "type": "number" 158 }, 159 { 160 "name": "id", 161 "required": false, 162 "description": [ 163 { 164 "name": "Unique ID of a component." 165 } 166 ], 167 "type": "string" 168 }, 169 { 170 "name": "style", 171 "required": false, 172 "description": [ 173 { 174 "name": "Style declaration of a component." 175 } 176 ], 177 "type": "string" 178 }, 179 { 180 "name": "class", 181 "required": false, 182 "description": [ 183 { 184 "name": "Style class of a component, which is used to refer to a style table." 185 } 186 ], 187 "type": "string" 188 }, 189 { 190 "name": "ref", 191 "required": false, 192 "description": [ 193 { 194 "name": "Used to register reference information for elements or child components. The reference information is registered with the parent component on $refs." 195 } 196 ], 197 "type": "string" 198 }, 199 { 200 "name": "disabled", 201 "required": false, 202 "description": [ 203 { 204 "name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction." 205 } 206 ], 207 "type": "enum", 208 "options": [ 209 { 210 "name": "true" 211 }, 212 { 213 "name": "false" 214 } 215 ] 216 }, 217 { 218 "name": "focusable", 219 "required": false, 220 "description": [ 221 { 222 "name": "Whether the component can gain the focus. When focusable is set to true, the component can gain the focus if there is a focusable child component. If this attribute is set to false, the component and its child components cannot gain the focus." 223 } 224 ], 225 "type": "enum", 226 "options": [ 227 { 228 "name": "true" 229 }, 230 { 231 "name": "false" 232 } 233 ] 234 }, 235 { 236 "name": "data-*", 237 "required": false, 238 "description": [ 239 { 240 "name": "Attribute set for components to facilitate data storage and reading." 241 } 242 ], 243 "type": "string" 244 }, 245 { 246 "name": "voicelabel", 247 "required": false, 248 "description": [ 249 { 250 "name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set." 251 } 252 ], 253 "type": "string" 254 }, 255 { 256 "name": "subscriptflag", 257 "required": false, 258 "description": [ 259 { 260 "name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set." 261 } 262 ], 263 "type": "enum", 264 "options": [ 265 { 266 "name": "auto" 267 }, 268 { 269 "name": "on" 270 }, 271 { 272 "name": "off" 273 } 274 ] 275 }, 276 { 277 "name": "subscriptlabel", 278 "required": false, 279 "description": [ 280 { 281 "name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript." 282 } 283 ], 284 "type": "string" 285 }, 286 { 287 "name": "scenelabel", 288 "required": false, 289 "description": [ 290 { 291 "name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel." 292 } 293 ], 294 "type": "enum", 295 "options": [ 296 { 297 "name": "video" 298 }, 299 { 300 "name": "audio" 301 }, 302 { 303 "name": "page" 304 }, 305 { 306 "name": "switch" 307 }, 308 { 309 "name": "common" 310 } 311 ] 312 }, 313 { 314 "name": "accessibilitygroup", 315 "required": false, 316 "description": [ 317 { 318 "name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components." 319 } 320 ], 321 "type": "enum", 322 "options": [ 323 { 324 "name": "true" 325 }, 326 { 327 "name": "false" 328 } 329 ] 330 }, 331 { 332 "name": "accessibilitytext", 333 "required": false, 334 "description": [ 335 { 336 "name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read." 337 } 338 ], 339 "type": "string" 340 }, 341 { 342 "name": "accessibilitydescription", 343 "required": false, 344 "description": [ 345 { 346 "name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected." 347 } 348 ], 349 "type": "string" 350 }, 351 { 352 "name": "accessibilityimportance", 353 "required": false, 354 "description": [ 355 { 356 "name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service." 357 } 358 ], 359 "type": "string" 360 }, 361 { 362 "name": "for", 363 "required": false, 364 "description": [ 365 { 366 "name": "Expands the current element based on the configured data list." 367 } 368 ], 369 "type": "string" 370 }, 371 { 372 "name": "tid", 373 "required": false, 374 "description": [ 375 { 376 "name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier." 377 } 378 ], 379 "type": "string" 380 }, 381 { 382 "name": "if", 383 "required": false, 384 "description": [ 385 { 386 "name": "Whether the element is added or removed." 387 } 388 ], 389 "type": "enum", 390 "options": [ 391 { 392 "name": "true" 393 }, 394 { 395 "name": "false" 396 } 397 ] 398 }, 399 { 400 "name": "elif", 401 "required": false, 402 "description": [], 403 "type": "enum", 404 "options": [ 405 { 406 "name": "true" 407 }, 408 { 409 "name": "false" 410 } 411 ] 412 }, 413 { 414 "name": "else", 415 "required": false, 416 "description": [], 417 "type": "string" 418 }, 419 { 420 "name": "show", 421 "required": false, 422 "description": [ 423 { 424 "name": "Whether the element is displayed or hidden." 425 } 426 ], 427 "type": "enum", 428 "options": [ 429 { 430 "name": "true" 431 }, 432 { 433 "name": "false" 434 } 435 ] 436 } 437 ], 438 "events": [ 439 { 440 "name": "drag", 441 "syscap": [ 442 "SystemCapability.ArkUI.ArkUI.Full", 443 "SystemCapability.ArkUI.ArkUI.Lite" 444 ], 445 "version": [ 446 { 447 "name": "v7.0" 448 } 449 ], 450 "description": [ 451 { 452 "name": "The duration of drag.", 453 "syscap": [ 454 "SystemCapability.ArkUI.ArkUI.Full", 455 "SystemCapability.ArkUI.ArkUI.Lite" 456 ] 457 } 458 ] 459 }, 460 { 461 "name": "dragstart", 462 "syscap": [ 463 "SystemCapability.ArkUI.ArkUI.Full", 464 "SystemCapability.ArkUI.ArkUI.Lite" 465 ], 466 "version": [ 467 { 468 "name": "v7.0" 469 } 470 ], 471 "description": [ 472 { 473 "name": "The drag starts.", 474 "syscap": [ 475 "SystemCapability.ArkUI.ArkUI.Full", 476 "SystemCapability.ArkUI.ArkUI.Lite" 477 ] 478 } 479 ] 480 }, 481 { 482 "name": "dragend", 483 "syscap": [ 484 "SystemCapability.ArkUI.ArkUI.Full", 485 "SystemCapability.ArkUI.ArkUI.Lite" 486 ], 487 "version": [ 488 { 489 "name": "v7.0" 490 } 491 ], 492 "description": [ 493 { 494 "name": "The drag ends.", 495 "syscap": [ 496 "SystemCapability.ArkUI.ArkUI.Full", 497 "SystemCapability.ArkUI.ArkUI.Lite" 498 ] 499 } 500 ] 501 }, 502 { 503 "name": "dragenter", 504 "syscap": [ 505 "SystemCapability.ArkUI.ArkUI.Full", 506 "SystemCapability.ArkUI.ArkUI.Lite" 507 ], 508 "version": [ 509 { 510 "name": "v7.0" 511 } 512 ], 513 "description": [ 514 { 515 "name": "The drag enters.", 516 "syscap": [ 517 "SystemCapability.ArkUI.ArkUI.Full", 518 "SystemCapability.ArkUI.ArkUI.Lite" 519 ] 520 } 521 ] 522 }, 523 { 524 "name": "dragover", 525 "syscap": [ 526 "SystemCapability.ArkUI.ArkUI.Full", 527 "SystemCapability.ArkUI.ArkUI.Lite" 528 ], 529 "version": [ 530 { 531 "name": "v7.0" 532 } 533 ], 534 "description": [ 535 { 536 "name": "The drag overs.", 537 "syscap": [ 538 "SystemCapability.ArkUI.ArkUI.Full", 539 "SystemCapability.ArkUI.ArkUI.Lite" 540 ] 541 } 542 ] 543 }, 544 { 545 "name": "dragleave", 546 "syscap": [ 547 "SystemCapability.ArkUI.ArkUI.Full", 548 "SystemCapability.ArkUI.ArkUI.Lite" 549 ], 550 "version": [ 551 { 552 "name": "v7.0" 553 } 554 ], 555 "description": [ 556 { 557 "name": "The drag leaves.", 558 "syscap": [ 559 "SystemCapability.ArkUI.ArkUI.Full", 560 "SystemCapability.ArkUI.ArkUI.Lite" 561 ] 562 } 563 ] 564 }, 565 { 566 "name": "drop", 567 "syscap": [ 568 "SystemCapability.ArkUI.ArkUI.Full", 569 "SystemCapability.ArkUI.ArkUI.Lite" 570 ], 571 "version": [ 572 { 573 "name": "v7.0" 574 } 575 ], 576 "description": [ 577 { 578 "name": "The drag drops.", 579 "syscap": [ 580 "SystemCapability.ArkUI.ArkUI.Full", 581 "SystemCapability.ArkUI.ArkUI.Lite" 582 ] 583 } 584 ] 585 }, 586 { 587 "name": "prepared", 588 "description": [ 589 { 590 "name": "Triggered when a video preparation is complete." 591 } 592 ] 593 }, 594 { 595 "name": "start", 596 "description": [ 597 { 598 "name": "Triggered when a video is played." 599 } 600 ] 601 }, 602 { 603 "name": "pause", 604 "description": [ 605 { 606 "name": "Triggered when a video is paused." 607 } 608 ] 609 }, 610 { 611 "name": "finish", 612 "description": [ 613 { 614 "name": "Triggered when the video finishes playing." 615 } 616 ] 617 }, 618 { 619 "name": "error", 620 "description": [ 621 { 622 "name": "Triggered when the playback fails." 623 } 624 ] 625 }, 626 { 627 "name": "seeking", 628 "description": [ 629 { 630 "name": "Triggered to report time information when the progress bar is being dragged." 631 } 632 ] 633 }, 634 { 635 "name": "seeked", 636 "description": [ 637 { 638 "name": "Triggered to report playback time information when the user finishes dragging the progress bar." 639 } 640 ] 641 }, 642 { 643 "name": "timeupdate", 644 "description": [ 645 { 646 "name": "Triggered once per 250 ms when the playing progress changes." 647 } 648 ] 649 }, 650 { 651 "name": "stop", 652 "description": [ 653 { 654 "name": "This event is triggered when a request is made to stop playing a video. The stop event is not triggered when the finish event is triggered." 655 } 656 ] 657 }, 658 { 659 "name": "fullscreenchange", 660 "description": [ 661 { 662 "name": "Triggered when a video enters or exits the full screen mode." 663 } 664 ] 665 }, 666 { 667 "name": "touchstart", 668 "description": [ 669 { 670 "name": "Triggered when the tapping starts." 671 } 672 ] 673 }, 674 { 675 "name": "touchmove", 676 "description": [ 677 { 678 "name": "Triggered when the tapping moves." 679 } 680 ] 681 }, 682 { 683 "name": "touchcancel", 684 "description": [ 685 { 686 "name": "Triggered when the tapping is interrupted." 687 } 688 ] 689 }, 690 { 691 "name": "touchend", 692 "description": [ 693 { 694 "name": "Triggered when the tapping ends." 695 } 696 ] 697 }, 698 { 699 "name": "focus", 700 "description": [ 701 { 702 "name": "Triggered when the component gains focus. The <span> component cannot gain focus." 703 } 704 ] 705 }, 706 { 707 "name": "key", 708 "description": [ 709 { 710 "name": "The key event is specific to smart TVs and is triggered when a user presses a key on the remote control. If the return value is true, the page processes the key event; If the return value is false, the default key event processing logic is used; If no value is returned, false is used as the return value." 711 } 712 ] 713 }, 714 { 715 "name": "swipe", 716 "description": [ 717 { 718 "name": "Triggered when a user quickly slides on a component." 719 } 720 ] 721 }, 722 { 723 "name": "accessibility", 724 "description": [ 725 { 726 "name": "Event dispatched by the accessibility service." 727 } 728 ] 729 }, 730 { 731 "name": "click", 732 "description": [ 733 { 734 "name": "Triggered when a component is clicked." 735 } 736 ] 737 }, 738 { 739 "name": "longpress", 740 "description": [ 741 { 742 "name": "Triggered when a component is long pressed." 743 } 744 ] 745 }, 746 { 747 "name": "doubleclick", 748 "description": [ 749 { 750 "name": "Triggered when a component is double clicked." 751 } 752 ] 753 }, 754 { 755 "name": "pinchstart", 756 "description": [ 757 { 758 "name": "Triggered when the pinch starts." 759 } 760 ] 761 }, 762 { 763 "name": "pinchupdate", 764 "description": [ 765 { 766 "name": "Triggered when the pinch updates." 767 } 768 ] 769 }, 770 { 771 "name": "pinchend", 772 "description": [ 773 { 774 "name": "Triggered when the pinch ends." 775 } 776 ] 777 }, 778 { 779 "name": "pinchcancel", 780 "description": [ 781 { 782 "name": "Triggered when the pinch is interrupted." 783 } 784 ] 785 }, 786 { 787 "name": "blur", 788 "description": [ 789 { 790 "name": "Triggered when the component loses focus. The <span> component cannot lose focus." 791 } 792 ] 793 }, 794 { 795 "name": "attached", 796 "description": [ 797 { 798 "name": "The event will be called when the render node is attached on the tree." 799 } 800 ] 801 }, 802 { 803 "name": "detached", 804 "description": [ 805 { 806 "name": "The event will be called when the render node is detached on the tree." 807 } 808 ] 809 } 810 ], 811 "supportedSubComponents": false, 812 "supportedSubComponentsRestriction": [], 813 "unSupportSubComponentsRestriction": [], 814 "parentComponentsRestriction": [] 815}