Showing 162 of 10,521 total issues
Function _started
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
this.dyn.set("settingsvisible", true);
this.dyn.set("recordvisible", true);
this.dyn.set("rerecordvisible", false);
this.dyn.set("controlbarlabel", "");
Function _started
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
if (this.dyn.get("playlist")) {
var pl0, initialPlaylist;
var list = this.dyn.get("playlist");
var head = list.shift();
Function toggle_player
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
toggle_player: function(fromOverlay) {
if (!this._debouncedToggle) this._debouncedToggle = Functions.debounce(function(fo) {
const floating = this.get("sticky") || this.get("floating");
if (floating && this.floatHandler && this.floatHandler.isDragging()) {
this.floatHandler.stopDragging();
Function __events
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__events: function() {
return [
google.ima.AdErrorEvent.Type.AD_ERROR,
google.ima.AdEvent.Type.AD_CAN_PLAY,
google.ima.AdEvent.Type.IMPRESSION,
Function _recursivelyDrawImage
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_recursivelyDrawImage: function(canvas, thumbnails, ctx, w, h, image, index, promise, column, row) {
Function addTrimmingEventListeners
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addTrimmingEventListeners: function() {
var events = this.get("events");
var trimStartMarker = this.activeElement().querySelector('[data-selector="trim-start-marker"]');
var trimEndMarker = this.activeElement().querySelector('[data-selector="trim-end-marker"]');
Function showplaylist:playlist
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"showplaylist:playlist": function(playlist) {
if (!playlist) return false;
const showSidebar = playlist.length > 0;
if (!showSidebar) return false;
const videos = this.get("videos");
Function _started
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
this.dyn.set("loadlabel", "");
this.dyn.trigger("verifying");
this.dyn.set("message", this.dyn.string("verifying") + "...");
this.dyn.set("playertopmessage", this.dyn.get("message"));
Function _renderMultiCompanionAds
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_renderMultiCompanionAds: function() {
this.set("multicompanionads", []);
const companionAds = this.get('companionads');
const locations = this.get("companionad.locations");
Objs.iter(locations, function(location) {
Function _drawIntoCanvas
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drawIntoCanvas: function(thumbnails) {
var promise = Promise.create();
var w = thumbnails.width;
var h = thumbnails.height;
var imagesCount = thumbnails.images.length;
Function click_action
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
click_action: function(action) {
if (action.get("select"))
return;
if (action.get("type") === "screen" || action.get("type") === "multistream") {
this.trigger("record-screen", action.get("type") === "multistream");
Function _started
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
this.dyn.set("settingsvisible", false);
this.dyn.set("recordvisible", false);
this.dyn.set("rerecordvisible", false);
this.dyn.set("stopvisible", false);
Function _debouncedToggle
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
if (!this._debouncedToggle) this._debouncedToggle = Functions.debounce(function(fo) {
const floating = this.get("sticky") || this.get("floating");
if (floating && this.floatHandler && this.floatHandler.isDragging()) {
this.floatHandler.stopDragging();
return;
Function __loadVideo
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__loadVideo: function() {
this.listenOn(this.dyn, "error:video", function() {
this.next("ErrorVideo");
}, this);
this.listenOn(this.dyn, "playing", function() {
Function initAdSources
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initAdSources: function() {
this.set("preloadadsmanager", false);
this.set("delayadsmanagerload", false);
if (
Array.isArray(this.get("adtagurlfallbacks")) &&
Function _started
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
this.dyn.set("settingsvisible", false);
this.dyn.set("recordvisible", false);
this.dyn.set("rerecordvisible", false);
this.dyn.set("stopvisible", false);
Function _started
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_started: function() {
this.dyn.set("loadlabel", "");
this.dyn.trigger("verifying");
this.dyn.set("message", this.dyn.string("verifying") + "...");
this.dyn.set("playertopmessage", this.dyn.get("message"));
Function seek
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
seek: function(position) {
this.setPlayerEngagement();
if (this.get("preventinteractionstatus")) return;
if (this._delegatedPlayer) {
this._delegatedPlayer.execute("seek", position);
Function _timerFire
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_timerFire: function() {
if (this.destroyed())
return;
this.set("currentorientation", window.innerHeight > window.innerWidth ? "portrait" : "landscape");
try {
Function stop
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function() {
var minlimit = this.dyn.get("timeminlimit");
if (minlimit) {
var delta = (Time.now() - (this._startTime + this.dyn.__pauseDelta)) / 1000;
if (delta < minlimit) {