⚡️ Option to disable controls and autoplay on videos (#1631)
Extends the implementation of #1503 as per the suggestions provided in the code review to resolve #1485 https://github.com/baptisteArno/typebot.io/assets/69730155/87481d64-57f5-4f7e-8a28-4a464f12cc31 --------- Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
This commit is contained in:
@ -17,6 +17,8 @@ export const defaultVideoBubbleContent = {
|
||||
height: 400,
|
||||
aspectRatio: '16/9',
|
||||
maxWidth: '100%',
|
||||
areControlsDisplayed: true,
|
||||
isAutoplayEnabled: true,
|
||||
} as const
|
||||
|
||||
export const horizontalVideoSuggestionSize = {
|
||||
|
@ -12,6 +12,8 @@ export const videoBubbleContentSchema = z.object({
|
||||
aspectRatio: z.string().optional(),
|
||||
maxWidth: z.string().optional(),
|
||||
queryParamsStr: z.string().optional(),
|
||||
areControlsDisplayed: z.boolean().optional(),
|
||||
isAutoplayEnabled: z.boolean().optional(),
|
||||
})
|
||||
|
||||
export const videoBubbleBlockSchema = blockBaseSchema.merge(
|
||||
|
Reference in New Issue
Block a user