From 7094582e72c6ae8fc6aa0382de67f05a75c65989 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Sat, 18 Aug 2018 16:26:50 +0000 Subject: [PATCH] add types for callback in constructor (#90) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 48785a2c..73d0f075 100644 --- a/README.md +++ b/README.md @@ -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