From e07cc0f5aaa5816aae855045063f8f5b82a0b0ed Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 2 Mar 2016 19:19:47 -0800 Subject: [PATCH] Remove unused rtmpEventHandler --- player/rtmp.coffee | 4 ---- www/js/player.js | 6 ------ 2 files changed, 10 deletions(-) diff --git a/player/rtmp.coffee b/player/rtmp.coffee index e36232ce..3f2b66ea 100644 --- a/player/rtmp.coffee +++ b/player/rtmp.coffee @@ -1,7 +1,3 @@ -window.rtmpEventHandler = (id, event, data) -> - if event == 'volumechange' - PLAYER.volume = if data.muted then 0 else data.volume - window.RTMPPlayer = class RTMPPlayer extends VideoJSPlayer constructor: (data) -> if not (this instanceof RTMPPlayer) diff --git a/www/js/player.js b/www/js/player.js index c2ade742..8704b4e8 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -994,12 +994,6 @@ })(EmbedPlayer); - window.rtmpEventHandler = function(id, event, data) { - if (event === 'volumechange') { - return PLAYER.volume = data.muted ? 0 : data.volume; - } - }; - window.RTMPPlayer = RTMPPlayer = (function(superClass) { extend(RTMPPlayer, superClass);