betajs/betajs-media-components

View on GitHub

Showing 162 of 10,521 total issues

Function _started has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _started: function() {
            this.dyn.set("settingsvisible", true);
            this.dyn.set("recordvisible", true);
            this.dyn.set("rerecordvisible", false);
            this.dyn.set("controlbarlabel", "");
Severity: Minor
Found in src/dynamics/image_capture/capture/states.js - About 1 hr to fix

    Function _started has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            _started: function() {
                if (this.dyn.get("playlist")) {
                    var pl0, initialPlaylist;
                    var list = this.dyn.get("playlist");
                    var head = list.shift();
    Severity: Minor
    Found in src/dynamics/audio_player/player/states.js - About 1 hr to fix

      Function toggle_player has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      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();
      Severity: Minor
      Found in src/dynamics/video_player/player/player.js - About 1 hr to fix

        Function __events has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    __events: function() {
                        return [
                            google.ima.AdErrorEvent.Type.AD_ERROR,
                            google.ima.AdEvent.Type.AD_CAN_PLAY,
                            google.ima.AdEvent.Type.IMPRESSION,
        Severity: Minor
        Found in src/ads/ima/manager.js - About 1 hr to fix

          Function _recursivelyDrawImage has 10 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  _recursivelyDrawImage: function(canvas, thumbnails, ctx, w, h, image, index, promise, column, row) {
          Severity: Major
          Found in src/dynamics/video_recorder/recorder/states.js - About 1 hr to fix

            Function addTrimmingEventListeners has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            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"]');
            
            
            Severity: Minor
            Found in src/dynamics/video_player/controlbar/controlbar.js - About 1 hr to fix

              Function showplaylist:playlist has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                                  "showplaylist:playlist": function(playlist) {
                                      if (!playlist) return false;
                                      const showSidebar = playlist.length > 0;
                                      if (!showSidebar) return false;
                                      const videos = this.get("videos");
              Severity: Minor
              Found in src/dynamics/video_player/sidebar/sidebar.js - About 1 hr to fix

                Function _started has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                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"));
                Severity: Minor
                Found in src/dynamics/video_recorder/recorder/states.js - About 1 hr to fix

                  Function _renderMultiCompanionAds has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  _renderMultiCompanionAds: function() {
                                      this.set("multicompanionads", []);
                                      const companionAds = this.get('companionads');
                                      const locations = this.get("companionad.locations");
                                      Objs.iter(locations, function(location) {
                  Severity: Minor
                  Found in src/dynamics/video_player/player/player.js - About 1 hr to fix

                    Function _drawIntoCanvas has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            _drawIntoCanvas: function(thumbnails) {
                                var promise = Promise.create();
                                var w = thumbnails.width;
                                var h = thumbnails.height;
                                var imagesCount = thumbnails.images.length;
                    Severity: Minor
                    Found in src/dynamics/video_recorder/recorder/states.js - About 1 hr to fix

                      Function click_action has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      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");
                      Severity: Minor
                      Found in src/dynamics/video_recorder/chooser/chooser.js - About 1 hr to fix

                        Function _started has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                _started: function() {
                                    this.dyn.set("settingsvisible", false);
                                    this.dyn.set("recordvisible", false);
                                    this.dyn.set("rerecordvisible", false);
                                    this.dyn.set("stopvisible", false);
                        Severity: Minor
                        Found in src/dynamics/video_recorder/recorder/states.js - About 1 hr to fix

                          Function _debouncedToggle has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          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;
                          Severity: Minor
                          Found in src/dynamics/video_player/player/player.js - About 1 hr to fix

                            Function __loadVideo has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    __loadVideo: function() {
                                        this.listenOn(this.dyn, "error:video", function() {
                                            this.next("ErrorVideo");
                                        }, this);
                                        this.listenOn(this.dyn, "playing", function() {
                            Severity: Minor
                            Found in src/dynamics/video_player/player/states.js - About 1 hr to fix

                              Function initAdSources has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                              initAdSources: function() {
                                                  this.set("preloadadsmanager", false);
                                                  this.set("delayadsmanagerload", false);
                                                  if (
                                                      Array.isArray(this.get("adtagurlfallbacks")) &&
                              Severity: Minor
                              Found in src/dynamics/video_player/player/player.js - About 1 hr to fix

                                Function _started has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        _started: function() {
                                            this.dyn.set("settingsvisible", false);
                                            this.dyn.set("recordvisible", false);
                                            this.dyn.set("rerecordvisible", false);
                                            this.dyn.set("stopvisible", false);
                                Severity: Minor
                                Found in src/dynamics/audio_recorder/recorder/states.js - About 1 hr to fix

                                  Function _started has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  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"));
                                  Severity: Minor
                                  Found in src/dynamics/image_capture/capture/states.js - About 1 hr to fix

                                    Function seek has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                        seek: function(position) {
                                                            this.setPlayerEngagement();
                                                            if (this.get("preventinteractionstatus")) return;
                                                            if (this._delegatedPlayer) {
                                                                this._delegatedPlayer.execute("seek", position);
                                    Severity: Minor
                                    Found in src/dynamics/video_player/player/player.js - About 1 hr to fix

                                      Function _timerFire has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                      _timerFire: function() {
                                                          if (this.destroyed())
                                                              return;
                                                          this.set("currentorientation", window.innerHeight > window.innerWidth ? "portrait" : "landscape");
                                                          try {
                                      Severity: Minor
                                      Found in src/dynamics/image_capture/capture/capture.js - About 1 hr to fix

                                        Function stop has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                stop: function() {
                                                    var minlimit = this.dyn.get("timeminlimit");
                                                    if (minlimit) {
                                                        var delta = (Time.now() - (this._startTime + this.dyn.__pauseDelta)) / 1000;
                                                        if (delta < minlimit) {
                                        Severity: Minor
                                        Found in src/dynamics/video_recorder/recorder/states.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language