 getNick = require 'app/util/nick'
 VideoControlView = require './controlview'
 isMyChannel = require 'app/util/isMyChannel'
+NoiseView = require 'app/commonviews/noiseview'
 
 module.exports = class ChatVideoView extends kd.View
 


    @createContainer()
    @createOfflineUserContainer()
    @createControls()



  new VideoControlView { cssClass, active, activeTooltipText, deactiveTooltipText }


createAbsoluteContainer = (cssClass) -> k 'div', "ChatVideo-absoluteContainer #{cssClass}"


###*
 * Create a KDView with given tag, css class, and subviews.
 *
 * @param {string} tagName
 * @param {string} cssClass
 * @param {Array.<(KDView|string)>} subviews
###
k = (tagName, cssClass, subviews = []) ->

  view = new kd.CustomHTMLView { tagName, cssClass }

  for subview in subviews
    if 'string' is typeof subview
    then view.setPartial subview
    else view.addSubView subview

  return view


