Showing 92 of 167 total issues
File webrtc_recorder.js
has 958 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:WebRTC.RecorderWrapper", [
"base:Classes.ConditionalInstance",
"base:Events.EventsMixin",
"base:Objs",
"base:Async",
Function userMedia2
has 242 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
userMedia2: function(options) {
var opts = {};
var promise;
if (options.audio)
opts.audio = options.audio;
File video_player.js
has 524 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:Player.VideoPlayerWrapper", [
"base:Classes.OptimisticConditionalInstance",
"base:Events.EventsMixin",
"base:MediaTypes",
"base:Types",
File webrtc_support.js
has 516 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:WebRTC.Support", [
"base:Promise",
"base:Objs",
"browser:Info",
"browser:Dom",
File video_recorder.js
has 445 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:Recorder.VideoRecorderWrapper", [
"base:Classes.ConditionalInstance",
"base:Events.EventsMixin",
"base:Objs",
"base:Promise"
Function _initialize
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initialize: function() {
if (this._options.nohtml5)
return Promise.error(true);
if (this._sources.length < 1)
return Promise.error(true);
Function _initialize
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initialize: function() {
if (this._options.nohtml5)
return Promise.error(true);
if (this._sources.length < 1)
return Promise.error(true);
Function generateEBMLHeader
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateEBMLHeader: function(duration, width, height) {
var doubleToString = function(num) {
return [].slice.call(
new Uint8Array((new Float64Array([num])).buffer), 0).map(function(e) {
File audio_player.js
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:AudioPlayer.AudioPlayerWrapper", [
"base:Classes.OptimisticConditionalInstance",
"base:Events.EventsMixin",
"base:Types",
"base:Objs",
Function reverseVideos
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
reverseVideos: function() {
var _self = this;
var _isMainBecomeSmall = this.__multiStreamVideoSettings.isMainStream;
this.__multiStreamVideoSettings.isMainStream = !_isMainBecomeSmall;
File broadcasting.js
has 278 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:Player.Broadcasting", [
"base:Class",
"browser:Loader",
"browser:Events"
], function(Class, Loader, DomEvents, scoped) {
Function constructor
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function(options, transitionals) {
inherited.constructor.call(this);
options = Objs.extend(Objs.clone(options || {}, 1), transitionals);
this._poster = options.poster || null;
var sources = options.source || options.sources || [];
Function _startDrawRecorderToCanvas
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_startDrawRecorderToCanvas: function(stream) {
try {
var streamSettings = stream.getVideoTracks()[0].getSettings();
if (streamSettings.aspectRatio) {
if (Math.abs(streamSettings.aspectRatio - this._videoTrackSettings.aspectRatio) > 0.1) {
Function constructor
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function(stream, options) {
options = options || {};
inherited.constructor.call(this);
this._stream = stream;
this._started = false;
File webm_encoder.js
has 264 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:Encoding.WebmEncoder.Support", [
"base:Promise",
"base:Scheduling.Helper",
"base:Types"
], function(Promise, SchedulingHelper, Types) {
Function _initializeCastApi
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initializeCastApi: function() {
var self = this;
self.player.trigger("cast-available", true);
var googleCastInitialOptions = this.googleCast.initialOptions;
Function _enhanceSDP
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_enhanceSDP: function(sdpStr, enhanceData) {
var sdpLines = sdpStr.split(/\r\n/);
var sdpSection = 'header';
var hitMID = false;
var sdpStrRet = '';
Function _setup
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setup: function() {
this._loaded = false;
this._domEvents.on(this._element, "canplay", this._eventLoaded, this);
this._domEvents.on(this._element, "loadedmetadata", this._eventLoadedMetaData, this);
this._domEvents.on(this._element, "playing", this._eventPlaying, this);
Function _drawTracksToCanvas
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drawTracksToCanvas: function() {
if (!this._drawingStream)
return;
var videosCount = this._videoElements.length;
var reversed = false;
Function _setupCastRemotePlayer
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_setupCastRemotePlayer: function(castRemotePlayer, castRemotePlayerController) {
var self = this;
var player = this.player;
var options = this.castOptions;
var sources = player._sources;