Skip to content
Merged
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
49 changes: 49 additions & 0 deletions docs/contributing/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,8 @@ If you need to use mouse actions to be specific, use:

## Videos

### YouTube

To embed a YouTube video on a doc:

1. Copy and paste the following code into your page (including the `import Iframe` line).
Expand Down Expand Up @@ -1596,3 +1598,50 @@ import Iframe from 'react-iframe';

</TabItem>
</Tabs>

### Other video types

You can use similar coding to embed videos from other vendors than YouTube. Following is example coding to embed videos from Wistia.

<Tabs
className="unique-tabs"
defaultValue="Markdown"
values={[
{label: 'Markdown', value: 'Markdown'},
{label: 'Result', value: 'Result'},
]}>

<TabItem value="Markdown">

```html
<Iframe url="https://fast.wistia.net/embed/iframe/yebz0v90tx?web_component=true&seo=true&videoFoam=false"
width="854px"
height="480px"
id="wistiaVideo"
className="video-container"
display="initial"
position="relative"
allow="autoplay; fullscreen"
allowfullscreen
/>
```

</TabItem>
<TabItem value="Result">

<Iframe url="https://fast.wistia.net/embed/iframe/yebz0v90tx?web_component=true&seo=true&videoFoam=false"
width="854px"
height="480px"
id="wistiaVideo"
className="video-container"
display="initial"
position="relative"
allow="autoplay; fullscreen"
allowfullscreen
/>
</TabItem>
</Tabs>

:::note
Typically you must include `import Iframe from 'react-iframe';` with the markdown. It is not included in the example above because it was already called in the previous markdown for YouTube.
:::
Loading