You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/docs/index.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,20 @@ The **AudioPlayer** component accepts the following props:
52
52
|`width`| string, optional | The width of the audio player. For example, `"100%"`, `"300px"`, etc. |
53
53
|`style`| object, optional | An object containing additional inline styles for the component. |
54
54
55
+
56
+
## Advanced Usage
57
+
58
+
Starting with version `v1.0.4`, you can access certain actions of the `AudioPlayer` component programmatically using a `ref` with the following interface:
59
+
60
+
- `play`: Function to start audio playback.
61
+
- `pause`: Function to pause audio playback.
62
+
- `stop`: Function to stop the audio playback.
63
+
- `focus`: Function to focus on the audio player component.
0 commit comments