diff --git a/plugin.xml b/plugin.xml index 4434e55..7ba6d9a 100644 --- a/plugin.xml +++ b/plugin.xml @@ -247,17 +247,23 @@ - - - + + + + + - + + + + + @@ -267,8 +273,7 @@ - - + diff --git a/www/trtc.js b/www/trtc.js index fd27ab1..809c9ed 100644 --- a/www/trtc.js +++ b/www/trtc.js @@ -6,8 +6,12 @@ Trtc.prototype.joinChannel = function(arg, success, error) { exec(success, error, 'Trtc', 'joinChannel', [arg]); }; -Trtc.prototype.showCreatePage = function(success, error) { - exec(success, error, 'Trtc', 'showCreatePage', []); +Trtc.prototype.userInfoChange = function(userInfo,success, error) { + exec(success, error, 'Trtc', 'userInfoChange', [userInfo]); +} + +Trtc.prototype.fireEvent = function(event,extra) { + cordova.fireDocumentEvent("trtc."+event, extra); } module.exports = new Trtc();