Showing 162 of 10,521 total issues
Function containerSizingStyles:outstream,aspect_ratio,height,width,is_floating,hideplayer,floatingoptions.floatingonly,fullscreened,showsidebargallery,gallerysidebar,layout
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"containerSizingStyles:outstream,aspect_ratio,height,width,is_floating,hideplayer,floatingoptions.floatingonly,fullscreened,showsidebargallery,gallerysidebar,layout": function(
outstream,
aspectRatio,
height,
width,
Function onAdsManagerLoaded
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onAdsManagerLoaded: function(adsManagerLoadedEvent) {
const adsRenderingSettings = new google.ima.AdsRenderingSettings();
if (this._options && this._options.adsRenderingSettings) {
for (let setting in this._options.adsRenderingSettings) {
if (setting === "uiElements") {
Function __handleMouseMoveEvent
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__handleMouseMoveEvent: function(ev) {
var setTranslate = function(el, posX, posY) {
el.style.transform = "translate3d(" + posX + "px, " + posY + "px, 0)";
};
Function _open_image
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_open_image: function(sourceFile) {
this.__imageViewer.counter = 0;
// Main container
this.__imageViewer.imageViewer = document.createElement('div');
Function create
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create: function() {
var custom_accept_string = "";
if (this.get("allowedextensions") && this.get("allowedextensions").length > 0) {
var browser_support = Info.isEdge() || Info.isChrome() || Info.isOpera() || (Info.isFirefox() && Info.firefoxVersion() >= 42) || (Info.isInternetExplorer() && Info.internetExplorerVersion() >= 10);
if (browser_support)
Function create
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create: function() {
var custom_accept_string = "";
if (this.get("allowedextensions") && this.get("allowedextensions").length > 0) {
var browser_support = Info.isEdge() || Info.isChrome() || Info.isOpera() || (Info.isFirefox() && Info.firefoxVersion() >= 42) || (Info.isInternetExplorer() && Info.internetExplorerVersion() >= 10);
if (browser_support)
Function create
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create: function() {
if (this.get("visualeffectvisible") && (!this.get("height") || this.get("height") < this.get("visualeffectminheight")))
this.set("height", this.get("visualeffectminheight"));
// Will set volume initial state
this.set("initialoptions", Objs.tree_merge(this.get("initialoptions"), {
Function generateVTTFromObject
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateVTTFromObject: function(content, presetTimePeriod) {
presetTimePeriod = presetTimePeriod || 2;
const timeKey = 'times';
const wordsKey = 'words';
Function create
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create: function() {
if (this.get("theme")) this.set("theme", this.get("theme").toLowerCase());
if (this.get("theme") in Assets.recorderthemes) {
Objs.iter(Assets.recorderthemes[this.get("theme")], function(value, key) {
if (!this.isArgumentAttr(key))
Function _recursivelyDrawImage
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_recursivelyDrawImage: function(canvas, thumbnails, ctx, w, h, image, index, promise, column, row) {
column = column || 0;
row = row || 0;
index = index || 0;
ctx.drawImage(image, column * w, row * h, w, h);
Function toggle_fullscreen
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggle_fullscreen: function() {
this.setPlayerEngagement();
if (this.get("preventinteractionstatus")) return;
if (this._delegatedPlayer) {
this._delegatedPlayer.execute("toggle_fullscreen");
Function setNextVideoIndex
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setNextVideoIndex: function(triggerNext) {
triggerNext = triggerNext || false;
let nextVideo, videoFromTop, indexFromTop, nextIndex = null;
const currentVideo = this.__getCurrentVideo();
const currentIndex = currentVideo?.get("index");
Function _started
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
this.dyn.set("message", "");
this.dyn.set("loaderlabel", "");
var startedRecording = false;
this.dyn._accessing_camera = true;
Function _started
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
this.dyn.set("message", "");
this.dyn.set("loaderlabel", "");
var startedRecording = false;
this.dyn._accessing_microphone = true;
Function _started
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
this.dyn.set("message", "");
this.dyn.set("loaderlabel", "");
var startedRecording = false;
this.dyn._accessing_camera = true;
Function __appendThumbnailTrackTags
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__appendThumbnailTrackTags: function(subtitle, index, trackTag, domEvent) {
var _self = this,
_track, _image, _splitText, _dimensions, thumbLink;
trackTag.setAttribute('data-selector', 'thumb-track-tag');
domEvent.on(trackTag, "load", function(ev) {
Function _findNextTabStop
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_findNextTabStop: function(parentElement, ev, callback, direction) {
var _currentIndex, _direction, _tabIndexes, _tabIndexesArray, _maxIndex, _minIndex, _looked, _tabIndex, _delta, _element, _audioPlayersCount;
_maxIndex = _minIndex = 0;
_direction = direction || 1;
_element = ev.target;
Function _validateParameters
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_validateParameters: function() {
var fitStrategies = ["crop", "pad", "original"];
var stickyPositions = ["top-left", "top-right", "bottom-right", "bottom-left"];
var mobilePositions = ["top", "bottom"];
if (!fitStrategies.includes(this.get("videofitstrategy"))) {
Function _findNextTabStop
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_findNextTabStop: function(parentElement, ev, callback, direction) {
var _currentIndex, _direction, _tabIndexes, _tabIndexesArray, _maxIndex, _minIndex, _looked, _tabIndex, _delta, _element, _videoPlayersCount;
_maxIndex = _minIndex = 0;
_direction = direction || 1;
_element = ev.target;
Function applyPresets
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
applyPresets: function() {
const presetKey = this.get("presetkey");
// No need to apply presets if presetkey is not defined
if (!presetKey) return;
const multiPresets = this.get("availablepresetoptions");