Skip to content

Commit

Permalink
Enhancement: + state getter
Browse files Browse the repository at this point in the history
  • Loading branch information
hovsep committed May 29, 2017
1 parent 74e4f7f commit 7448e29
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dev/RecordRTC.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,17 @@ function RecordRTC(mediaStream, config) {
* })();
* recorder.startRecording();
*/
state: 'inactive'
state: 'inactive',

/**
*
* State getter
*
* @returns {*}
*/
getState: function() {
return self.state;
}
};

if (!this) {
Expand Down

0 comments on commit 7448e29

Please sign in to comment.