fix: added muted flag and updated helper text (#9259)

This commit is contained in:
Bhavin K 2021-11-23 15:10:43 +05:30 committed by GitHub
parent 1bd549029b
commit ffefdcccd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,7 @@ export default function VideoComponent(props: VideoComponentProps) {
<ReactPlayer
controls={controls || true}
height="100%"
muted={autoplay}
onEnded={onEnded}
onError={onError}
onPause={onPause}

View File

@ -46,7 +46,8 @@ class VideoWidget extends BaseWidget<VideoWidgetProps, WidgetState> {
{
propertyName: "autoPlay",
label: "Auto Play",
helpText: "Video will be automatically played",
helpText:
"Video will be automatically played, by enabling this feature, video will be muted by default.",
controlType: "SWITCH",
isJSConvertible: true,
isBindProperty: true,