Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit 5e3d230

Browse files
authored
2.5.1 - Update to latest version
2 parents d836f53 + 7e7c04c commit 5e3d230

25 files changed

+7356
-155
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</p>
99

1010
# About Player
11-
[![Version](https://img.shields.io/badge/Current%20version-v2.5-brightgreen.svg?style=flat)](https://github.com/quead/angular-youtube-player)
11+
[![Version](https://img.shields.io/badge/Current%20version-v2.5.1-brightgreen.svg?style=flat)](https://github.com/quead/angular-youtube-player)
1212

1313
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/quead/angular-youtube-player/master/LICENSE)
1414
[![GitHub forks](https://img.shields.io/github/forks/quead/angular-youtube-player.svg)](https://github.com/quead/angular-youtube-player/network)
@@ -23,7 +23,7 @@ This player is compatible only with Chrome/webkit browsers.
2323
## How to use
2424

2525
**For development**
26-
1. Install [NodeJS 8.11.3+](https://nodejs.org/en/download/ "Node JS Download")
26+
1. Install [NodeJS 10.16.0+](https://nodejs.org/en/download/ "Node JS Download")
2727

2828
2. Download/clone repository then install the player by
2929

@@ -52,6 +52,11 @@ Check [angular documentation](https://angular.io/cli/build 'angular cli') for ot
5252
`ng build --prod=true`
5353

5454
## Changelog
55+
Angular YouTube Player 2.5.1
56+
- Upgrade angular to LTS (from 7 to 8)
57+
- Fixed repeat mode
58+
- Update layout for playlist / related videos
59+
5560
Angular YouTube Player 2.5
5661
- Cleaned the project to avoid using a lot of dependencies
5762
- Fix the issue when you change the region didn't updated the player

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
}
120120
}
121121
},
122-
"defaultProject": "a2-youtube",
122+
"defaultProject": "angular-youtube-player",
123123
"schematics": {
124124
"@schematics/angular:component": {
125125
"prefix": "app",

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-youtube-player",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
@@ -12,29 +12,29 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15+
"@angular-devkit/build-angular": "^0.802.0",
1516
"@angular/cdk": "^7.3.7",
16-
"@angular/common": "^7.2.13",
17-
"@angular/compiler": "^7.2.13",
18-
"@angular/core": "^7.2.13",
19-
"@angular/forms": "^7.2.13",
17+
"@angular/common": "^8.2.0",
18+
"@angular/compiler": "^8.2.0",
19+
"@angular/core": "^8.2.0",
20+
"@angular/forms": "^8.2.0",
2021
"@angular/http": "^7.2.13",
21-
"@angular/platform-browser": "^7.2.13",
22-
"@angular/platform-browser-dynamic": "^7.2.13",
23-
"@angular/router": "^7.2.13",
22+
"@angular/platform-browser": "^8.2.0",
23+
"@angular/platform-browser-dynamic": "^8.2.0",
24+
"@angular/router": "^8.2.0",
2425
"@ngu/carousel": "^1.5.5",
2526
"core-js": "^2.5.7",
2627
"hammerjs": "^2.0.8",
2728
"ngx-socket-io": "^2.1.1",
2829
"rxjs": "^6.4.0",
2930
"rxjs-compat": "^6.4.0",
3031
"tslib": "^1.9.0",
31-
"zone.js": "^0.8.29"
32+
"zone.js": "^0.9.1"
3233
},
3334
"devDependencies": {
34-
"@angular-devkit/build-angular": "^0.13.8",
35-
"@angular/cli": "~7.3.8",
36-
"@angular/compiler-cli": "~7.2.13",
37-
"@angular/language-service": "~7.2.13",
35+
"@angular/cli": "^8.0.1",
36+
"@angular/compiler-cli": "~8.2.0",
37+
"@angular/language-service": "~8.2.0",
3838
"@types/jasmine": "~2.8.8",
3939
"@types/jasminewd2": "~2.0.3",
4040
"@types/node": "~8.9.4",
@@ -49,6 +49,6 @@
4949
"protractor": "~5.4.0",
5050
"ts-node": "~7.0.0",
5151
"tslint": "~5.11.0",
52-
"typescript": "~3.2.4"
52+
"typescript": "~3.5.3"
5353
}
5454
}

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { PlaylistControlService } from './services/playlist-control.service';
1010
providers: [PlaylistControlService]
1111
})
1212
export class AppComponent implements OnInit {
13-
@ViewChild('videoItemIDvalue') videoItemIDvalue: ElementRef;
13+
@ViewChild('videoItemIDvalue', { static: true }) videoItemIDvalue: ElementRef;
1414

1515
constructor(
1616
public shared: SharedService,

src/app/components/category/category.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="app-content">
1+
<div class="app-content app-container">
22
<div class="video-item-head">
33
<h2>Trending</h2>
44
<div class="categories" *ngIf="globals.categories">

src/app/components/player/buttons/buttons.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class ButtonsComponent implements OnInit {
4343
}
4444
});
4545
}
46+
this.globals.searchOverlay = false;
4647
}
4748

4849
onClickVideo(i: number, list: number) {
@@ -53,6 +54,7 @@ export class ButtonsComponent implements OnInit {
5354
} else {
5455
this.getVideo(this.shared.getVideoFromList(i, list));
5556
}
57+
this.globals.searchOverlay = false;
5658
}
5759

5860
getVideo(data: VideoModel) {

src/app/components/player/player.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,8 @@ export class PlayerComponent implements OnInit {
7171
}
7272

7373
changeState(event: any) {
74-
if (event.data) {
75-
this.globals.currentState = event.data;
76-
} else if (isNaN(event)) {
77-
this.globals.currentState = event;
78-
}
74+
this.globals.currentState = event.data;
75+
7976
this.videoMaxRange = this.globals.player.getDuration();
8077
this.videoCurVolume = this.globals.player.getVolume();
8178

src/app/components/player/video-item/video-item.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
justify-content: center;
6969
transition: all 0.1s ease-in-out;
7070
> button {
71-
background-color: var(--c-dark-gray);
71+
background-color: var(--c-black);
7272
color: inherit;
7373
height: 30px;
7474
width: 30px;

src/app/components/playlist/playlist.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div id="playlist-video-list" class="video-list">
1+
<div id="playlist-video-list" class="video-list app-container">
22
<div class="video-item-head">
33
<h2>Current playlist</h2>
44
<button type="button" class="btn btn-small btn-warning" (click)="confirmClear()"

src/app/components/playlist/playlist.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
1212
styleUrls: ['./playlist.component.scss']
1313
})
1414
export class PlaylistComponent implements OnInit {
15-
@ViewChild('playlistContainer') private myScrollContainer: ElementRef;
15+
@ViewChild('playlistContainer', { static: true }) private myScrollContainer: ElementRef;
1616

1717
tempPlaylist: Array<VideoModel> = [];
1818

0 commit comments

Comments
 (0)