Skip to content

Commit

Permalink
remove unused line
Browse files Browse the repository at this point in the history
  • Loading branch information
SivanA-Kaltura committed Aug 26, 2024
1 parent 3af730d commit 85bf217
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ const CONTAINER_CLASS_NAME: string = 'playkit-container';
const POSTER_CLASS_NAME: string = 'playkit-poster';

/**
/**
* The video filter class name.
* @type {string}
* @const
*/
* The video filter class name.
* @type {string}
* @const
*/
const VIDEO_FILTER_CLASS_NAME: string = 'playkit-video-filter';

/**
Expand Down Expand Up @@ -1263,16 +1262,16 @@ export default class Player extends FakeEventTarget {
*/
public getTracks<T extends Track | AudioTrack | PKTextTrack | VideoTrack | ImageTrack>(type?: TrackTypes): T[] {
switch (type) {
case TrackType.VIDEO:
return Utils.Object.copyDeep(this._getVideoTracks());
case TrackType.AUDIO:
return Utils.Object.copyDeep(this._getAudioTracks());
case TrackType.TEXT:
return Utils.Object.copyDeep(this._getTextTracks());
case TrackType.IMAGE:
return Utils.Object.copyDeep(this._getImageTracks());
default:
return Utils.Object.copyDeep(this._tracks);
case TrackType.VIDEO:

Check failure on line 1265 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 4 spaces but found 6
return Utils.Object.copyDeep(this._getVideoTracks());

Check failure on line 1266 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 6 spaces but found 8
case TrackType.AUDIO:

Check failure on line 1267 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 4 spaces but found 6
return Utils.Object.copyDeep(this._getAudioTracks());

Check failure on line 1268 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 6 spaces but found 8
case TrackType.TEXT:

Check failure on line 1269 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 4 spaces but found 6
return Utils.Object.copyDeep(this._getTextTracks());

Check failure on line 1270 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 6 spaces but found 8
case TrackType.IMAGE:

Check failure on line 1271 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 4 spaces but found 6
return Utils.Object.copyDeep(this._getImageTracks());

Check failure on line 1272 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 6 spaces but found 8
default:

Check failure on line 1273 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 4 spaces but found 6
return Utils.Object.copyDeep(this._tracks);

Check failure on line 1274 in src/player.ts

View workflow job for this annotation

GitHub Actions / lint / running-tests (ubuntu-latest)

Expected indentation of 6 spaces but found 8
}
}

Expand Down Expand Up @@ -2027,7 +2026,7 @@ export default class Player extends FakeEventTarget {
if (window.self !== window.top) {
const head = Utils.Dom.getElementBySelector('head');
let title = head.querySelector('title');
if (!title){
if (!title) {
title = Utils.Dom.createElement('title');
head.appendChild(title);
}
Expand Down Expand Up @@ -2732,15 +2731,15 @@ export default class Player extends FakeEventTarget {
return;
}
switch (callbackType) {
case LabelOptions.QUALITIES:
this._setTracksCustomLabels(this._getVideoTracks(), customLabels[callbackType]);
break;
case LabelOptions.AUDIO:
this._setTracksCustomLabels(this._getAudioTracks(), customLabels[callbackType]);
break;
case LabelOptions.CAPTIONS:
this._setTracksCustomLabels(this._getTextTracks(), customLabels[callbackType]);
break;
case LabelOptions.QUALITIES:
this._setTracksCustomLabels(this._getVideoTracks(), customLabels[callbackType]);
break;
case LabelOptions.AUDIO:
this._setTracksCustomLabels(this._getAudioTracks(), customLabels[callbackType]);
break;
case LabelOptions.CAPTIONS:
this._setTracksCustomLabels(this._getTextTracks(), customLabels[callbackType]);
break;
}
}
}
Expand Down

0 comments on commit 85bf217

Please sign in to comment.