Add onPreChangeMedia and improve refreshing

This commit is contained in:
Calvin Montgomery 2014-07-09 21:46:45 -07:00
parent 3f959087af
commit f36d2b0258
5 changed files with 61 additions and 28 deletions

View file

@ -54,7 +54,14 @@ ChannelModule.prototype = {
/**
* Called when a chatMsg event is received
*/
onUserChat: function (user, data, cb) {
onUserPreChat: function (user, data, cb) {
cb(null, ChannelModule.PASSTHROUGH);
},
/**
* Called before a new video begins playing
*/
onPreMediaChange: function (data, cb) {
cb(null, ChannelModule.PASSTHROUGH);
},