               mediaCommentId: id
               googleAnalyticsTitle: id
 
+            spaceNeededForControls = 35
             $mediaTag = createMediaTag({sourcesAndTracks, mediaPlayerOptions, mediaType, height: height-spaceNeededForControls, width})
             $mediaTag.appendTo($dialog.html(''))
 


    show: (id, mediaType) ->
      $this = $(this)
      if dialog = $this.data('media_comment_dialog')
        dialog.dialog('open')
      else
        # Create a dialog box
        spaceNeededForControls = 35
        mediaType = mediaType || 'video'
        height = if mediaType is'video' then 426 else 180
        width = if mediaType is 'video' then VIDEO_WIDTH else 400
        $dialog = $('<div style="overflow: hidden; padding: 0;" />')
        $dialog.css('padding-top', '120px') if mediaType is 'audio'
        $dialog.dialog
          title: I18n.t('titles.play_comment', "Play Media Comment")
          width: width


  # enable the playback speed selector
  mejs.MepDefaults.features.splice(positionAfterSubtitleSelector, 0, 'speed')

  getSourcesAndTracks = (id) ->
    dfd = new $.Deferred
