![JC Brand](/assets/img/avatar_default.png)
- Add ability to play/pause by using `converse-rich-text` - Make `converse-rich-text` component configurable whether the media URLs for GIF/audio/video are shown - Add fallback options for GIFs that have errors
5 lines
197 B
JavaScript
5 lines
197 B
JavaScript
import { html } from 'lit';
|
|
|
|
export default (url, hide_url) =>
|
|
html`<audio controls src="${url}"></audio>${ hide_url ? '' : html`<a target="_blank" rel="noopener" href="${url}">${url}</a>` }`;
|