2
0

Add audio bubble block

Closes #167
This commit is contained in:
Baptiste Arnaud
2022-11-17 10:33:17 +01:00
parent 473d315e0f
commit 7db0e01aca
29 changed files with 306 additions and 26 deletions

View File

@ -0,0 +1,21 @@
import { FlowToBot } from '../../../../src/js/FlowToBot'
# Audio
The Audio bubble block allows you to play a recorded audio to your user. You can upload an audio file or directly paste a URL.
<FlowToBot
flow={
<img
src="/img/blocks/bubbles/audio/editor.png"
width="100%"
style={{ maxWidth: '400px' }}
alt="Audio bubble"
/>
}
bot={
<video controls width="100%" style={{ maxWidth: '400px' }}>
<source src="/img/blocks/bubbles/audio/bot.mp4" type="video/mp4" />
</video>
}
/>

View File

@ -1,7 +1,3 @@
---
sidebar_position: 4
---
import { FlowToBot } from '../../../../src/js/FlowToBot'
# Embed

View File

@ -1,7 +1,3 @@
---
sidebar_position: 3
---
import { FlowToBot } from '../../../../src/js/FlowToBot'
# Video