Skip to content

Commit

Permalink
Merge pull request #109 from mheers/master
Browse files Browse the repository at this point in the history
can set audio-sink-id, can get the used audio element and emits events playing, paused and ended
  • Loading branch information
staskobzar authored Jun 20, 2022
2 parents 7a9b4ae + 504f56a commit b8199c0
Show file tree
Hide file tree
Showing 8 changed files with 3,572 additions and 50 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- [Install and setup](#install-and-setup)
- [API](#api)
* [Common props](#common-props)
* [Common events](#common-events)
* [AvLine props](#avline-props)
* [AvBars props](#avbars-props)
* [AvCircle props](#avcircle-props)
Expand Down Expand Up @@ -161,6 +162,14 @@ There are props that are common for all components and special props for each co
wrapped in "div".
</td>
</tr>
<tr>
<td>audio-sink-device-id</td>
<td><code>String</code></td>
<td><code>null</code></td>
<td>
Id of the audio output device to be used as sink. When provided sets audio output device.
</td>
</tr>
<tr>
<td>ref-link</td>
<td><code>String</code></td>
Expand Down Expand Up @@ -227,6 +236,37 @@ There are props that are common for all components and special props for each co
</tbody>
</table>

### Common events

<table>
<thead>
<tr>
<th width="150">Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>playing</td>
<td>
Emitted when audio starts playing.
</td>
</tr>
<tr>
<td>paused</td>
<td>
Emitted when audio is paused.
</td>
</tr>
<tr>
<td>ended</td>
<td>
Emitted when audio is ended.
</td>
</tr>
</tbody>
</table>

### AvLine props

<table>
Expand Down
Loading

0 comments on commit b8199c0

Please sign in to comment.