@ezuikit/player-theme 3.1.7-beta.3 → 3.1.8-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/constant.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.7-beta.3
3
- * Copyright (c) 2026-09-24 15:33:23 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.1
3
+ * Copyright (c) 2026-09-29 20:25:53 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  function _extends() {
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.7-beta.3
3
- * Copyright (c) 2026-09-24 15:33:23 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.1
3
+ * Copyright (c) 2026-09-29 20:25:53 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  'use strict';
@@ -785,7 +785,9 @@ var Icons = {
785
785
  return '<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n <g fill="currentColor" stroke="currentColor">\n <path stroke="none" d="M9.22313 18.9543C9.6588 18.9543 10.0189 19.2133 10.0759 19.5494L10.0837 19.6428L10.0837 21.7847C10.0837 22.1649 9.69841 22.4732 9.22313 22.4732C8.78745 22.4732 8.42739 22.2142 8.37041 21.8781L8.36255 21.7847L8.36255 19.6428C8.36255 19.2626 8.74784 18.9543 9.22313 18.9543Z" fill-rule="evenodd" />\n <path d="M16.5323 11.3779L16.5323 11.5872C16.5323 15.7472 13.1599 19.1197 8.99981 19.1197C4.83971 19.1197 1.46729 15.7472 1.46729 11.5872L1.46729 11.4335" fill-rule="evenodd" fill="none" stroke-width="1.5" />\n <path stroke="none" d="M4.07861 6.12978C4.07861 3.589 6.30476 1.5293 9.05085 1.5293C11.7969 1.5293 14.0231 3.589 14.0231 6.12978L14.0231 12.075C14.0231 14.6158 11.7969 16.6755 9.05085 16.6755C6.30476 16.6755 4.07861 14.6158 4.07861 12.075L4.07861 6.12978ZM5.57861 12.075L5.57861 6.12978C5.57861 5.94083 5.597 5.75561 5.63376 5.57412C5.67605 5.36539 5.74265 5.16158 5.83357 4.9627C5.86625 4.8912 5.90164 4.82121 5.93974 4.75272C6.09781 4.4685 6.30245 4.21019 6.55365 3.97777C6.64206 3.89597 6.73424 3.81921 6.83019 3.7475C7.0816 3.55959 7.3589 3.40632 7.66207 3.28767C7.79552 3.23545 7.93107 3.19114 8.06871 3.15475C8.38503 3.07111 8.71241 3.0293 9.05085 3.0293C9.38929 3.0293 9.71668 3.07112 10.033 3.15475C10.1706 3.19114 10.3062 3.23545 10.4396 3.28767C10.7428 3.40632 11.0201 3.55959 11.2715 3.74749C11.3675 3.81921 11.4596 3.89596 11.548 3.97777C11.7993 4.2102 12.0039 4.46853 12.162 4.75276C12.2001 4.82124 12.2354 4.89122 12.2681 4.9627C12.359 5.16157 12.4256 5.36536 12.4679 5.57407C12.5047 5.75558 12.5231 5.94082 12.5231 6.12978L12.5231 12.075C12.5231 12.264 12.5047 12.4492 12.4679 12.6307C12.4256 12.8394 12.359 13.0432 12.2681 13.2421C12.2355 13.3136 12.2001 13.3835 12.162 13.452C12.0039 13.7362 11.7993 13.9946 11.548 14.227C11.4596 14.3088 11.3675 14.3856 11.2715 14.4573C11.0201 14.6452 10.7428 14.7985 10.4396 14.9171C10.3062 14.9693 10.1706 15.0136 10.033 15.05C9.71667 15.1337 9.38929 15.1755 9.05085 15.1755C8.71241 15.1755 8.38503 15.1337 8.06871 15.05C7.93107 15.0136 7.79552 14.9693 7.66207 14.9171C7.3589 14.7985 7.0816 14.6452 6.83019 14.4573C6.73424 14.3856 6.64206 14.3088 6.55365 14.227C6.30244 13.9946 6.09779 13.7363 5.93972 13.452C5.90163 13.3836 5.86625 13.3136 5.83357 13.2421C5.74265 13.0432 5.67605 12.8394 5.63377 12.6307C5.597 12.4492 5.57861 12.264 5.57861 12.075Z" fill-rule="evenodd" />\n </g>\n <g class="' + prefix + '-icon-talk-growth-dot">\n <path class="' + prefix + '-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot4" d="M19.1333 17.6001L20.0669 17.6001" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n </g>\n </svg>';
786
786
  },
787
787
  /** 语音广播 */ broadcast: '\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="broadcast">\n <g>\n <path id="矢量 1" d="m8.52109,6.76609l6.17823,-2.91335c0.2485,-0.11718 0.5027,-0.19531 0.7627,-0.2351c0.2034,-0.03077 0.4104,-0.03809 0.6211,-0.02173c0.2092,0.01636 0.4116,0.05493 0.6069,0.11621c0.2278,0.07129 0.4461,0.1731 0.6548,0.30542c0.2087,0.13232 0.394,0.28638 0.5557,0.46216l0.0002,0l0,0c0.1384,0.15064 0.2598,0.31714 0.3638,0.49951c0.1047,0.18335 0.1865,0.37354 0.2451,0.57081c0.0752,0.25219 0.1128,0.51562 0.1128,0.79004l0,10.64651c0,0.2744 -0.0376,0.5379 -0.1128,0.7901l0,0c-0.0586,0.197 -0.1404,0.3874 -0.2451,0.5708c-0.104,0.1823 -0.2254,0.3488 -0.364,0.4995c-0.1617,0.1758 -0.347,0.3298 -0.5557,0.4621c-0.2087,0.1324 -0.427,0.2342 -0.6548,0.3054c-0.1953,0.0611 -0.3977,0.0999 -0.6069,0.1163c-0.2107,0.0163 -0.4175,0.009 -0.6209,-0.0218c-0.2602,-0.0398 -0.5144,-0.1181 -0.7629,-0.2351l-5.45044,-2.5703l0,2.759c0,0.1036 -0.01831,0.1995 -0.05494,0.2879c-0.03662,0.0886 -0.09155,0.1692 -0.16479,0.2424c-0.14624,0.1465 -0.32324,0.2197 -0.53027,0.2197l-2,0c-0.14209,0 -0.27344,-0.0373 -0.39429,-0.112c-0.12085,-0.0745 -0.21289,-0.1756 -0.27661,-0.3025l-1.99268,-3.9856c-0.06225,-0.0234 -0.12402,-0.0481 -0.18555,-0.074c-0.26953,-0.114 -0.52417,-0.2502 -0.7644,-0.4084c-0.26636,-0.1758 -0.51489,-0.3789 -0.74512,-0.6094c-0.23047,-0.2302 -0.43359,-0.4788 -0.60937,-0.7451c-0.1582,-0.2403 -0.29444,-0.4949 -0.40845,-0.7644c-0.11328,-0.2679 -0.20068,-0.5413 -0.26245,-0.8206l0,0c-0.07398,-0.3347 -0.11108,-0.6775 -0.11108,-1.0286c0,-0.351 0.0371,-0.6938 0.11108,-1.0285c0.06177,-0.2793 0.14917,-0.5528 0.26245,-0.8206c0.11401,-0.26953 0.25025,-0.52417 0.40845,-0.7644c0.17578,-0.26636 0.3789,-0.5149 0.60937,-0.74512c0.23023,-0.23047 0.47876,-0.4336 0.74512,-0.60938l0,0c0.24023,-0.1582 0.49487,-0.29444 0.7644,-0.40845c0.26783,-0.11328 0.54126,-0.20068 0.82056,-0.26245l0,0l0,0l0,0c0.33472,-0.07398 0.67749,-0.11109 1.02857,-0.11109l2.93872,0c0.02636,-0.0166 0.05444,-0.03198 0.08349,-0.04589zm0.72876,8.47948l6.08937,2.8716c0.1287,0.0606 0.2598,0.0987 0.3935,0.114c0.0772,0.0088 0.1551,0.0103 0.2337,0.0042c0.0857,-0.0068 0.1687,-0.0217 0.2495,-0.0452c0.1133,-0.0329 0.2219,-0.0822 0.3257,-0.1479c0.104,-0.0659 0.1948,-0.1431 0.2729,-0.2317c0.0554,-0.063 0.1045,-0.1318 0.147,-0.2063c0.0393,-0.0686 0.0713,-0.1397 0.0962,-0.2131c0.043,-0.1277 0.0647,-0.2625 0.0647,-0.4046l0,-10.64651c0,-0.14209 -0.0217,-0.2771 -0.0647,-0.40454c-0.0249,-0.07349 -0.0569,-0.14454 -0.0962,-0.21314c-0.0425,-0.07471 -0.0916,-0.14331 -0.147,-0.2063c-0.0781,-0.08862 -0.1689,-0.16577 -0.2729,-0.23169c-0.1038,-0.06567 -0.2124,-0.11523 -0.3257,-0.14795c-0.0808,-0.02344 -0.1638,-0.03833 -0.2495,-0.04517c-0.0786,-0.0061 -0.1565,-0.00463 -0.2337,0.00415c-0.1337,0.01539 -0.2648,0.05347 -0.3935,0.11402l-6.09034,2.87208l0.00097,7.16405zm13.58447,-7.9121l-2,1c-0.3757,0.18775 -0.8184,0.04029 -1.0063,-0.33545c-0.0552,-0.11035 -0.0813,-0.22656 -0.0813,-0.34033c0,-0.27344 0.1516,-0.53321 0.4167,-0.66602l2,-1c0.3757,-0.18775 0.8186,-0.04004 1.0064,0.33545c0.0551,0.11035 0.0813,0.22656 0.0813,0.34033c0,0.27368 -0.1514,0.53345 -0.4168,0.66602zm-15.08544,8.9785l-2.08667,0l1.30029,2.6006l0.78638,0l0,-2.6006zm0,-7.99998l-2.25,0c-0.24976,0 -0.49317,0.02734 -0.73023,0.08179c-0.18188,0.04174 -0.36011,0.09961 -0.53467,0.17334c-0.17944,0.07593 -0.34961,0.1665 -0.51049,0.27124c-0.18702,0.12231 -0.36133,0.26416 -0.52271,0.42554c-0.16138,0.16137 -0.30322,0.33569 -0.42554,0.52267c-0.10473,0.1609 -0.19531,0.3311 -0.27124,0.5105c-0.07373,0.1746 -0.13159,0.3528 -0.17334,0.5347c-0.05444,0.2371 -0.08178,0.4805 -0.08178,0.7302c0,0.2498 0.02734,0.4932 0.08178,0.7303c0.04175,0.1818 0.09961,0.3601 0.17334,0.5346c0.07593,0.1795 0.16651,0.3496 0.27124,0.5105c0.12232,0.187 0.26416,0.3614 0.42554,0.5227c0.16138,0.1614 0.33569,0.3033 0.52271,0.4256c0.16088,0.1047 0.33105,0.1953 0.51049,0.2712c0.17456,0.0737 0.35279,0.1316 0.53467,0.1734c0.23706,0.0544 0.48047,0.0817 0.73023,0.0817l2.25097,0l-0.00097,-6.49998zm12.75004,2.60058l2,0c0.4199,0 0.75,0.3301 0.75,0.75c0,0.4199 -0.3301,0.75 -0.75,0.75l-2,0c-0.42,0 -0.75,-0.3301 -0.75,-0.75c0,-0.4199 0.33,-0.75 0.75,-0.75zm0.3354,4.0791l2,1c0.2654,0.1326 0.4168,0.3924 0.4168,0.6661c0,0.1137 -0.0262,0.2299 -0.0813,0.3403c-0.1878,0.3755 -0.6307,0.5232 -1.0064,0.3354l-2,-1c-0.2651,-0.1328 -0.4167,-0.3925 -0.4167,-0.666c0,-0.1138 0.0261,-0.23 0.0813,-0.3403c0.1879,-0.3758 0.6306,-0.5232 1.0063,-0.3355z" fill-rule="evenodd"/>\n </g>\n</svg>',
788
- /** AI对话 */ aiChat: '\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none">\n <defs>\n <linearGradient id="gradient0" x1="10.667" x2="10.667" y1="0.667" y2="20.667">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n <linearGradient id="gradient1" x1="8.318" x2="8.318" y1="0" y2="18.001">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n </defs>\n \n <g transform="scale(1.2) translate(-3, -0.5)">\n <path d="M6.917 0C8.776 0 10.52 0.738 11.808 2.026C12.45 2.668 12.961 3.43 13.309 4.269C13.442 4.588 13.29 4.954 12.971 5.086C12.653 5.218 12.287 5.067 12.155 4.748C11.87 4.061 11.451 3.436 10.925 2.91C9.868 1.854 8.441 1.25 6.917 1.25C3.787 1.25 1.25 3.787 1.25 6.917C1.25 10.047 3.787 12.584 6.917 12.584C8.441 12.584 9.868 11.981 10.925 10.925C11.169 10.681 11.564 10.681 11.808 10.925C12.052 11.169 12.052 11.565 11.808 11.809C10.666 12.951 9.164 13.661 7.542 13.807L7.542 17.376C7.542 17.721 7.262 18.001 6.917 18.001C6.572 18.001 6.292 17.721 6.292 17.376L6.292 13.807C2.765 13.49 0 10.527 0 6.917C0 3.097 3.097 0 6.917 0ZM11.051 6.495C11.295 6.739 11.295 7.135 11.051 7.379L7.547 10.882C7.303 11.126 6.908 11.126 6.664 10.882C6.42 10.638 6.42 10.242 6.664 9.998L10.167 6.495C10.411 6.251 10.807 6.251 11.051 6.495ZM8.566 4.559L6.501 9.5C6.368 9.818 6.002 9.969 5.684 9.836C5.365 9.703 5.215 9.336 5.348 9.018L5.712 8.147L4.094 6.529L3.198 6.884C2.904 7.001 2.575 6.878 2.424 6.61C2.297 6.289 2.418 5.849 2.739 5.722L7.76 3.736C8.274 3.533 8.779 4.049 8.566 4.559ZM16.614 6.171C16.642 6.236 16.642 6.309 16.614 6.373L15.964 7.848C15.936 7.912 15.936 7.986 15.964 8.05L16.614 9.525C16.67 9.651 16.613 9.799 16.486 9.855C16.422 9.883 16.349 9.883 16.285 9.855L14.809 9.205C14.745 9.176 14.672 9.176 14.608 9.205L13.133 9.855C13.006 9.911 12.859 9.853 12.803 9.727C12.775 9.662 12.775 9.589 12.803 9.525L13.453 8.05C13.482 7.986 13.482 7.912 13.453 7.848L12.803 6.373C12.747 6.247 12.805 6.099 12.931 6.043C12.995 6.015 13.068 6.015 13.133 6.043L14.608 6.694C14.672 6.722 14.745 6.722 14.809 6.694L16.285 6.043C16.411 5.988 16.558 6.045 16.614 6.171ZM6.841 5.443L5.361 6.028L6.233 6.9L6.841 5.443Z" fill="url(#gradient1)" transform="matrix(0.707 -0.707 0.707 0.707 0.085 9.868)"/>\n </g>\n </svg>\n ',
788
+ /** AI对话 */ aiChat: function aiChat(line_id) {
789
+ return '<svg width="1em" height="1em" viewBox="2 2 18 18" fill="none">\n <defs>\n <linearGradient id="' + line_id + '" x1="8.31767559" x2="8.31767559" y1="0" y2="18.0010872" gradientUnits="userSpaceOnUse">\n <stop stop-color="rgb(51,217,255)" offset="0.354430377" stop-opacity="1" />\n <stop stop-color="rgb(206,119,255)" offset="1" stop-opacity="1" />\n </linearGradient>\n </defs>\n <path d="M6.91721 0C8.77619 0 10.52 0.737553 11.8084 2.026C12.4502 2.6678 12.9613 3.42996 13.3093 4.26934C13.4416 4.58819 13.2903 4.95385 12.9714 5.08607C12.6526 5.21828 12.2869 5.06698 12.1547 4.74813C11.8697 4.06081 11.4508 3.43616 10.9245 2.90989C9.86818 1.85353 8.44127 1.25 6.91721 1.25C3.7873 1.25 1.25 3.7873 1.25 6.91721C1.25 10.0471 3.7873 12.5844 6.91721 12.5844C8.44127 12.5844 9.86818 11.9809 10.9245 10.9245C11.1686 10.6805 11.5643 10.6805 11.8084 10.9245C12.0525 11.1686 12.0525 11.5643 11.8084 11.8084C10.6655 12.9513 9.16441 13.6607 7.5424 13.8064L7.54221 17.3761C7.54221 17.7213 7.26239 18.0011 6.91721 18.0011C6.57203 18.0011 6.29221 17.7213 6.29221 17.3761L6.29175 13.8065C2.76456 13.4904 0 10.5267 0 6.91721C0 3.09694 3.09694 0 6.91721 0ZM11.0506 6.49482C11.2947 6.7389 11.2947 7.13463 11.0506 7.37871L7.54746 10.8819C7.30339 11.126 6.90766 11.126 6.66358 10.8819C6.4195 10.6378 6.4195 10.2421 6.66358 9.998L10.1668 6.49482C10.4108 6.25075 10.8066 6.25075 11.0506 6.49482ZM8.56622 4.55861L6.50122 9.49996C6.36812 9.81845 6.00204 9.96873 5.68355 9.83564C5.36507 9.70254 5.21478 9.33646 5.34788 9.01798L5.71248 8.14735L4.09417 6.52917L3.19846 6.88426C2.90422 7.00062 2.57458 6.87812 2.42392 6.60965C2.29698 6.28866 2.41781 5.84878 2.7388 5.72184L7.75973 3.73641C8.27389 3.53309 8.77942 4.04845 8.56622 4.55861ZM16.614 6.1714C16.6424 6.23564 16.6424 6.30883 16.614 6.37307L15.9639 7.84813C15.9356 7.91237 15.9356 7.98556 15.9639 8.0498L16.614 9.52486C16.6697 9.6512 16.6125 9.79877 16.4861 9.85446C16.4219 9.88277 16.3487 9.88277 16.2845 9.85446L14.8094 9.20428C14.7452 9.17597 14.672 9.17597 14.6077 9.20428L13.1327 9.85446C13.0063 9.91015 12.8588 9.85287 12.8031 9.72653C12.7747 9.66229 12.7747 9.5891 12.8031 9.52486L13.4532 8.0498C13.4816 7.98556 13.4816 7.91237 13.4532 7.84813L12.8031 6.37307C12.7474 6.24673 12.8047 6.09916 12.931 6.04347C12.9952 6.01516 13.0684 6.01516 13.1327 6.04347L14.6077 6.69365C14.672 6.72196 14.7452 6.72196 14.8094 6.69365L16.2845 6.04347C16.4108 5.98778 16.5584 6.04506 16.614 6.1714ZM6.84128 5.44268L5.36083 6.02833L6.2325 6.9L6.84128 5.44268Z" fill="url(#' + line_id + ')" fill-rule="nonzero" transform="matrix(0.707107,-0.707107,0.707107,0.707107,0.0854492,9.86798)" />\n </svg>\n ';
790
+ },
789
791
  /** 相机/截图 */ capturePicture: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="capture-picture">\n <path d="M6.94 7.51C7.34 7.51 7.7 7.28 7.86 6.91L8.43 5.6C8.59 5.23 8.95 5 9.35 5L14.69 5C15.04 5 15.37 5.18 15.55 5.49L16.45 7.02C16.63 7.33 16.96 7.51 17.31 7.51L18.5 7.51C19.6 7.51 20.5 8.41 20.5 9.51L20.5 17C20.5 18.1 19.6 19 18.5 19L5.5 19C4.39 19 3.5 18.1 3.5 17L3.5 9.51C3.5 8.41 4.39 7.51 5.5 7.51L6.94 7.51Z" stroke-width="1.5"/>\n <circle cx="12" cy="12.525146" r="3.068097" stroke-width="1.5"/>\n </svg>',
790
792
  /** 电子放大 */ zoom: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="zoom">\n <ellipse cx="10.914795" cy="11.25" rx="8.004043" ry="8.25" stroke-width="1.5"/>\n <path d="M14.31 11.04L8.05 11.14" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M11.13 14.22L11.23 7.95" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M16.45 17.83L19.36 20.83" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
791
793
  /** 隐私遮蔽 */ privacyMasking: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="privacy-masking">\n <path d="M12 19C11.15 19 10.31 18.82 9.49 18.5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M20.88 12.46C18.98 15.96 15.49 19 11.99 19" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M19.07 8.92C19.76 9.72 20.38 10.61 20.88 11.53C21.03 11.82 21.03 12.17 20.88 12.46" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5 19L19 5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M9.77 14.22C8.54 12.99 8.54 11 9.77 9.77C11 8.54 12.99 8.54 14.22 9.77" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M17.04 6.95C15.49 5.75 13.74 5 12 5C8.5 5 5.01 8.03 3.11 11.53C2.96 11.82 2.96 12.17 3.11 12.46C4.06 14.21 5.41 15.84 6.95 17.04" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
@@ -881,7 +883,7 @@ var IconComponents = {
881
883
  },
882
884
  aiChat: function aiChat(attr) {
883
885
  if (attr === void 0) attr = {};
884
- return createIcon(Icons.aiChat, 'aiChat', attr);
886
+ return createIcon(Icons.aiChat(attr.line_id), 'aiChat', attr);
885
887
  },
886
888
  talkGrowth: function talkGrowth(attr) {
887
889
  if (attr === void 0) attr = {};
@@ -7174,6 +7176,83 @@ function _ts_generator$3(thisArg, body) {
7174
7176
  'live'
7175
7177
  ];
7176
7178
 
7179
+ /**
7180
+ * UUID 生成(RFC 4122 v4)
7181
+ *
7182
+ * 按可用性三级降级:
7183
+ *
7184
+ * | 顺序 | 实现 | 说明 |
7185
+ * | ---- | ------------------------ | ------------------------------------------------------------- |
7186
+ * | 1 | `crypto.randomUUID()` | 原生实现,最快;**仅在安全上下文(HTTPS / localhost)可用** |
7187
+ * | 2 | `crypto.getRandomValues` | 密码学强度随机数手工组装;HTTP 页面下也可用 |
7188
+ * | 3 | `Math.random()` | 兜底,**不具密码学强度**,只适合做 DOM id 这类无安全要求的标识 |
7189
+ *
7190
+ * 之所以不能只用 `crypto.randomUUID()`:播放器会被嵌到 HTTP 页面里,
7191
+ * 那种场景下它是 `undefined`,必须有降级路径。
7192
+ *
7193
+ * @remarks 用 `crypto` 而非 `window.crypto`,以便在 worker 中也能工作(worker 里没有 `window`)。
7194
+ */ /** 0~255 对应的两位十六进制查表,避免每个字节都做一次 toString + 手工补零 */ var HEX_BY_BYTE = [];
7195
+ for(var i = 0; i < 256; i++){
7196
+ // + 0x100 保证结果是三位,再切掉首位,等价于补零到两位(不用 padStart,es5 目标下它需要 polyfill)
7197
+ HEX_BY_BYTE.push((i + 0x100).toString(16).slice(1));
7198
+ }
7199
+ /**
7200
+ * 取 16 个随机字节
7201
+ *
7202
+ * @returns 长度为 16 的字节数组,每项 0~255
7203
+ */ function randomBytes() {
7204
+ var bytes = [];
7205
+ if (typeof crypto !== 'undefined' && typeof crypto.getRandomValues === 'function') {
7206
+ var buffer = new Uint8Array(16);
7207
+ crypto.getRandomValues(buffer);
7208
+ for(var i = 0; i < 16; i++){
7209
+ bytes.push(buffer[i]);
7210
+ }
7211
+ return bytes;
7212
+ }
7213
+ // 兜底:不具密码学强度,不要用于 token / 密钥一类场景
7214
+ for(var i1 = 0; i1 < 16; i1++){
7215
+ bytes.push(Math.floor(Math.random() * 256));
7216
+ }
7217
+ return bytes;
7218
+ }
7219
+ /**
7220
+ * 把 16 个字节按 v4 规范格式化成 `8-4-4-4-12`
7221
+ *
7222
+ * 会就地改写第 6、8 个字节以写入版本号与变体位。
7223
+ *
7224
+ * @param bytes - 长度为 16 的字节数组
7225
+ * @returns 形如 `xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx` 的字符串,`y` 为 8/9/a/b
7226
+ */ function bytesToUuid(bytes) {
7227
+ // 版本号固定为 4(高 4 位置为 0100)
7228
+ bytes[6] = bytes[6] & 0x0f | 0x40;
7229
+ // 变体固定为 RFC 4122(高 2 位置为 10)
7230
+ bytes[8] = bytes[8] & 0x3f | 0x80;
7231
+ var out = '';
7232
+ for(var i = 0; i < 16; i++){
7233
+ // 8-4-4-4-12 的分组位置
7234
+ if (i === 4 || i === 6 || i === 8 || i === 10) out += '-';
7235
+ out += HEX_BY_BYTE[bytes[i]];
7236
+ }
7237
+ return out;
7238
+ }
7239
+ /**
7240
+ * 生成一个 v4 UUID
7241
+ *
7242
+ * @returns 36 位小写 UUID,形如 `f47ac10b-58cc-4372-a567-0e02b2c3d479`
7243
+ * @example
7244
+ * ```ts
7245
+ * import uuid from '@/utils/uuid';
7246
+ *
7247
+ * uuid(); // '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
7248
+ * ```
7249
+ */ function uuid() {
7250
+ if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
7251
+ return crypto.randomUUID();
7252
+ }
7253
+ return bytesToUuid(randomBytes());
7254
+ }
7255
+
7177
7256
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
7178
7257
  try {
7179
7258
  var info = gen[key](arg);
@@ -7364,7 +7443,8 @@ function _ts_generator$2(thisArg, body) {
7364
7443
  _proto._render = function _render() {
7365
7444
  var _this_locale;
7366
7445
  this.$container.innerHTML = IconComponents.aiChat({
7367
- title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
7446
+ title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT,
7447
+ line_id: 'ezpleyer___AI_CHAT_LINEAR_GRADIENT___' + '' + uuid()
7368
7448
  });
7369
7449
  };
7370
7450
  _proto.reset = function reset(hide) {
@@ -10725,6 +10805,7 @@ var THEME_DEFAULT_OPTIONS = {
10725
10805
  domain: 'https://open.ys7.com'
10726
10806
  },
10727
10807
  isEzviz: true,
10808
+ sdkType: 'base',
10728
10809
  /** 移动端竖屏, 全屏情况下不展示扩张,放置在 footer 中 */ mobileExtendOptions: {
10729
10810
  controls: MOBILE_EXTENDS
10730
10811
  }
@@ -12262,7 +12343,7 @@ var THEME_DEFAULT_OPTIONS = {
12262
12343
  zh: zh,
12263
12344
  en: en
12264
12345
  };
12265
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.7-beta.3';
12346
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.1';
12266
12347
 
12267
12348
  exports.CONTROL_INIT_EVENTS = CONTROL_INIT_EVENTS;
12268
12349
  exports.Control = Control;
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.7-beta.3
3
- * Copyright (c) 2026-09-24 15:33:23 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.1
3
+ * Copyright (c) 2026-09-29 20:25:53 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import EventEmitter from 'eventemitter3';
@@ -783,7 +783,9 @@ var Icons = {
783
783
  return '<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n <g fill="currentColor" stroke="currentColor">\n <path stroke="none" d="M9.22313 18.9543C9.6588 18.9543 10.0189 19.2133 10.0759 19.5494L10.0837 19.6428L10.0837 21.7847C10.0837 22.1649 9.69841 22.4732 9.22313 22.4732C8.78745 22.4732 8.42739 22.2142 8.37041 21.8781L8.36255 21.7847L8.36255 19.6428C8.36255 19.2626 8.74784 18.9543 9.22313 18.9543Z" fill-rule="evenodd" />\n <path d="M16.5323 11.3779L16.5323 11.5872C16.5323 15.7472 13.1599 19.1197 8.99981 19.1197C4.83971 19.1197 1.46729 15.7472 1.46729 11.5872L1.46729 11.4335" fill-rule="evenodd" fill="none" stroke-width="1.5" />\n <path stroke="none" d="M4.07861 6.12978C4.07861 3.589 6.30476 1.5293 9.05085 1.5293C11.7969 1.5293 14.0231 3.589 14.0231 6.12978L14.0231 12.075C14.0231 14.6158 11.7969 16.6755 9.05085 16.6755C6.30476 16.6755 4.07861 14.6158 4.07861 12.075L4.07861 6.12978ZM5.57861 12.075L5.57861 6.12978C5.57861 5.94083 5.597 5.75561 5.63376 5.57412C5.67605 5.36539 5.74265 5.16158 5.83357 4.9627C5.86625 4.8912 5.90164 4.82121 5.93974 4.75272C6.09781 4.4685 6.30245 4.21019 6.55365 3.97777C6.64206 3.89597 6.73424 3.81921 6.83019 3.7475C7.0816 3.55959 7.3589 3.40632 7.66207 3.28767C7.79552 3.23545 7.93107 3.19114 8.06871 3.15475C8.38503 3.07111 8.71241 3.0293 9.05085 3.0293C9.38929 3.0293 9.71668 3.07112 10.033 3.15475C10.1706 3.19114 10.3062 3.23545 10.4396 3.28767C10.7428 3.40632 11.0201 3.55959 11.2715 3.74749C11.3675 3.81921 11.4596 3.89596 11.548 3.97777C11.7993 4.2102 12.0039 4.46853 12.162 4.75276C12.2001 4.82124 12.2354 4.89122 12.2681 4.9627C12.359 5.16157 12.4256 5.36536 12.4679 5.57407C12.5047 5.75558 12.5231 5.94082 12.5231 6.12978L12.5231 12.075C12.5231 12.264 12.5047 12.4492 12.4679 12.6307C12.4256 12.8394 12.359 13.0432 12.2681 13.2421C12.2355 13.3136 12.2001 13.3835 12.162 13.452C12.0039 13.7362 11.7993 13.9946 11.548 14.227C11.4596 14.3088 11.3675 14.3856 11.2715 14.4573C11.0201 14.6452 10.7428 14.7985 10.4396 14.9171C10.3062 14.9693 10.1706 15.0136 10.033 15.05C9.71667 15.1337 9.38929 15.1755 9.05085 15.1755C8.71241 15.1755 8.38503 15.1337 8.06871 15.05C7.93107 15.0136 7.79552 14.9693 7.66207 14.9171C7.3589 14.7985 7.0816 14.6452 6.83019 14.4573C6.73424 14.3856 6.64206 14.3088 6.55365 14.227C6.30244 13.9946 6.09779 13.7363 5.93972 13.452C5.90163 13.3836 5.86625 13.3136 5.83357 13.2421C5.74265 13.0432 5.67605 12.8394 5.63377 12.6307C5.597 12.4492 5.57861 12.264 5.57861 12.075Z" fill-rule="evenodd" />\n </g>\n <g class="' + prefix + '-icon-talk-growth-dot">\n <path class="' + prefix + '-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot4" d="M19.1333 17.6001L20.0669 17.6001" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n </g>\n </svg>';
784
784
  },
785
785
  /** 语音广播 */ broadcast: '\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="broadcast">\n <g>\n <path id="矢量 1" d="m8.52109,6.76609l6.17823,-2.91335c0.2485,-0.11718 0.5027,-0.19531 0.7627,-0.2351c0.2034,-0.03077 0.4104,-0.03809 0.6211,-0.02173c0.2092,0.01636 0.4116,0.05493 0.6069,0.11621c0.2278,0.07129 0.4461,0.1731 0.6548,0.30542c0.2087,0.13232 0.394,0.28638 0.5557,0.46216l0.0002,0l0,0c0.1384,0.15064 0.2598,0.31714 0.3638,0.49951c0.1047,0.18335 0.1865,0.37354 0.2451,0.57081c0.0752,0.25219 0.1128,0.51562 0.1128,0.79004l0,10.64651c0,0.2744 -0.0376,0.5379 -0.1128,0.7901l0,0c-0.0586,0.197 -0.1404,0.3874 -0.2451,0.5708c-0.104,0.1823 -0.2254,0.3488 -0.364,0.4995c-0.1617,0.1758 -0.347,0.3298 -0.5557,0.4621c-0.2087,0.1324 -0.427,0.2342 -0.6548,0.3054c-0.1953,0.0611 -0.3977,0.0999 -0.6069,0.1163c-0.2107,0.0163 -0.4175,0.009 -0.6209,-0.0218c-0.2602,-0.0398 -0.5144,-0.1181 -0.7629,-0.2351l-5.45044,-2.5703l0,2.759c0,0.1036 -0.01831,0.1995 -0.05494,0.2879c-0.03662,0.0886 -0.09155,0.1692 -0.16479,0.2424c-0.14624,0.1465 -0.32324,0.2197 -0.53027,0.2197l-2,0c-0.14209,0 -0.27344,-0.0373 -0.39429,-0.112c-0.12085,-0.0745 -0.21289,-0.1756 -0.27661,-0.3025l-1.99268,-3.9856c-0.06225,-0.0234 -0.12402,-0.0481 -0.18555,-0.074c-0.26953,-0.114 -0.52417,-0.2502 -0.7644,-0.4084c-0.26636,-0.1758 -0.51489,-0.3789 -0.74512,-0.6094c-0.23047,-0.2302 -0.43359,-0.4788 -0.60937,-0.7451c-0.1582,-0.2403 -0.29444,-0.4949 -0.40845,-0.7644c-0.11328,-0.2679 -0.20068,-0.5413 -0.26245,-0.8206l0,0c-0.07398,-0.3347 -0.11108,-0.6775 -0.11108,-1.0286c0,-0.351 0.0371,-0.6938 0.11108,-1.0285c0.06177,-0.2793 0.14917,-0.5528 0.26245,-0.8206c0.11401,-0.26953 0.25025,-0.52417 0.40845,-0.7644c0.17578,-0.26636 0.3789,-0.5149 0.60937,-0.74512c0.23023,-0.23047 0.47876,-0.4336 0.74512,-0.60938l0,0c0.24023,-0.1582 0.49487,-0.29444 0.7644,-0.40845c0.26783,-0.11328 0.54126,-0.20068 0.82056,-0.26245l0,0l0,0l0,0c0.33472,-0.07398 0.67749,-0.11109 1.02857,-0.11109l2.93872,0c0.02636,-0.0166 0.05444,-0.03198 0.08349,-0.04589zm0.72876,8.47948l6.08937,2.8716c0.1287,0.0606 0.2598,0.0987 0.3935,0.114c0.0772,0.0088 0.1551,0.0103 0.2337,0.0042c0.0857,-0.0068 0.1687,-0.0217 0.2495,-0.0452c0.1133,-0.0329 0.2219,-0.0822 0.3257,-0.1479c0.104,-0.0659 0.1948,-0.1431 0.2729,-0.2317c0.0554,-0.063 0.1045,-0.1318 0.147,-0.2063c0.0393,-0.0686 0.0713,-0.1397 0.0962,-0.2131c0.043,-0.1277 0.0647,-0.2625 0.0647,-0.4046l0,-10.64651c0,-0.14209 -0.0217,-0.2771 -0.0647,-0.40454c-0.0249,-0.07349 -0.0569,-0.14454 -0.0962,-0.21314c-0.0425,-0.07471 -0.0916,-0.14331 -0.147,-0.2063c-0.0781,-0.08862 -0.1689,-0.16577 -0.2729,-0.23169c-0.1038,-0.06567 -0.2124,-0.11523 -0.3257,-0.14795c-0.0808,-0.02344 -0.1638,-0.03833 -0.2495,-0.04517c-0.0786,-0.0061 -0.1565,-0.00463 -0.2337,0.00415c-0.1337,0.01539 -0.2648,0.05347 -0.3935,0.11402l-6.09034,2.87208l0.00097,7.16405zm13.58447,-7.9121l-2,1c-0.3757,0.18775 -0.8184,0.04029 -1.0063,-0.33545c-0.0552,-0.11035 -0.0813,-0.22656 -0.0813,-0.34033c0,-0.27344 0.1516,-0.53321 0.4167,-0.66602l2,-1c0.3757,-0.18775 0.8186,-0.04004 1.0064,0.33545c0.0551,0.11035 0.0813,0.22656 0.0813,0.34033c0,0.27368 -0.1514,0.53345 -0.4168,0.66602zm-15.08544,8.9785l-2.08667,0l1.30029,2.6006l0.78638,0l0,-2.6006zm0,-7.99998l-2.25,0c-0.24976,0 -0.49317,0.02734 -0.73023,0.08179c-0.18188,0.04174 -0.36011,0.09961 -0.53467,0.17334c-0.17944,0.07593 -0.34961,0.1665 -0.51049,0.27124c-0.18702,0.12231 -0.36133,0.26416 -0.52271,0.42554c-0.16138,0.16137 -0.30322,0.33569 -0.42554,0.52267c-0.10473,0.1609 -0.19531,0.3311 -0.27124,0.5105c-0.07373,0.1746 -0.13159,0.3528 -0.17334,0.5347c-0.05444,0.2371 -0.08178,0.4805 -0.08178,0.7302c0,0.2498 0.02734,0.4932 0.08178,0.7303c0.04175,0.1818 0.09961,0.3601 0.17334,0.5346c0.07593,0.1795 0.16651,0.3496 0.27124,0.5105c0.12232,0.187 0.26416,0.3614 0.42554,0.5227c0.16138,0.1614 0.33569,0.3033 0.52271,0.4256c0.16088,0.1047 0.33105,0.1953 0.51049,0.2712c0.17456,0.0737 0.35279,0.1316 0.53467,0.1734c0.23706,0.0544 0.48047,0.0817 0.73023,0.0817l2.25097,0l-0.00097,-6.49998zm12.75004,2.60058l2,0c0.4199,0 0.75,0.3301 0.75,0.75c0,0.4199 -0.3301,0.75 -0.75,0.75l-2,0c-0.42,0 -0.75,-0.3301 -0.75,-0.75c0,-0.4199 0.33,-0.75 0.75,-0.75zm0.3354,4.0791l2,1c0.2654,0.1326 0.4168,0.3924 0.4168,0.6661c0,0.1137 -0.0262,0.2299 -0.0813,0.3403c-0.1878,0.3755 -0.6307,0.5232 -1.0064,0.3354l-2,-1c-0.2651,-0.1328 -0.4167,-0.3925 -0.4167,-0.666c0,-0.1138 0.0261,-0.23 0.0813,-0.3403c0.1879,-0.3758 0.6306,-0.5232 1.0063,-0.3355z" fill-rule="evenodd"/>\n </g>\n</svg>',
786
- /** AI对话 */ aiChat: '\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none">\n <defs>\n <linearGradient id="gradient0" x1="10.667" x2="10.667" y1="0.667" y2="20.667">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n <linearGradient id="gradient1" x1="8.318" x2="8.318" y1="0" y2="18.001">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n </defs>\n \n <g transform="scale(1.2) translate(-3, -0.5)">\n <path d="M6.917 0C8.776 0 10.52 0.738 11.808 2.026C12.45 2.668 12.961 3.43 13.309 4.269C13.442 4.588 13.29 4.954 12.971 5.086C12.653 5.218 12.287 5.067 12.155 4.748C11.87 4.061 11.451 3.436 10.925 2.91C9.868 1.854 8.441 1.25 6.917 1.25C3.787 1.25 1.25 3.787 1.25 6.917C1.25 10.047 3.787 12.584 6.917 12.584C8.441 12.584 9.868 11.981 10.925 10.925C11.169 10.681 11.564 10.681 11.808 10.925C12.052 11.169 12.052 11.565 11.808 11.809C10.666 12.951 9.164 13.661 7.542 13.807L7.542 17.376C7.542 17.721 7.262 18.001 6.917 18.001C6.572 18.001 6.292 17.721 6.292 17.376L6.292 13.807C2.765 13.49 0 10.527 0 6.917C0 3.097 3.097 0 6.917 0ZM11.051 6.495C11.295 6.739 11.295 7.135 11.051 7.379L7.547 10.882C7.303 11.126 6.908 11.126 6.664 10.882C6.42 10.638 6.42 10.242 6.664 9.998L10.167 6.495C10.411 6.251 10.807 6.251 11.051 6.495ZM8.566 4.559L6.501 9.5C6.368 9.818 6.002 9.969 5.684 9.836C5.365 9.703 5.215 9.336 5.348 9.018L5.712 8.147L4.094 6.529L3.198 6.884C2.904 7.001 2.575 6.878 2.424 6.61C2.297 6.289 2.418 5.849 2.739 5.722L7.76 3.736C8.274 3.533 8.779 4.049 8.566 4.559ZM16.614 6.171C16.642 6.236 16.642 6.309 16.614 6.373L15.964 7.848C15.936 7.912 15.936 7.986 15.964 8.05L16.614 9.525C16.67 9.651 16.613 9.799 16.486 9.855C16.422 9.883 16.349 9.883 16.285 9.855L14.809 9.205C14.745 9.176 14.672 9.176 14.608 9.205L13.133 9.855C13.006 9.911 12.859 9.853 12.803 9.727C12.775 9.662 12.775 9.589 12.803 9.525L13.453 8.05C13.482 7.986 13.482 7.912 13.453 7.848L12.803 6.373C12.747 6.247 12.805 6.099 12.931 6.043C12.995 6.015 13.068 6.015 13.133 6.043L14.608 6.694C14.672 6.722 14.745 6.722 14.809 6.694L16.285 6.043C16.411 5.988 16.558 6.045 16.614 6.171ZM6.841 5.443L5.361 6.028L6.233 6.9L6.841 5.443Z" fill="url(#gradient1)" transform="matrix(0.707 -0.707 0.707 0.707 0.085 9.868)"/>\n </g>\n </svg>\n ',
786
+ /** AI对话 */ aiChat: function aiChat(line_id) {
787
+ return '<svg width="1em" height="1em" viewBox="2 2 18 18" fill="none">\n <defs>\n <linearGradient id="' + line_id + '" x1="8.31767559" x2="8.31767559" y1="0" y2="18.0010872" gradientUnits="userSpaceOnUse">\n <stop stop-color="rgb(51,217,255)" offset="0.354430377" stop-opacity="1" />\n <stop stop-color="rgb(206,119,255)" offset="1" stop-opacity="1" />\n </linearGradient>\n </defs>\n <path d="M6.91721 0C8.77619 0 10.52 0.737553 11.8084 2.026C12.4502 2.6678 12.9613 3.42996 13.3093 4.26934C13.4416 4.58819 13.2903 4.95385 12.9714 5.08607C12.6526 5.21828 12.2869 5.06698 12.1547 4.74813C11.8697 4.06081 11.4508 3.43616 10.9245 2.90989C9.86818 1.85353 8.44127 1.25 6.91721 1.25C3.7873 1.25 1.25 3.7873 1.25 6.91721C1.25 10.0471 3.7873 12.5844 6.91721 12.5844C8.44127 12.5844 9.86818 11.9809 10.9245 10.9245C11.1686 10.6805 11.5643 10.6805 11.8084 10.9245C12.0525 11.1686 12.0525 11.5643 11.8084 11.8084C10.6655 12.9513 9.16441 13.6607 7.5424 13.8064L7.54221 17.3761C7.54221 17.7213 7.26239 18.0011 6.91721 18.0011C6.57203 18.0011 6.29221 17.7213 6.29221 17.3761L6.29175 13.8065C2.76456 13.4904 0 10.5267 0 6.91721C0 3.09694 3.09694 0 6.91721 0ZM11.0506 6.49482C11.2947 6.7389 11.2947 7.13463 11.0506 7.37871L7.54746 10.8819C7.30339 11.126 6.90766 11.126 6.66358 10.8819C6.4195 10.6378 6.4195 10.2421 6.66358 9.998L10.1668 6.49482C10.4108 6.25075 10.8066 6.25075 11.0506 6.49482ZM8.56622 4.55861L6.50122 9.49996C6.36812 9.81845 6.00204 9.96873 5.68355 9.83564C5.36507 9.70254 5.21478 9.33646 5.34788 9.01798L5.71248 8.14735L4.09417 6.52917L3.19846 6.88426C2.90422 7.00062 2.57458 6.87812 2.42392 6.60965C2.29698 6.28866 2.41781 5.84878 2.7388 5.72184L7.75973 3.73641C8.27389 3.53309 8.77942 4.04845 8.56622 4.55861ZM16.614 6.1714C16.6424 6.23564 16.6424 6.30883 16.614 6.37307L15.9639 7.84813C15.9356 7.91237 15.9356 7.98556 15.9639 8.0498L16.614 9.52486C16.6697 9.6512 16.6125 9.79877 16.4861 9.85446C16.4219 9.88277 16.3487 9.88277 16.2845 9.85446L14.8094 9.20428C14.7452 9.17597 14.672 9.17597 14.6077 9.20428L13.1327 9.85446C13.0063 9.91015 12.8588 9.85287 12.8031 9.72653C12.7747 9.66229 12.7747 9.5891 12.8031 9.52486L13.4532 8.0498C13.4816 7.98556 13.4816 7.91237 13.4532 7.84813L12.8031 6.37307C12.7474 6.24673 12.8047 6.09916 12.931 6.04347C12.9952 6.01516 13.0684 6.01516 13.1327 6.04347L14.6077 6.69365C14.672 6.72196 14.7452 6.72196 14.8094 6.69365L16.2845 6.04347C16.4108 5.98778 16.5584 6.04506 16.614 6.1714ZM6.84128 5.44268L5.36083 6.02833L6.2325 6.9L6.84128 5.44268Z" fill="url(#' + line_id + ')" fill-rule="nonzero" transform="matrix(0.707107,-0.707107,0.707107,0.707107,0.0854492,9.86798)" />\n </svg>\n ';
788
+ },
787
789
  /** 相机/截图 */ capturePicture: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="capture-picture">\n <path d="M6.94 7.51C7.34 7.51 7.7 7.28 7.86 6.91L8.43 5.6C8.59 5.23 8.95 5 9.35 5L14.69 5C15.04 5 15.37 5.18 15.55 5.49L16.45 7.02C16.63 7.33 16.96 7.51 17.31 7.51L18.5 7.51C19.6 7.51 20.5 8.41 20.5 9.51L20.5 17C20.5 18.1 19.6 19 18.5 19L5.5 19C4.39 19 3.5 18.1 3.5 17L3.5 9.51C3.5 8.41 4.39 7.51 5.5 7.51L6.94 7.51Z" stroke-width="1.5"/>\n <circle cx="12" cy="12.525146" r="3.068097" stroke-width="1.5"/>\n </svg>',
788
790
  /** 电子放大 */ zoom: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="zoom">\n <ellipse cx="10.914795" cy="11.25" rx="8.004043" ry="8.25" stroke-width="1.5"/>\n <path d="M14.31 11.04L8.05 11.14" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M11.13 14.22L11.23 7.95" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M16.45 17.83L19.36 20.83" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
789
791
  /** 隐私遮蔽 */ privacyMasking: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="privacy-masking">\n <path d="M12 19C11.15 19 10.31 18.82 9.49 18.5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M20.88 12.46C18.98 15.96 15.49 19 11.99 19" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M19.07 8.92C19.76 9.72 20.38 10.61 20.88 11.53C21.03 11.82 21.03 12.17 20.88 12.46" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5 19L19 5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M9.77 14.22C8.54 12.99 8.54 11 9.77 9.77C11 8.54 12.99 8.54 14.22 9.77" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M17.04 6.95C15.49 5.75 13.74 5 12 5C8.5 5 5.01 8.03 3.11 11.53C2.96 11.82 2.96 12.17 3.11 12.46C4.06 14.21 5.41 15.84 6.95 17.04" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
@@ -879,7 +881,7 @@ var IconComponents = {
879
881
  },
880
882
  aiChat: function aiChat(attr) {
881
883
  if (attr === void 0) attr = {};
882
- return createIcon(Icons.aiChat, 'aiChat', attr);
884
+ return createIcon(Icons.aiChat(attr.line_id), 'aiChat', attr);
883
885
  },
884
886
  talkGrowth: function talkGrowth(attr) {
885
887
  if (attr === void 0) attr = {};
@@ -7172,6 +7174,83 @@ function _ts_generator$3(thisArg, body) {
7172
7174
  'live'
7173
7175
  ];
7174
7176
 
7177
+ /**
7178
+ * UUID 生成(RFC 4122 v4)
7179
+ *
7180
+ * 按可用性三级降级:
7181
+ *
7182
+ * | 顺序 | 实现 | 说明 |
7183
+ * | ---- | ------------------------ | ------------------------------------------------------------- |
7184
+ * | 1 | `crypto.randomUUID()` | 原生实现,最快;**仅在安全上下文(HTTPS / localhost)可用** |
7185
+ * | 2 | `crypto.getRandomValues` | 密码学强度随机数手工组装;HTTP 页面下也可用 |
7186
+ * | 3 | `Math.random()` | 兜底,**不具密码学强度**,只适合做 DOM id 这类无安全要求的标识 |
7187
+ *
7188
+ * 之所以不能只用 `crypto.randomUUID()`:播放器会被嵌到 HTTP 页面里,
7189
+ * 那种场景下它是 `undefined`,必须有降级路径。
7190
+ *
7191
+ * @remarks 用 `crypto` 而非 `window.crypto`,以便在 worker 中也能工作(worker 里没有 `window`)。
7192
+ */ /** 0~255 对应的两位十六进制查表,避免每个字节都做一次 toString + 手工补零 */ var HEX_BY_BYTE = [];
7193
+ for(var i = 0; i < 256; i++){
7194
+ // + 0x100 保证结果是三位,再切掉首位,等价于补零到两位(不用 padStart,es5 目标下它需要 polyfill)
7195
+ HEX_BY_BYTE.push((i + 0x100).toString(16).slice(1));
7196
+ }
7197
+ /**
7198
+ * 取 16 个随机字节
7199
+ *
7200
+ * @returns 长度为 16 的字节数组,每项 0~255
7201
+ */ function randomBytes() {
7202
+ var bytes = [];
7203
+ if (typeof crypto !== 'undefined' && typeof crypto.getRandomValues === 'function') {
7204
+ var buffer = new Uint8Array(16);
7205
+ crypto.getRandomValues(buffer);
7206
+ for(var i = 0; i < 16; i++){
7207
+ bytes.push(buffer[i]);
7208
+ }
7209
+ return bytes;
7210
+ }
7211
+ // 兜底:不具密码学强度,不要用于 token / 密钥一类场景
7212
+ for(var i1 = 0; i1 < 16; i1++){
7213
+ bytes.push(Math.floor(Math.random() * 256));
7214
+ }
7215
+ return bytes;
7216
+ }
7217
+ /**
7218
+ * 把 16 个字节按 v4 规范格式化成 `8-4-4-4-12`
7219
+ *
7220
+ * 会就地改写第 6、8 个字节以写入版本号与变体位。
7221
+ *
7222
+ * @param bytes - 长度为 16 的字节数组
7223
+ * @returns 形如 `xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx` 的字符串,`y` 为 8/9/a/b
7224
+ */ function bytesToUuid(bytes) {
7225
+ // 版本号固定为 4(高 4 位置为 0100)
7226
+ bytes[6] = bytes[6] & 0x0f | 0x40;
7227
+ // 变体固定为 RFC 4122(高 2 位置为 10)
7228
+ bytes[8] = bytes[8] & 0x3f | 0x80;
7229
+ var out = '';
7230
+ for(var i = 0; i < 16; i++){
7231
+ // 8-4-4-4-12 的分组位置
7232
+ if (i === 4 || i === 6 || i === 8 || i === 10) out += '-';
7233
+ out += HEX_BY_BYTE[bytes[i]];
7234
+ }
7235
+ return out;
7236
+ }
7237
+ /**
7238
+ * 生成一个 v4 UUID
7239
+ *
7240
+ * @returns 36 位小写 UUID,形如 `f47ac10b-58cc-4372-a567-0e02b2c3d479`
7241
+ * @example
7242
+ * ```ts
7243
+ * import uuid from '@/utils/uuid';
7244
+ *
7245
+ * uuid(); // '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
7246
+ * ```
7247
+ */ function uuid() {
7248
+ if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
7249
+ return crypto.randomUUID();
7250
+ }
7251
+ return bytesToUuid(randomBytes());
7252
+ }
7253
+
7175
7254
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
7176
7255
  try {
7177
7256
  var info = gen[key](arg);
@@ -7362,7 +7441,8 @@ function _ts_generator$2(thisArg, body) {
7362
7441
  _proto._render = function _render() {
7363
7442
  var _this_locale;
7364
7443
  this.$container.innerHTML = IconComponents.aiChat({
7365
- title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
7444
+ title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT,
7445
+ line_id: 'ezpleyer___AI_CHAT_LINEAR_GRADIENT___' + '' + uuid()
7366
7446
  });
7367
7447
  };
7368
7448
  _proto.reset = function reset(hide) {
@@ -10723,6 +10803,7 @@ var THEME_DEFAULT_OPTIONS = {
10723
10803
  domain: 'https://open.ys7.com'
10724
10804
  },
10725
10805
  isEzviz: true,
10806
+ sdkType: 'base',
10726
10807
  /** 移动端竖屏, 全屏情况下不展示扩张,放置在 footer 中 */ mobileExtendOptions: {
10727
10808
  controls: MOBILE_EXTENDS
10728
10809
  }
@@ -12260,6 +12341,6 @@ var THEME_DEFAULT_OPTIONS = {
12260
12341
  zh: zh,
12261
12342
  en: en
12262
12343
  };
12263
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.7-beta.3';
12344
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.1';
12264
12345
 
12265
12346
  export { CONTROL_INIT_EVENTS, Control, EVENTS, Fullscreen, Loading, Message, Play, Poster, Rec, Theme, Utils, Volume };
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.7-beta.3
3
- * Copyright (c) 2026-09-24 15:33:23 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.1
3
+ * Copyright (c) 2026-09-29 20:25:53 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  (function (global, factory) {
@@ -1130,7 +1130,9 @@
1130
1130
  return '<svg width="1em" height="1em" viewBox="0 0 24 24" focusable="false" aria-hidden="true" data-icon="talk-growth">\n <g fill="currentColor" stroke="currentColor">\n <path stroke="none" d="M9.22313 18.9543C9.6588 18.9543 10.0189 19.2133 10.0759 19.5494L10.0837 19.6428L10.0837 21.7847C10.0837 22.1649 9.69841 22.4732 9.22313 22.4732C8.78745 22.4732 8.42739 22.2142 8.37041 21.8781L8.36255 21.7847L8.36255 19.6428C8.36255 19.2626 8.74784 18.9543 9.22313 18.9543Z" fill-rule="evenodd" />\n <path d="M16.5323 11.3779L16.5323 11.5872C16.5323 15.7472 13.1599 19.1197 8.99981 19.1197C4.83971 19.1197 1.46729 15.7472 1.46729 11.5872L1.46729 11.4335" fill-rule="evenodd" fill="none" stroke-width="1.5" />\n <path stroke="none" d="M4.07861 6.12978C4.07861 3.589 6.30476 1.5293 9.05085 1.5293C11.7969 1.5293 14.0231 3.589 14.0231 6.12978L14.0231 12.075C14.0231 14.6158 11.7969 16.6755 9.05085 16.6755C6.30476 16.6755 4.07861 14.6158 4.07861 12.075L4.07861 6.12978ZM5.57861 12.075L5.57861 6.12978C5.57861 5.94083 5.597 5.75561 5.63376 5.57412C5.67605 5.36539 5.74265 5.16158 5.83357 4.9627C5.86625 4.8912 5.90164 4.82121 5.93974 4.75272C6.09781 4.4685 6.30245 4.21019 6.55365 3.97777C6.64206 3.89597 6.73424 3.81921 6.83019 3.7475C7.0816 3.55959 7.3589 3.40632 7.66207 3.28767C7.79552 3.23545 7.93107 3.19114 8.06871 3.15475C8.38503 3.07111 8.71241 3.0293 9.05085 3.0293C9.38929 3.0293 9.71668 3.07112 10.033 3.15475C10.1706 3.19114 10.3062 3.23545 10.4396 3.28767C10.7428 3.40632 11.0201 3.55959 11.2715 3.74749C11.3675 3.81921 11.4596 3.89596 11.548 3.97777C11.7993 4.2102 12.0039 4.46853 12.162 4.75276C12.2001 4.82124 12.2354 4.89122 12.2681 4.9627C12.359 5.16157 12.4256 5.36536 12.4679 5.57407C12.5047 5.75558 12.5231 5.94082 12.5231 6.12978L12.5231 12.075C12.5231 12.264 12.5047 12.4492 12.4679 12.6307C12.4256 12.8394 12.359 13.0432 12.2681 13.2421C12.2355 13.3136 12.2001 13.3835 12.162 13.452C12.0039 13.7362 11.7993 13.9946 11.548 14.227C11.4596 14.3088 11.3675 14.3856 11.2715 14.4573C11.0201 14.6452 10.7428 14.7985 10.4396 14.9171C10.3062 14.9693 10.1706 15.0136 10.033 15.05C9.71667 15.1337 9.38929 15.1755 9.05085 15.1755C8.71241 15.1755 8.38503 15.1337 8.06871 15.05C7.93107 15.0136 7.79552 14.9693 7.66207 14.9171C7.3589 14.7985 7.0816 14.6452 6.83019 14.4573C6.73424 14.3856 6.64206 14.3088 6.55365 14.227C6.30244 13.9946 6.09779 13.7363 5.93972 13.452C5.90163 13.3836 5.86625 13.3136 5.83357 13.2421C5.74265 13.0432 5.67605 12.8394 5.63377 12.6307C5.597 12.4492 5.57861 12.264 5.57861 12.075Z" fill-rule="evenodd" />\n </g>\n <g class="' + prefix + '-icon-talk-growth-dot">\n <path class="' + prefix + '-icon-talk-growth-dot1" d="M19.1333 6.40039L22.8667 6.40039" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot2" d="M19.1333 10.1338L21.9331 10.1338" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot3" d="M19.1333 13.8672L20.9995 13.8672" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n <path class="' + prefix + '-icon-talk-growth-dot4" d="M19.1333 17.6001L20.0669 17.6001" stroke="currentColor" stroke-linecap="round" stroke-width="1.86666667" />\n </g>\n </svg>';
1131
1131
  },
1132
1132
  /** 语音广播 */ broadcast: '\n <svg width="1em" height="1em" viewBox="0 0 24 24" fill="currentColor" stroke="none" focusable="false" aria-hidden="true" data-icon="broadcast">\n <g>\n <path id="矢量 1" d="m8.52109,6.76609l6.17823,-2.91335c0.2485,-0.11718 0.5027,-0.19531 0.7627,-0.2351c0.2034,-0.03077 0.4104,-0.03809 0.6211,-0.02173c0.2092,0.01636 0.4116,0.05493 0.6069,0.11621c0.2278,0.07129 0.4461,0.1731 0.6548,0.30542c0.2087,0.13232 0.394,0.28638 0.5557,0.46216l0.0002,0l0,0c0.1384,0.15064 0.2598,0.31714 0.3638,0.49951c0.1047,0.18335 0.1865,0.37354 0.2451,0.57081c0.0752,0.25219 0.1128,0.51562 0.1128,0.79004l0,10.64651c0,0.2744 -0.0376,0.5379 -0.1128,0.7901l0,0c-0.0586,0.197 -0.1404,0.3874 -0.2451,0.5708c-0.104,0.1823 -0.2254,0.3488 -0.364,0.4995c-0.1617,0.1758 -0.347,0.3298 -0.5557,0.4621c-0.2087,0.1324 -0.427,0.2342 -0.6548,0.3054c-0.1953,0.0611 -0.3977,0.0999 -0.6069,0.1163c-0.2107,0.0163 -0.4175,0.009 -0.6209,-0.0218c-0.2602,-0.0398 -0.5144,-0.1181 -0.7629,-0.2351l-5.45044,-2.5703l0,2.759c0,0.1036 -0.01831,0.1995 -0.05494,0.2879c-0.03662,0.0886 -0.09155,0.1692 -0.16479,0.2424c-0.14624,0.1465 -0.32324,0.2197 -0.53027,0.2197l-2,0c-0.14209,0 -0.27344,-0.0373 -0.39429,-0.112c-0.12085,-0.0745 -0.21289,-0.1756 -0.27661,-0.3025l-1.99268,-3.9856c-0.06225,-0.0234 -0.12402,-0.0481 -0.18555,-0.074c-0.26953,-0.114 -0.52417,-0.2502 -0.7644,-0.4084c-0.26636,-0.1758 -0.51489,-0.3789 -0.74512,-0.6094c-0.23047,-0.2302 -0.43359,-0.4788 -0.60937,-0.7451c-0.1582,-0.2403 -0.29444,-0.4949 -0.40845,-0.7644c-0.11328,-0.2679 -0.20068,-0.5413 -0.26245,-0.8206l0,0c-0.07398,-0.3347 -0.11108,-0.6775 -0.11108,-1.0286c0,-0.351 0.0371,-0.6938 0.11108,-1.0285c0.06177,-0.2793 0.14917,-0.5528 0.26245,-0.8206c0.11401,-0.26953 0.25025,-0.52417 0.40845,-0.7644c0.17578,-0.26636 0.3789,-0.5149 0.60937,-0.74512c0.23023,-0.23047 0.47876,-0.4336 0.74512,-0.60938l0,0c0.24023,-0.1582 0.49487,-0.29444 0.7644,-0.40845c0.26783,-0.11328 0.54126,-0.20068 0.82056,-0.26245l0,0l0,0l0,0c0.33472,-0.07398 0.67749,-0.11109 1.02857,-0.11109l2.93872,0c0.02636,-0.0166 0.05444,-0.03198 0.08349,-0.04589zm0.72876,8.47948l6.08937,2.8716c0.1287,0.0606 0.2598,0.0987 0.3935,0.114c0.0772,0.0088 0.1551,0.0103 0.2337,0.0042c0.0857,-0.0068 0.1687,-0.0217 0.2495,-0.0452c0.1133,-0.0329 0.2219,-0.0822 0.3257,-0.1479c0.104,-0.0659 0.1948,-0.1431 0.2729,-0.2317c0.0554,-0.063 0.1045,-0.1318 0.147,-0.2063c0.0393,-0.0686 0.0713,-0.1397 0.0962,-0.2131c0.043,-0.1277 0.0647,-0.2625 0.0647,-0.4046l0,-10.64651c0,-0.14209 -0.0217,-0.2771 -0.0647,-0.40454c-0.0249,-0.07349 -0.0569,-0.14454 -0.0962,-0.21314c-0.0425,-0.07471 -0.0916,-0.14331 -0.147,-0.2063c-0.0781,-0.08862 -0.1689,-0.16577 -0.2729,-0.23169c-0.1038,-0.06567 -0.2124,-0.11523 -0.3257,-0.14795c-0.0808,-0.02344 -0.1638,-0.03833 -0.2495,-0.04517c-0.0786,-0.0061 -0.1565,-0.00463 -0.2337,0.00415c-0.1337,0.01539 -0.2648,0.05347 -0.3935,0.11402l-6.09034,2.87208l0.00097,7.16405zm13.58447,-7.9121l-2,1c-0.3757,0.18775 -0.8184,0.04029 -1.0063,-0.33545c-0.0552,-0.11035 -0.0813,-0.22656 -0.0813,-0.34033c0,-0.27344 0.1516,-0.53321 0.4167,-0.66602l2,-1c0.3757,-0.18775 0.8186,-0.04004 1.0064,0.33545c0.0551,0.11035 0.0813,0.22656 0.0813,0.34033c0,0.27368 -0.1514,0.53345 -0.4168,0.66602zm-15.08544,8.9785l-2.08667,0l1.30029,2.6006l0.78638,0l0,-2.6006zm0,-7.99998l-2.25,0c-0.24976,0 -0.49317,0.02734 -0.73023,0.08179c-0.18188,0.04174 -0.36011,0.09961 -0.53467,0.17334c-0.17944,0.07593 -0.34961,0.1665 -0.51049,0.27124c-0.18702,0.12231 -0.36133,0.26416 -0.52271,0.42554c-0.16138,0.16137 -0.30322,0.33569 -0.42554,0.52267c-0.10473,0.1609 -0.19531,0.3311 -0.27124,0.5105c-0.07373,0.1746 -0.13159,0.3528 -0.17334,0.5347c-0.05444,0.2371 -0.08178,0.4805 -0.08178,0.7302c0,0.2498 0.02734,0.4932 0.08178,0.7303c0.04175,0.1818 0.09961,0.3601 0.17334,0.5346c0.07593,0.1795 0.16651,0.3496 0.27124,0.5105c0.12232,0.187 0.26416,0.3614 0.42554,0.5227c0.16138,0.1614 0.33569,0.3033 0.52271,0.4256c0.16088,0.1047 0.33105,0.1953 0.51049,0.2712c0.17456,0.0737 0.35279,0.1316 0.53467,0.1734c0.23706,0.0544 0.48047,0.0817 0.73023,0.0817l2.25097,0l-0.00097,-6.49998zm12.75004,2.60058l2,0c0.4199,0 0.75,0.3301 0.75,0.75c0,0.4199 -0.3301,0.75 -0.75,0.75l-2,0c-0.42,0 -0.75,-0.3301 -0.75,-0.75c0,-0.4199 0.33,-0.75 0.75,-0.75zm0.3354,4.0791l2,1c0.2654,0.1326 0.4168,0.3924 0.4168,0.6661c0,0.1137 -0.0262,0.2299 -0.0813,0.3403c-0.1878,0.3755 -0.6307,0.5232 -1.0064,0.3354l-2,-1c-0.2651,-0.1328 -0.4167,-0.3925 -0.4167,-0.666c0,-0.1138 0.0261,-0.23 0.0813,-0.3403c0.1879,-0.3758 0.6306,-0.5232 1.0063,-0.3355z" fill-rule="evenodd"/>\n </g>\n</svg>',
1133
- /** AI对话 */ aiChat: '\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none">\n <defs>\n <linearGradient id="gradient0" x1="10.667" x2="10.667" y1="0.667" y2="20.667">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n <linearGradient id="gradient1" x1="8.318" x2="8.318" y1="0" y2="18.001">\n <stop stop-color="#33D9FF" offset="0.354"/>\n <stop stop-color="#CE77FF" offset="1"/>\n </linearGradient>\n </defs>\n \n <g transform="scale(1.2) translate(-3, -0.5)">\n <path d="M6.917 0C8.776 0 10.52 0.738 11.808 2.026C12.45 2.668 12.961 3.43 13.309 4.269C13.442 4.588 13.29 4.954 12.971 5.086C12.653 5.218 12.287 5.067 12.155 4.748C11.87 4.061 11.451 3.436 10.925 2.91C9.868 1.854 8.441 1.25 6.917 1.25C3.787 1.25 1.25 3.787 1.25 6.917C1.25 10.047 3.787 12.584 6.917 12.584C8.441 12.584 9.868 11.981 10.925 10.925C11.169 10.681 11.564 10.681 11.808 10.925C12.052 11.169 12.052 11.565 11.808 11.809C10.666 12.951 9.164 13.661 7.542 13.807L7.542 17.376C7.542 17.721 7.262 18.001 6.917 18.001C6.572 18.001 6.292 17.721 6.292 17.376L6.292 13.807C2.765 13.49 0 10.527 0 6.917C0 3.097 3.097 0 6.917 0ZM11.051 6.495C11.295 6.739 11.295 7.135 11.051 7.379L7.547 10.882C7.303 11.126 6.908 11.126 6.664 10.882C6.42 10.638 6.42 10.242 6.664 9.998L10.167 6.495C10.411 6.251 10.807 6.251 11.051 6.495ZM8.566 4.559L6.501 9.5C6.368 9.818 6.002 9.969 5.684 9.836C5.365 9.703 5.215 9.336 5.348 9.018L5.712 8.147L4.094 6.529L3.198 6.884C2.904 7.001 2.575 6.878 2.424 6.61C2.297 6.289 2.418 5.849 2.739 5.722L7.76 3.736C8.274 3.533 8.779 4.049 8.566 4.559ZM16.614 6.171C16.642 6.236 16.642 6.309 16.614 6.373L15.964 7.848C15.936 7.912 15.936 7.986 15.964 8.05L16.614 9.525C16.67 9.651 16.613 9.799 16.486 9.855C16.422 9.883 16.349 9.883 16.285 9.855L14.809 9.205C14.745 9.176 14.672 9.176 14.608 9.205L13.133 9.855C13.006 9.911 12.859 9.853 12.803 9.727C12.775 9.662 12.775 9.589 12.803 9.525L13.453 8.05C13.482 7.986 13.482 7.912 13.453 7.848L12.803 6.373C12.747 6.247 12.805 6.099 12.931 6.043C12.995 6.015 13.068 6.015 13.133 6.043L14.608 6.694C14.672 6.722 14.745 6.722 14.809 6.694L16.285 6.043C16.411 5.988 16.558 6.045 16.614 6.171ZM6.841 5.443L5.361 6.028L6.233 6.9L6.841 5.443Z" fill="url(#gradient1)" transform="matrix(0.707 -0.707 0.707 0.707 0.085 9.868)"/>\n </g>\n </svg>\n ',
1133
+ /** AI对话 */ aiChat: function aiChat(line_id) {
1134
+ return '<svg width="1em" height="1em" viewBox="2 2 18 18" fill="none">\n <defs>\n <linearGradient id="' + line_id + '" x1="8.31767559" x2="8.31767559" y1="0" y2="18.0010872" gradientUnits="userSpaceOnUse">\n <stop stop-color="rgb(51,217,255)" offset="0.354430377" stop-opacity="1" />\n <stop stop-color="rgb(206,119,255)" offset="1" stop-opacity="1" />\n </linearGradient>\n </defs>\n <path d="M6.91721 0C8.77619 0 10.52 0.737553 11.8084 2.026C12.4502 2.6678 12.9613 3.42996 13.3093 4.26934C13.4416 4.58819 13.2903 4.95385 12.9714 5.08607C12.6526 5.21828 12.2869 5.06698 12.1547 4.74813C11.8697 4.06081 11.4508 3.43616 10.9245 2.90989C9.86818 1.85353 8.44127 1.25 6.91721 1.25C3.7873 1.25 1.25 3.7873 1.25 6.91721C1.25 10.0471 3.7873 12.5844 6.91721 12.5844C8.44127 12.5844 9.86818 11.9809 10.9245 10.9245C11.1686 10.6805 11.5643 10.6805 11.8084 10.9245C12.0525 11.1686 12.0525 11.5643 11.8084 11.8084C10.6655 12.9513 9.16441 13.6607 7.5424 13.8064L7.54221 17.3761C7.54221 17.7213 7.26239 18.0011 6.91721 18.0011C6.57203 18.0011 6.29221 17.7213 6.29221 17.3761L6.29175 13.8065C2.76456 13.4904 0 10.5267 0 6.91721C0 3.09694 3.09694 0 6.91721 0ZM11.0506 6.49482C11.2947 6.7389 11.2947 7.13463 11.0506 7.37871L7.54746 10.8819C7.30339 11.126 6.90766 11.126 6.66358 10.8819C6.4195 10.6378 6.4195 10.2421 6.66358 9.998L10.1668 6.49482C10.4108 6.25075 10.8066 6.25075 11.0506 6.49482ZM8.56622 4.55861L6.50122 9.49996C6.36812 9.81845 6.00204 9.96873 5.68355 9.83564C5.36507 9.70254 5.21478 9.33646 5.34788 9.01798L5.71248 8.14735L4.09417 6.52917L3.19846 6.88426C2.90422 7.00062 2.57458 6.87812 2.42392 6.60965C2.29698 6.28866 2.41781 5.84878 2.7388 5.72184L7.75973 3.73641C8.27389 3.53309 8.77942 4.04845 8.56622 4.55861ZM16.614 6.1714C16.6424 6.23564 16.6424 6.30883 16.614 6.37307L15.9639 7.84813C15.9356 7.91237 15.9356 7.98556 15.9639 8.0498L16.614 9.52486C16.6697 9.6512 16.6125 9.79877 16.4861 9.85446C16.4219 9.88277 16.3487 9.88277 16.2845 9.85446L14.8094 9.20428C14.7452 9.17597 14.672 9.17597 14.6077 9.20428L13.1327 9.85446C13.0063 9.91015 12.8588 9.85287 12.8031 9.72653C12.7747 9.66229 12.7747 9.5891 12.8031 9.52486L13.4532 8.0498C13.4816 7.98556 13.4816 7.91237 13.4532 7.84813L12.8031 6.37307C12.7474 6.24673 12.8047 6.09916 12.931 6.04347C12.9952 6.01516 13.0684 6.01516 13.1327 6.04347L14.6077 6.69365C14.672 6.72196 14.7452 6.72196 14.8094 6.69365L16.2845 6.04347C16.4108 5.98778 16.5584 6.04506 16.614 6.1714ZM6.84128 5.44268L5.36083 6.02833L6.2325 6.9L6.84128 5.44268Z" fill="url(#' + line_id + ')" fill-rule="nonzero" transform="matrix(0.707107,-0.707107,0.707107,0.707107,0.0854492,9.86798)" />\n </svg>\n ';
1135
+ },
1134
1136
  /** 相机/截图 */ capturePicture: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="capture-picture">\n <path d="M6.94 7.51C7.34 7.51 7.7 7.28 7.86 6.91L8.43 5.6C8.59 5.23 8.95 5 9.35 5L14.69 5C15.04 5 15.37 5.18 15.55 5.49L16.45 7.02C16.63 7.33 16.96 7.51 17.31 7.51L18.5 7.51C19.6 7.51 20.5 8.41 20.5 9.51L20.5 17C20.5 18.1 19.6 19 18.5 19L5.5 19C4.39 19 3.5 18.1 3.5 17L3.5 9.51C3.5 8.41 4.39 7.51 5.5 7.51L6.94 7.51Z" stroke-width="1.5"/>\n <circle cx="12" cy="12.525146" r="3.068097" stroke-width="1.5"/>\n </svg>',
1135
1137
  /** 电子放大 */ zoom: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="zoom">\n <ellipse cx="10.914795" cy="11.25" rx="8.004043" ry="8.25" stroke-width="1.5"/>\n <path d="M14.31 11.04L8.05 11.14" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M11.13 14.22L11.23 7.95" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M16.45 17.83L19.36 20.83" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
1136
1138
  /** 隐私遮蔽 */ privacyMasking: '<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" focusable="false" aria-hidden="true" data-icon="privacy-masking">\n <path d="M12 19C11.15 19 10.31 18.82 9.49 18.5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M20.88 12.46C18.98 15.96 15.49 19 11.99 19" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M19.07 8.92C19.76 9.72 20.38 10.61 20.88 11.53C21.03 11.82 21.03 12.17 20.88 12.46" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M5 19L19 5" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M9.77 14.22C8.54 12.99 8.54 11 9.77 9.77C11 8.54 12.99 8.54 14.22 9.77" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n <path d="M17.04 6.95C15.49 5.75 13.74 5 12 5C8.5 5 5.01 8.03 3.11 11.53C2.96 11.82 2.96 12.17 3.11 12.46C4.06 14.21 5.41 15.84 6.95 17.04" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/>\n </svg>',
@@ -1226,7 +1228,7 @@
1226
1228
  },
1227
1229
  aiChat: function aiChat(attr) {
1228
1230
  if (attr === void 0) attr = {};
1229
- return createIcon(Icons.aiChat, 'aiChat', attr);
1231
+ return createIcon(Icons.aiChat(attr.line_id), 'aiChat', attr);
1230
1232
  },
1231
1233
  talkGrowth: function talkGrowth(attr) {
1232
1234
  if (attr === void 0) attr = {};
@@ -8675,6 +8677,83 @@
8675
8677
  'live'
8676
8678
  ];
8677
8679
 
8680
+ /**
8681
+ * UUID 生成(RFC 4122 v4)
8682
+ *
8683
+ * 按可用性三级降级:
8684
+ *
8685
+ * | 顺序 | 实现 | 说明 |
8686
+ * | ---- | ------------------------ | ------------------------------------------------------------- |
8687
+ * | 1 | `crypto.randomUUID()` | 原生实现,最快;**仅在安全上下文(HTTPS / localhost)可用** |
8688
+ * | 2 | `crypto.getRandomValues` | 密码学强度随机数手工组装;HTTP 页面下也可用 |
8689
+ * | 3 | `Math.random()` | 兜底,**不具密码学强度**,只适合做 DOM id 这类无安全要求的标识 |
8690
+ *
8691
+ * 之所以不能只用 `crypto.randomUUID()`:播放器会被嵌到 HTTP 页面里,
8692
+ * 那种场景下它是 `undefined`,必须有降级路径。
8693
+ *
8694
+ * @remarks 用 `crypto` 而非 `window.crypto`,以便在 worker 中也能工作(worker 里没有 `window`)。
8695
+ */ /** 0~255 对应的两位十六进制查表,避免每个字节都做一次 toString + 手工补零 */ var HEX_BY_BYTE = [];
8696
+ for(var i = 0; i < 256; i++){
8697
+ // + 0x100 保证结果是三位,再切掉首位,等价于补零到两位(不用 padStart,es5 目标下它需要 polyfill)
8698
+ HEX_BY_BYTE.push((i + 0x100).toString(16).slice(1));
8699
+ }
8700
+ /**
8701
+ * 取 16 个随机字节
8702
+ *
8703
+ * @returns 长度为 16 的字节数组,每项 0~255
8704
+ */ function randomBytes() {
8705
+ var bytes = [];
8706
+ if (typeof crypto !== 'undefined' && typeof crypto.getRandomValues === 'function') {
8707
+ var buffer = new Uint8Array(16);
8708
+ crypto.getRandomValues(buffer);
8709
+ for(var i = 0; i < 16; i++){
8710
+ bytes.push(buffer[i]);
8711
+ }
8712
+ return bytes;
8713
+ }
8714
+ // 兜底:不具密码学强度,不要用于 token / 密钥一类场景
8715
+ for(var i1 = 0; i1 < 16; i1++){
8716
+ bytes.push(Math.floor(Math.random() * 256));
8717
+ }
8718
+ return bytes;
8719
+ }
8720
+ /**
8721
+ * 把 16 个字节按 v4 规范格式化成 `8-4-4-4-12`
8722
+ *
8723
+ * 会就地改写第 6、8 个字节以写入版本号与变体位。
8724
+ *
8725
+ * @param bytes - 长度为 16 的字节数组
8726
+ * @returns 形如 `xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx` 的字符串,`y` 为 8/9/a/b
8727
+ */ function bytesToUuid(bytes) {
8728
+ // 版本号固定为 4(高 4 位置为 0100)
8729
+ bytes[6] = bytes[6] & 0x0f | 0x40;
8730
+ // 变体固定为 RFC 4122(高 2 位置为 10)
8731
+ bytes[8] = bytes[8] & 0x3f | 0x80;
8732
+ var out = '';
8733
+ for(var i = 0; i < 16; i++){
8734
+ // 8-4-4-4-12 的分组位置
8735
+ if (i === 4 || i === 6 || i === 8 || i === 10) out += '-';
8736
+ out += HEX_BY_BYTE[bytes[i]];
8737
+ }
8738
+ return out;
8739
+ }
8740
+ /**
8741
+ * 生成一个 v4 UUID
8742
+ *
8743
+ * @returns 36 位小写 UUID,形如 `f47ac10b-58cc-4372-a567-0e02b2c3d479`
8744
+ * @example
8745
+ * ```ts
8746
+ * import uuid from '@/utils/uuid';
8747
+ *
8748
+ * uuid(); // '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'
8749
+ * ```
8750
+ */ function uuid() {
8751
+ if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
8752
+ return crypto.randomUUID();
8753
+ }
8754
+ return bytesToUuid(randomBytes());
8755
+ }
8756
+
8678
8757
  function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
8679
8758
  try {
8680
8759
  var info = gen[key](arg);
@@ -8865,7 +8944,8 @@
8865
8944
  _proto._render = function _render() {
8866
8945
  var _this_locale;
8867
8946
  this.$container.innerHTML = IconComponents.aiChat({
8868
- title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT
8947
+ title: (_this_locale = this.locale) == null ? void 0 : _this_locale.BTN_AICHAT,
8948
+ line_id: 'ezpleyer___AI_CHAT_LINEAR_GRADIENT___' + '' + uuid()
8869
8949
  });
8870
8950
  };
8871
8951
  _proto.reset = function reset(hide) {
@@ -12724,6 +12804,7 @@
12724
12804
  domain: 'https://open.ys7.com'
12725
12805
  },
12726
12806
  isEzviz: true,
12807
+ sdkType: 'base',
12727
12808
  /** 移动端竖屏, 全屏情况下不展示扩张,放置在 footer 中 */ mobileExtendOptions: {
12728
12809
  controls: MOBILE_EXTENDS
12729
12810
  }
@@ -14261,7 +14342,7 @@
14261
14342
  zh: zh,
14262
14343
  en: en
14263
14344
  };
14264
- /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.7-beta.3';
14345
+ /** 版本号 @since 0.0.1 */ Theme.THEME_VERSION = '3.1.8-beta.1';
14265
14346
 
14266
14347
  // 不要动这里的代码, 这个出口是为了编译成 umd 规范的文件
14267
14348
 
package/dist/style.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * @ezuikit/player-theme v3.1.7-beta.3
3
- * Copyright (c) 2026-09-24 15:33:23 Ezviz-OpenBiz
2
+ * @ezuikit/player-theme v3.1.8-beta.1
3
+ * Copyright (c) 2026-09-29 20:25:53 Ezviz-OpenBiz
4
4
  * Released under the MIT License.
5
5
  */
6
6
  require("./style.css");
@@ -1499,7 +1499,7 @@ declare class Theme extends EventEmitter {
1499
1499
  readonly volumechange: "volumechange";
1500
1500
  readonly zoomChange: "zoomChange";
1501
1501
  readonly zoomingChange: "zoomingChange";
1502
- readonly zoomTranslateChange: "zoomTranslateChange"; /** resizeObserver 监听销毁 */
1502
+ readonly zoomTranslateChange: "zoomTranslateChange";
1503
1503
  readonly audioInfo: "audioInfo";
1504
1504
  readonly videoInfo: "videoInfo";
1505
1505
  readonly firstFrameDisplay: "firstFrameDisplay";
@@ -1512,10 +1512,10 @@ declare class Theme extends EventEmitter {
1512
1512
  readonly changeTheme: "changeTheme";
1513
1513
  readonly recTypeChange: "recTypeChange";
1514
1514
  readonly definitionChange: "definitionChange";
1515
- readonly speedChange: "speedChange"; /** 倍速 @private */
1516
- readonly recordingChange: "recordingChange";
1517
- readonly talkingChange: "talkingChange";
1518
- readonly talkVolumeChange: "talkVolumeChange";
1515
+ readonly speedChange: "speedChange";
1516
+ readonly recordingChange: "recordingChange"; /** 自定清晰度 @private */
1517
+ readonly talkingChange: "talkingChange"; /** 清晰度列表 */
1518
+ readonly talkVolumeChange: "talkVolumeChange"; /** 回放片段列表 */
1519
1519
  readonly broadcastChange: "broadcastChange";
1520
1520
  readonly aichatChange: "aichatChange";
1521
1521
  readonly liveChange: "liveChange";
@@ -1533,7 +1533,11 @@ declare class Theme extends EventEmitter {
1533
1533
  readonly playbackEnd: "playbackEnd";
1534
1534
  readonly control: {
1535
1535
  readonly play: "Control.play";
1536
- readonly playDestroy: "Control.playDestroy";
1536
+ readonly playDestroy: "Control.playDestroy"; /**
1537
+ * 模板请求(getDetail)的中止控制器。
1538
+ * 重新渲染或销毁时中止在途请求,避免请求返回后在已销毁/已切换的 theme 上继续操作。
1539
+ * @private
1540
+ */
1537
1541
  readonly capturePicture: "Control.capturePicture";
1538
1542
  readonly capturePictureResult: "Control.capturePictureResult";
1539
1543
  readonly capturePictureDestroy: "Control.capturePictureDestroy";
@@ -1596,12 +1600,7 @@ declare class Theme extends EventEmitter {
1596
1600
  readonly unsupportedPlayType: "Control.unsupportedPlayType";
1597
1601
  readonly beforeMountControls: "Control.beforeMountControls";
1598
1602
  readonly mountedControls: "Control.mountedControls";
1599
- readonly beforeUnmountControls: "Control.beforeUnmountControls"; /**
1600
- * 容器的宽(单位 px)
1601
- * ```ts
1602
- * theme.width // number
1603
- * ```
1604
- */
1603
+ readonly beforeUnmountControls: "Control.beforeUnmountControls";
1605
1604
  readonly unmountedControls: "Control.unmountedControls";
1606
1605
  readonly posterDestroy: "Control.posterDestroy";
1607
1606
  readonly loadingDestroy: "Control.loadingDestroy";
@@ -1623,7 +1622,7 @@ declare class Theme extends EventEmitter {
1623
1622
  readonly alarmMessageControlInit: "Control.alarmMessageControlInit";
1624
1623
  readonly zoomControlInit: "Control.zoomControlInit";
1625
1624
  readonly definitionControlInit: "Control.definitionControlInit";
1626
- readonly fullscreenControlInit: "Control.fullscreenControlInit";
1625
+ readonly fullscreenControlInit: "Control.fullscreenControlInit"; /** 多语言对象 https://www.npmjs.com/package/@ezuikit/utils-i18n @since 0.0.1 */
1627
1626
  readonly globalFullscreenControlInit: "Control.globalFullscreenControlInit";
1628
1627
  readonly recControlInit: "Control.recControlInit";
1629
1628
  readonly speedControlInit: "Control.speedControlInit";
@@ -1796,12 +1795,11 @@ declare class Theme extends EventEmitter {
1796
1795
  MAX_SPEED_LIMIT: string;
1797
1796
  MIN_SPEED_LIMIT: string;
1798
1797
  SPEED_SWITCH_ERRROR: string;
1799
- /** 播放器配置项 */
1800
1798
  SPEED_SWITCH_NOT_SUPPORT: string;
1801
1799
  SEEK_CANNOT_CROSS_DAYS: string;
1802
1800
  SEEK_TIMEFORMAT_ERROR: string;
1803
1801
  PAUSE: string;
1804
- PAUSE_FAILED: string;
1802
+ PAUSE_FAILED: string; /** 多语言对象 https://www.npmjs.com/package/@ezuikit/utils-i18n @since 0.0.1 */
1805
1803
  RESUME: string;
1806
1804
  RESUME_FAILED: string;
1807
1805
  CALL_END: string;
@@ -1813,13 +1811,18 @@ declare class Theme extends EventEmitter {
1813
1811
  PLEASE_INPUT_RIGHT_VIDEO_LEVEL: string;
1814
1812
  VIDEO_LEVEL_NOT_SUPPORT: string;
1815
1813
  VIDEO_LEVEL_AUTO: string;
1814
+ /** 暂停控件 @since 0.0.1 @private */
1816
1815
  VIDEO_LEVEL_FLUENT: string;
1817
1816
  VIDEO_LEVEL_STANDARD: string;
1818
1817
  VIDEO_LEVEL_HEIGH: string;
1819
- VIDEO_LEVEL_SUPER: string; /** 封面控件 @since 0.0.1 @private */
1818
+ VIDEO_LEVEL_SUPER: string;
1820
1819
  VIDEO_LEVEL_EXTREME: string;
1821
1820
  VIDEO_LEVEL_3K: string;
1822
1821
  VIDEO_LEVEL_4k: string;
1822
+ /**
1823
+ * @since 0.0.1
1824
+ * @private
1825
+ */
1823
1826
  RESET_THEME: string;
1824
1827
  BTN_PLAY: string;
1825
1828
  BTN_PAUSE: string;
@@ -1833,11 +1836,7 @@ declare class Theme extends EventEmitter {
1833
1836
  BTN_LIVE: string;
1834
1837
  BTN_REC_DROPDOWN: string;
1835
1838
  BTN_ALARM_MESSAGE: string;
1836
- REC_DROPDOWN_CLOUD_REC: string; /**
1837
- * 更多控件(footer more)
1838
- * @since 0.0.1
1839
- * @private
1840
- */
1839
+ REC_DROPDOWN_CLOUD_REC: string;
1841
1840
  REC_DROPDOWN_CLOUD_RECORD: string;
1842
1841
  REC_DROPDOWN_LOCAL_REC: string;
1843
1842
  BTN_ZOOM: string;
@@ -1849,16 +1848,13 @@ declare class Theme extends EventEmitter {
1849
1848
  BTN_EXIR_FULLSCREEN: string;
1850
1849
  BTN_HD: string;
1851
1850
  BTN_SPEED: string;
1852
- BTN_CLOUDREC: string; /**
1853
- * 移动端扩展容器, 扩展的控件渲染在指定容器以外, 仅只用端适用, 为了可以放置大的控件和方便开发接入
1854
- * @private
1855
- */
1851
+ BTN_CLOUDREC: string;
1856
1852
  BTN_CLOUDRECORD: string;
1857
1853
  BTN_REC: string;
1858
1854
  BTN_CALENDAR: string;
1859
1855
  BTN_TIME: string;
1860
1856
  BTN_MORE: string;
1861
- DEVICE_NAME: string; /** @since 0.0.1 @private */
1857
+ DEVICE_NAME: string;
1862
1858
  DEVICE_ID: string;
1863
1859
  CAPTURE_SUCCESS: string;
1864
1860
  CAPTURE_FAILED: string;
@@ -1871,7 +1867,6 @@ declare class Theme extends EventEmitter {
1871
1867
  OPEN_SOUND: string;
1872
1868
  CLOSE_SOUND: string;
1873
1869
  SOUND_OPENED: string;
1874
- /** resizeObserver 监听销毁 */
1875
1870
  ZOOM: string;
1876
1871
  START_ZOOM: string;
1877
1872
  CLOSE_ZOOM: string;
@@ -1880,7 +1875,7 @@ declare class Theme extends EventEmitter {
1880
1875
  ZOOM_ADD_MAX: string;
1881
1876
  ZOOM_SUB_MIN: string;
1882
1877
  ZOOM_LIMIT_MAX: string;
1883
- ZOOM_LIMIT_MIN: string; /** 当前容器的全屏状态 true: 全屏, false: 非全屏 */
1878
+ ZOOM_LIMIT_MIN: string;
1884
1879
  ZOOM_NOT_ENABLED: string;
1885
1880
  '3D_ZOOM': string;
1886
1881
  '3D_ZOOM_DISABLE': string;
@@ -1898,10 +1893,11 @@ declare class Theme extends EventEmitter {
1898
1893
  WEB_FULLSCREEN: string;
1899
1894
  WEB_FULLSCREEN_EXIT: string;
1900
1895
  DESTROY: string;
1896
+ /** 放大中 true: 可缩放状态,false: 禁止缩放状态(不能缩放) @private */
1901
1897
  GET_CAPACITY: string;
1902
- GET_PTZ_STATUS: string; /** 录制中 @private */
1898
+ GET_PTZ_STATUS: string;
1903
1899
  GET_PTZ_STATUS_FAILED: string;
1904
- MOBILE_HIDE_PTZ: string; /** 倍速 @private */
1900
+ MOBILE_HIDE_PTZ: string;
1905
1901
  OPTION_PTZ_FAILED: string;
1906
1902
  MOBILE_PTZ_TIPS: string;
1907
1903
  PTZ_FAST: string;
@@ -1922,6 +1918,9 @@ declare class Theme extends EventEmitter {
1922
1918
  SET_FEC_PARAMS: string;
1923
1919
  GET_FEC_PARAMS: string;
1924
1920
  SET_FEC_PARAMS_FAILED: string;
1921
+ /**
1922
+ * 录像回放的月份列表 @private
1923
+ */
1925
1924
  GET_FEC_PARAMS_FAILED: string;
1926
1925
  GET_FEC_PARAMS_SUPPORT_VERSION: string;
1927
1926
  SET_WATERMARK: string;
@@ -1930,11 +1929,7 @@ declare class Theme extends EventEmitter {
1930
1929
  ok: string;
1931
1930
  close: string;
1932
1931
  BTN_REC_LIST_TITLE: string;
1933
- UNKOWN_ISSUE: string; /**
1934
- * 首帧同步 Live/RecDropdown 激活态的监听器引用。
1935
- * 每次 `_renderTheme` 重新绑定前需先移除旧引用,避免 changeTheme 累积监听。
1936
- * @private
1937
- */
1932
+ UNKOWN_ISSUE: string;
1938
1933
  };
1939
1934
  en: {
1940
1935
  391001: string;
@@ -1983,7 +1978,7 @@ declare class Theme extends EventEmitter {
1983
1978
  395562: string;
1984
1979
  395563: string;
1985
1980
  395564: string;
1986
- 395566: string; /** 所有私有流的模板 @since 0.0.1 */
1981
+ 395566: string;
1987
1982
  395567: string;
1988
1983
  395568: string;
1989
1984
  395569: string;
@@ -2018,14 +2013,17 @@ declare class Theme extends EventEmitter {
2018
2013
  396510: string;
2019
2014
  396511: string;
2020
2015
  396512: string;
2021
- /** 静音 */
2022
2016
  396513: string;
2023
2017
  396514: string;
2024
2018
  396515: string;
2025
2019
  396516: string;
2026
2020
  396517: string;
2027
- 396518: string;
2028
- 396519: string;
2021
+ 396518: string; /** 清晰度列表 */
2022
+ 396519: string; /**
2023
+ * 播放区间(片段分享),null 表示不约束。
2024
+ * 由 SDK 层在初始化时通过 props 下发,主题层据此决定日历/回放类型按钮
2025
+ * 是否渲染、片段进度条是否渲染。区间没有运行时变更入口。
2026
+ */
2029
2027
  396520: string;
2030
2028
  396700: string;
2031
2029
  396701: string;
@@ -2108,9 +2106,6 @@ declare class Theme extends EventEmitter {
2108
2106
  VIDEO_LEVEL_NOT_SUPPORT: string;
2109
2107
  VIDEO_LEVEL_AUTO: string;
2110
2108
  VIDEO_LEVEL_FLUENT: string;
2111
- /**
2112
- * url 信息 播放地址信息
2113
- */
2114
2109
  VIDEO_LEVEL_STANDARD: string;
2115
2110
  VIDEO_LEVEL_HEIGH: string;
2116
2111
  VIDEO_LEVEL_SUPER: string;
@@ -2145,6 +2140,13 @@ declare class Theme extends EventEmitter {
2145
2140
  BTN_HD: string;
2146
2141
  BTN_SPEED: string;
2147
2142
  BTN_CLOUDREC: string;
2143
+ /**
2144
+ * 视频信息
2145
+ * @version 3.1.2
2146
+ * ```ts
2147
+ * theme.videoInfo // ThemeVideoInfo
2148
+ * ```
2149
+ */
2148
2150
  BTN_CLOUDRECORD: string;
2149
2151
  BTN_REC: string;
2150
2152
  BTN_CALENDAR: string;
@@ -2158,7 +2160,12 @@ declare class Theme extends EventEmitter {
2158
2160
  START_RECORD_FAILED: string;
2159
2161
  STOP_RECORD_SUCCESS: string;
2160
2162
  STOP_RECORD_FAILED: string;
2161
- RECORD_TIPS: string;
2163
+ RECORD_TIPS: string; /**
2164
+ * 当前播放状态
2165
+ * ```ts
2166
+ * theme.playing // boolean
2167
+ * ```
2168
+ */
2162
2169
  RECORDS: string;
2163
2170
  OPEN_SOUND: string;
2164
2171
  CLOSE_SOUND: string;
@@ -2183,13 +2190,7 @@ declare class Theme extends EventEmitter {
2183
2190
  '3D_ZOOM_NOT_ACTIVED': string;
2184
2191
  '3D_ZOOM_CLOSED': string;
2185
2192
  CHANGE_ZOOM_TYPE: string;
2186
- FULLSCREEN: string; /**
2187
- * 加载状态
2188
- * ```ts
2189
- * // 事件监听
2190
- * theme.on(Theme.EVENTS.loading, (loading: boolean) => {})
2191
- * ```
2192
- */
2193
+ FULLSCREEN: string;
2193
2194
  FULLSCREEN_EXIT: string;
2194
2195
  GET_WEB_FULLSCREEN_STATUS: string;
2195
2196
  WEB_FULLSCREEN: string;
@@ -2211,7 +2212,10 @@ declare class Theme extends EventEmitter {
2211
2212
  NOT_SUPPORT_FOCUS: string;
2212
2213
  MIRROR: string;
2213
2214
  MIRROR_TYPE_ERROR: string;
2214
- CHANGE_FEC_TYPE: string;
2215
+ CHANGE_FEC_TYPE: string; /**
2216
+ * 静音
2217
+ *
2218
+ */
2215
2219
  DEVICE_NOT_SUPPORT: string;
2216
2220
  TYPE_NOT_SUPPORT: string;
2217
2221
  FEC_SUPPORT_VERSION: string;
@@ -2955,6 +2959,8 @@ interface ThemeOptions {
2955
2959
  disabledTimeLine?: boolean;
2956
2960
  /** 是萤石的播放地址,默认 true, 仅对标准流很有效 */
2957
2961
  isEzviz?: boolean;
2962
+ /** 基线 和 定制 */
2963
+ sdkType: 'base' | 'custom';
2958
2964
  [kye: string]: any;
2959
2965
  }
2960
2966
  interface ThemeVideoInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezuikit/player-theme",
3
- "version": "3.1.7-beta.3",
3
+ "version": "3.1.8-beta.1",
4
4
  "description": "player theme",
5
5
  "title": "theme",
6
6
  "main": "dist/index.cjs",