Skip to content

Commit 3d01857

Browse files
authored
1.6 - Updating to latest version
2 parents 1d07429 + 85d6fea commit 3d01857

28 files changed

+789
-263
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<p align="center">
22
<a href="https://quead.github.io/demo/" title="YouTube Player Demo">View Demo</a>
3-
<img alt="Angular YouTube Player Logo" src="http://i.imgur.com/HciUBN3.jpg" style="height: auto; max-width:100%;" />
3+
<img alt="Angular YouTube Player Logo" src="http://i.imgur.com/2HIN6MY.jpg" style="height: auto; max-width:100%;" />
44
</p>
55

66
# About Player
7-
[![Version](https://img.shields.io/badge/Current%20version-v1.4-brightgreen.svg?style=flat)](https://github.com/quead/angular2-yt-player)
7+
[![Version](https://img.shields.io/badge/Current%20version-v1.6-brightgreen.svg?style=flat)](https://github.com/quead/angular2-yt-player)
88

99
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/quead/angular2-yt-player/master/LICENSE)
1010
[![GitHub forks](https://img.shields.io/github/forks/quead/angular2-yt-player.svg)](https://github.com/quead/angular2-yt-player/network)
@@ -58,6 +58,12 @@ Just take files from ***dist*** folder
5858

5959
## Changelog
6060

61+
Angular2 YT Player v1.6
62+
- History of your watched videos
63+
- Video details for current video and trending videos like number of views, likes and dislikes
64+
- Share link for current video
65+
- Added new setting for hiding all thumbnails
66+
- Custom player buttons shows now only when you hide video
6167

6268
Angular2 YT Player v1.4
6369
- History of your watched videos
@@ -68,7 +74,7 @@ Angular2 YT Player v1.3
6874
- Repeat video
6975
- Grid/list mode for trending videos
7076
- **Settings (you can set default from "assets/settings.json", soon will be directly from settings)**
71-
- *Change country for trending feed (currently only three countries, US, UK and RO)*
77+
- *Change country for trending videos (currently only three countries, US, UK and RO)*
7278
- *Max results show in search (0 to 50)*
7379
- *YOUR_API Key*
7480
- *Max related videos (0 to 50)*
@@ -108,9 +114,6 @@ Angular2 YT Player v1.0.0
108114
- *Save your settings **(unversioned)***
109115

110116
#### Roadmap to 2.0
111-
- Video details for current video, related videos and trending feed like number of views, likes and dislikes **(in v1.6)**
112-
- Share link for current video and related videos **(in v1.6)**
113-
- Share link for current video at your playing time **(in v1.6)**
114117
- Notifications for important actions you do **(in v1.7)**
115118
- Change and create theme **(in v1.7)**
116119
- Add your videos in playlist **(in v1.9)**
@@ -122,6 +125,7 @@ Angular2 YT Player v1.0.0
122125
- *Save your settings **(unversioned)***
123126

124127
#### Roadmap to 3.0
128+
- Categories with videos like (music, gaming, autos, films, sports, much more) **(in 2.1)**
125129
- **Rooms**
126130
- *Create room where you can watch videos with others in sync by sharing the room link **(in v3.0)***
127131
- *Set private/public room **(in v3.0)***

dist/assets/css/main.css

Lines changed: 99 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ body {
2727
line-height: 1.5;
2828
margin: 0;
2929
padding: 0;
30-
user-select: none;
3130
cursor: default;
3231
color: #ffffff;
3332
-webkit-app-region: drag;
@@ -299,6 +298,28 @@ a:active {
299298
transition: opacity 0.1s ease-out 0.3s, visibility 0.1s ease-out 0.1s, height 0.1s ease-out;
300299
}
301300

301+
.notif {
302+
position: absolute;
303+
bottom: -41px;
304+
background-color: #111111;
305+
color: #ffffff;
306+
left: 50%;
307+
transform: translateX(-50%);
308+
min-width: 300px;
309+
padding: 10px 15px;
310+
text-align: center;
311+
transition: all 0.1s ease-in-out;
312+
z-index: 1;
313+
}
314+
315+
.notif p {
316+
margin: 0;
317+
}
318+
319+
.notif.active {
320+
bottom: 0;
321+
}
322+
302323
.current-video-all {
303324
padding: 0px 10px;
304325
display: inline-block;
@@ -325,10 +346,56 @@ a:active {
325346
color: #000;
326347
}
327348

349+
.current-video-stats {
350+
display: flex;
351+
}
352+
353+
.current-video-stats .stats-views {
354+
margin-right: auto;
355+
}
356+
357+
.current-video-stats p {
358+
margin-top: 5px;
359+
margin-bottom: 5px;
360+
color: #5a5a5a;
361+
}
362+
363+
.current-video-stats p + p {
364+
margin-left: 15px;
365+
}
366+
367+
.current-video-stats .fa {
368+
margin-right: 3px;
369+
color: #000;
370+
}
371+
372+
.current-video-share {
373+
display: flex;
374+
margin-top: 3px;
375+
}
376+
377+
.current-video-share label {
378+
margin: 0 15px 0 0;
379+
white-space: nowrap;
380+
padding: 7px 0;
381+
cursor: pointer;
382+
}
383+
384+
.current-video-share input[type=text] {
385+
width: 100%;
386+
border: none;
387+
padding: 3px 20px;
388+
background: #efefef;
389+
margin: 0;
390+
outline: 0;
391+
border-radius: 30px;
392+
}
393+
328394
.player-buttons {
329395
display: flex;
330396
align-items: center;
331397
justify-content: center;
398+
padding-top: 5px;
332399
}
333400

334401
.player-buttons button {
@@ -891,13 +958,29 @@ iframe {
891958
height: auto;
892959
}
893960

961+
.video-item-details {
962+
display: flex;
963+
}
964+
965+
.video-item-details p {
966+
margin: 0 15px 0 0;
967+
line-height: 14px;
968+
font-size: 12px;
969+
color: #5a5a5a;
970+
}
971+
972+
.video-item-details .fa {
973+
margin-right: 3px;
974+
color: #000;
975+
}
976+
894977
#related-video-list {
895978
display: flex;
896979
flex-wrap: wrap;
897980
top: inherit;
898981
bottom: 0;
899982
max-height: none;
900-
height: calc(100% - 110px);
983+
height: calc(100% - 190px);
901984
width: 100%;
902985
transition: height 0.1s ease-out 0.1s;
903986
}
@@ -961,7 +1044,7 @@ iframe {
9611044
}
9621045

9631046
#history-video-list .video-item-head {
964-
background-color: #191919;
1047+
background-color: #111111;
9651048
}
9661049

9671050
#history-video-list .video-item {
@@ -990,7 +1073,7 @@ iframe {
9901073
height: calc(100% - 39px);
9911074
width: 100%;
9921075
overflow: auto;
993-
background-color: #111111;
1076+
background-color: #0c0c0c;
9941077
color: #ffffff;
9951078
}
9961079

@@ -1059,3 +1142,15 @@ iframe {
10591142
#feed-video-list.grid-list .video-item .video-item-content {
10601143
margin: 5px 0 15px 0;
10611144
}
1145+
1146+
#feed-video-list.grid-list .video-item-details {
1147+
flex-wrap: wrap;
1148+
margin-top: 8px;
1149+
}
1150+
1151+
#feed-video-list.grid-list .video-item-details p {
1152+
font-size: 14px;
1153+
width: 100%;
1154+
margin-right: 0;
1155+
margin-bottom: 5px;
1156+
}

dist/assets/scss/_common.scss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,23 @@
133133
transition: opacity 0.1s ease-out 0.3s, visibility 0.1s ease-out 0.1s, height 0.1s ease-out;
134134
}
135135
}
136+
137+
.notif {
138+
position: absolute;
139+
bottom: -41px;
140+
background-color: $c-gray;
141+
color: $c-white;
142+
left: 50%;
143+
transform: translateX(-50%);
144+
min-width: 300px;
145+
padding: 10px 15px;
146+
text-align: center;
147+
transition: all 0.1s ease-in-out;
148+
z-index: 1;
149+
p {
150+
margin: 0;
151+
}
152+
&.active {
153+
bottom: 0;
154+
}
155+
}

dist/assets/scss/_controls.scss

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,50 @@
2424
color: $c-black;
2525
}
2626

27+
.current-video-stats {
28+
display: flex;
29+
.stats-views {
30+
margin-right: auto;
31+
}
32+
p {
33+
margin-top: 5px;
34+
margin-bottom: 5px;
35+
color: $c-light-gray;
36+
}
37+
p + p {
38+
margin-left: 15px;
39+
}
40+
.fa {
41+
margin-right: 3px;
42+
color: $c-black;
43+
}
44+
}
45+
46+
.current-video-share {
47+
display: flex;
48+
margin-top: 3px;
49+
label {
50+
margin: 0 15px 0 0;
51+
white-space: nowrap;
52+
padding: 7px 0;
53+
cursor: pointer;
54+
}
55+
input[type=text] {
56+
width: 100%;
57+
border: none;
58+
padding: 3px 20px;
59+
background: #efefef;
60+
margin: 0;
61+
outline: 0;
62+
border-radius: 30px;
63+
}
64+
}
65+
2766
.player-buttons {
2867
display: flex;
2968
align-items: center;
3069
justify-content: center;
70+
padding-top: 5px;
3171
button {
3272
background: transparent;
3373
position: relative;

dist/assets/scss/_global.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ body {
1515
line-height: 1.5;
1616
margin: 0;
1717
padding: 0;
18-
user-select: none;
1918
cursor: default;
2019
color: $c-white;
2120
-webkit-app-region: drag;

dist/assets/scss/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ $c-primary-active: darken(#e52d27, 10%);
77
$c-secondary: #167ac6;
88

99
$c-gray: #111111;
10+
$c-light-gray: #5a5a5a;
1011
$c-black: #000;
1112
$c-white: #ffffff;
1213

dist/assets/scss/_videos.scss

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,27 @@ iframe {
7575
}
7676
}
7777

78+
.video-item-details {
79+
display: flex;
80+
p {
81+
margin: 0 15px 0 0;
82+
line-height: 14px;
83+
font-size: 12px;
84+
color: $c-light-gray;
85+
}
86+
.fa {
87+
margin-right: 3px;
88+
color: $c-black;
89+
}
90+
}
91+
7892
#related-video-list {
7993
display: flex;
8094
flex-wrap: wrap;
8195
top: inherit;
8296
bottom: 0;
8397
max-height: none;
84-
height: calc(100% - 110px);
98+
height: calc(100% - 190px);
8599
width: 100%;
86100
transition: height 0.1s ease-out 0.1s;
87101
.video-item {
@@ -137,7 +151,7 @@ iframe {
137151
width: 100%;
138152
transition: height 0.1s ease-out 0.1s;
139153
.video-item-head {
140-
background-color: lighten($c-gray, 3%);
154+
background-color: $c-gray;
141155
}
142156
.video-item {
143157
display: flex;
@@ -162,7 +176,7 @@ iframe {
162176
height: calc(100% - 39px);
163177
width: 100%;
164178
overflow: auto;
165-
background-color: $c-gray;
179+
background-color: darken($c-gray, 2%);
166180
color: $c-white;
167181
&::-webkit-scrollbar-track {
168182
border-radius: 2px;
@@ -222,5 +236,15 @@ iframe {
222236
margin: 5px 0 15px 0;
223237
}
224238
}
239+
.video-item-details {
240+
flex-wrap: wrap;
241+
margin-top: 8px;
242+
p {
243+
font-size: 14px;
244+
width: 100%;
245+
margin-right: 0;
246+
margin-bottom: 5px;
247+
}
248+
}
225249
}
226250
}

dist/assets/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"form_settings": [
33
{
4-
"name": "Toggle Debugging Info",
4+
"name": "Show Debugging Info",
55
"value": false
66
}, {
7-
"name": "Toggle Search Thumbnails",
7+
"name": "Show Thumbnails",
88
"value": true
99
}
1010
],
@@ -14,7 +14,7 @@
1414
"value": "AIzaSyDcMvWlqPTHg7rHm-CTVXJwpaVGXKu7cBc"
1515
}, {
1616
"name": "Country trending",
17-
"value": "RO"
17+
"value": "US"
1818
}, {
1919
"name": "Number of search results",
2020
"value": 15

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<base href="/">
5-
<title>YouTube Player v1.4</title>
5+
<title>YouTube Player v1.6</title>
66
<link rel="icon" href="favicon.ico">
77
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,400i,700,900" rel="stylesheet">
88
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

0 commit comments

Comments
 (0)