Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(weapp): video attribute replenishment #14576

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/taro-components/types/Video.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ interface VideoProps extends StandardProps {
nativeProps?: Record<string, unknown>
/** 是否展示底部进度条
* @supported weapp
* @default true
*/
showBottomProgress?: string
showBottomProgress?: boolean
/** 是否在小窗模式下显示播放进度
* @supported weapp
*/
Expand All @@ -205,7 +206,7 @@ interface VideoProps extends StandardProps {
/** 是否是 DRM 视频源
* @supported weapp
*/
isDrm?: string
isDrm?: boolean
/** DRM 设备身份认证 url,仅 is-drm 为 true 时生效 (Android)
* @supported weapp
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -285,12 +286,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -288,12 +289,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -285,12 +286,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -285,12 +286,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down Expand Up @@ -1986,6 +1997,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -1995,12 +2007,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down Expand Up @@ -3650,6 +3672,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -3659,12 +3682,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -287,12 +288,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down Expand Up @@ -1846,6 +1857,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -1855,12 +1867,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -248,12 +249,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ require("./taro");
"auto-pause-if-open-native": _true,
"vslide-gesture": _false,
"vslide-gesture-in-fullscreen": _true,
"show-bottom-progress": _true,
"ad-unit-id": _empty,
"poster-for-crawler": _empty,
"show-casting-button": _false,
Expand All @@ -285,12 +286,22 @@ require("./taro");
"show-snapshot-button": _false,
"show-background-playback-button": _false,
"background-poster": _empty,
"referrer-policy": "'no-referrer'",
"is-drm": _false,
"is-live": _false,
"provision-url": _empty,
"certificate-url": _empty,
"license-url": _empty,
"preferred-peak-bit-rate": _empty,
bindProgress: _empty,
bindLoadedMetadata: _empty,
bindControlsToggle: _empty,
bindEnterPictureInPicture: _empty,
bindLeavePictureInPicture: _empty,
bindSeekComplete: _empty,
bindCastingUserSelect: _empty,
bindCastingStateChange: _empty,
bindCastingInterrupt: _empty,
bindAdLoad: _empty,
bindAdError: _empty,
bindAdClose: _empty,
Expand Down
Loading