<commit_before>// Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

var UIObject = require('../../base/ui_object')
var Styler = require('../../base/styler')
var JST = require('../../base/jst')
var Mediator = require('../../components/mediator')
var _ = require('underscore')
var $ = require('jquery')
var Browser = require('../../components/browser')

var objectIE = '<object type="application/x-shockwave-flash" id="<%= cid %>" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" data-flash-vod=""><param name="movie" value="<%= swfPath %>"> <param name="quality" value="autohigh"> <param name="swliveconnect" value="true"> <param name="allowScriptAccess" value="always"> <param name="bgcolor" value="#001122"> <param name="allowFullScreen" value="false"> <param name="wmode" value="gpu"> <param name="tabindex" value="1"> <param name=FlashVars value="playbackId=<%= playbackId %>" /> </object>'

class Flash extends UIObject {
  get name() { return 'flash' }
  get tagName() { return 'object' }
  get template() { return JST.flash }

  constructor(options) {
    super(options)
    this.src = options.src
    this.isRTMP = (this.src.indexOf("rtmp") > -1)
    this.swfPath = options.swfPath || "http://cdn.clappr.io/latest/assets/Player.swf"
    this.autoPlay = options.autoPlay
    this.settings = {default: ['seekbar']}
    if (this.isRTMP) {
      this.settings.left = ["playstop", "volume"]
      this.settings.right = ["fullscreen"]
    } else {
      this.settings.left = ["playpause", "position", "duration"]
      this.settings.right = ["volume", "fullscreen"]
      this.settings.seekEnabled = true
    }
    this.isReady = false<commit_msg>flash: fix mediacontrol fullscreen position<commit_after>// Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

var UIObject = require('../../base/ui_object')
var Styler = require('../../base/styler')
var JST = require('../../base/jst')
var Mediator = require('../../components/mediator')
var _ = require('underscore')
var $ = require('jquery')
var Browser = require('../../components/browser')

var objectIE = '<object type="application/x-shockwave-flash" id="<%= cid %>" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" data-flash-vod=""><param name="movie" value="<%= swfPath %>"> <param name="quality" value="autohigh"> <param name="swliveconnect" value="true"> <param name="allowScriptAccess" value="always"> <param name="bgcolor" value="#001122"> <param name="allowFullScreen" value="false"> <param name="wmode" value="gpu"> <param name="tabindex" value="1"> <param name=FlashVars value="playbackId=<%= playbackId %>" /> </object>'

class Flash extends UIObject {
  get name() { return 'flash' }
  get tagName() { return 'object' }
  get template() { return JST.flash }

  constructor(options) {
    super(options)
    this.src = options.src
    this.isRTMP = (this.src.indexOf("rtmp") > -1)
    this.swfPath = options.swfPath || "http://cdn.clappr.io/latest/assets/Player.swf"
    this.autoPlay = options.autoPlay
    this.settings = {default: ['seekbar']}
    if (this.isRTMP) {
      this.settings.left = ["playstop", "volume"]
      this.settings.right = ["fullscreen"]
    } else {
      this.settings.left = ["playpause", "position", "duration"]
      this.settings.right = ["fullscreen", "volume"]
      this.settings.seekEnabled = true
    }
    this.isReady = false
{'fraction_non_alphanumeric': 0.18021300448430494, 'fraction_numerical': 0.018497757847533634, 'mean_word_length': 4.135251798561151, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4865328', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1120, 'n_words': 271}