Skip to content

Commit 7094582

Browse files
dannywillemsjanpio
authored andcommitted
add types for callback in constructor (#90)
1 parent 5f18902 commit 7094582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ var media = new Media(src, mediaSuccess, [mediaError], [mediaStatus]);
7474

7575
- __mediaSuccess__: (Optional) The callback that executes after a `Media` object has completed the current play, record, or stop action. _(Function)_
7676

77-
- __mediaError__: (Optional) The callback that executes if an error occurs. _(Function)_
77+
- __mediaError__: (Optional) The callback that executes if an error occurs. It takes an integer error code. _(Function)_
7878

79-
- __mediaStatus__: (Optional) The callback that executes to indicate status changes. _(Function)_
79+
- __mediaStatus__: (Optional) The callback that executes to indicate status changes. It takes a integer status code. _(Function)_
8080

8181
__NOTE__: `cdvfile` path is supported as `src` parameter:
8282
```javascript

0 commit comments

Comments
 (0)