Skip to content

Commit

Permalink
add types for callback in constructor (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems authored and janpio committed Aug 18, 2018
1 parent 5f18902 commit 7094582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ var media = new Media(src, mediaSuccess, [mediaError], [mediaStatus]);

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

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

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

__NOTE__: `cdvfile` path is supported as `src` parameter:
```javascript
Expand Down

0 comments on commit 7094582

Please sign in to comment.