betajs/betajs-media-components

View on GitHub

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

                    "containerSizingStyles:outstream,aspect_ratio,height,width,is_floating,hideplayer,floatingoptions.floatingonly,fullscreened,showsidebargallery,gallerysidebar,layout": function(
                        outstream,
                        aspectRatio,
                        height,
                        width,
Severity: Minor
Found in src/dynamics/video_player/player/player.js - About 1 hr to fix

    Function onAdsManagerLoaded has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    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") {
    Severity: Minor
    Found in src/ads/ima/manager.js - About 1 hr to fix

      Function __handleMouseMoveEvent has 46 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  __handleMouseMoveEvent: function(ev) {
                      var setTranslate = function(el, posX, posY) {
                          el.style.transform = "translate3d(" + posX + "px, " + posY + "px, 0)";
                      };
      
      
      Severity: Minor
      Found in src/dynamics/_common/helperframe.js - About 1 hr to fix

        Function _open_image has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        _open_image: function(sourceFile) {
                            this.__imageViewer.counter = 0;
                            // Main container
                            this.__imageViewer.imageViewer = document.createElement('div');
        
        
        Severity: Minor
        Found in src/dynamics/image_viewer/viewer/image_viewer.js - About 1 hr to fix

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

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

              Function create has 44 lines of code (exceeds 25 allowed). Consider refactoring.
              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"), {
              Severity: Minor
              Found in src/dynamics/audio_player/player/player.js - About 1 hr to fix

                Function generateVTTFromObject has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                            generateVTTFromObject: function(content, presetTimePeriod) {
                                presetTimePeriod = presetTimePeriod || 2;
                
                                const timeKey = 'times';
                                const wordsKey = 'words';
                Severity: Minor
                Found in src/dynamics/_common/track_tags.js - About 1 hr to fix

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

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

                      Function toggle_fullscreen has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Function setNextVideoIndex has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        setNextVideoIndex: function(triggerNext) {
                                            triggerNext = triggerNext || false;
                                            let nextVideo, videoFromTop, indexFromTop, nextIndex = null;
                                            const currentVideo = this.__getCurrentVideo();
                                            const currentIndex = currentVideo?.get("index");
                        Severity: Minor
                        Found in src/dynamics/video_player/sidebar/sidebar.js - About 1 hr to fix

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

                                  _started: function() {
                                      this.dyn.set("message", "");
                                      this.dyn.set("loaderlabel", "");
                                      var startedRecording = false;
                                      this.dyn._accessing_camera = true;
                          Severity: Minor
                          Found in src/dynamics/image_capture/capture/states.js - About 1 hr to fix

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

                                    _started: function() {
                                        this.dyn.set("message", "");
                                        this.dyn.set("loaderlabel", "");
                                        var startedRecording = false;
                                        this.dyn._accessing_microphone = true;
                            Severity: Minor
                            Found in src/dynamics/audio_recorder/recorder/states.js - About 1 hr to fix

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

                                      _started: function() {
                                          this.dyn.set("message", "");
                                          this.dyn.set("loaderlabel", "");
                                          var startedRecording = false;
                                          this.dyn._accessing_camera = true;
                              Severity: Minor
                              Found in src/dynamics/video_recorder/recorder/states.js - About 1 hr to fix

                                Function __appendThumbnailTrackTags has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                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) {
                                Severity: Minor
                                Found in src/dynamics/_common/track_tags.js - About 1 hr to fix

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

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

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

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