cloudinary-video-player 1.6.2-edge.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +4 -0
- package/.snyk +19 -0
- package/.travis.yml +8 -0
- package/CHANGELOG.md +329 -0
- package/LICENSE +21 -0
- package/README.md +87 -0
- package/dist/cld-video-player.css +2110 -0
- package/dist/cld-video-player.js +5249 -0
- package/dist/cld-video-player.light.css +1766 -0
- package/dist/cld-video-player.light.js +1399 -0
- package/dist/cld-video-player.light.min.css +1 -0
- package/dist/cld-video-player.light.min.js +2 -0
- package/dist/cld-video-player.light.min.js.LICENSE.txt +23 -0
- package/dist/cld-video-player.min.css +1 -0
- package/dist/cld-video-player.min.js +2 -0
- package/dist/cld-video-player.min.js.LICENSE.txt +26 -0
- package/dist/fonts/cloudinary_icon_for_black_bg.svg +69 -0
- package/dist/fonts/cloudinary_icon_for_white_bg.svg +69 -0
- package/docs/360.html +102 -0
- package/docs/_template.html +93 -0
- package/docs/adaptive-streaming.html +297 -0
- package/docs/analytics.html +140 -0
- package/docs/api.html +302 -0
- package/docs/audio.html +136 -0
- package/docs/autoplay-fallback.html +138 -0
- package/docs/autoplay-on-scroll.html +107 -0
- package/docs/codec-fallback.html +158 -0
- package/docs/colors.html +135 -0
- package/docs/components.html +284 -0
- package/docs/custom-cld-errors.html +134 -0
- package/docs/floating-player.html +98 -0
- package/docs/fluid.html +117 -0
- package/docs/force-hls-subtitles-ios.html +159 -0
- package/docs/index.html +83 -0
- package/docs/interaction-area.html +398 -0
- package/docs/live-customer.html +128 -0
- package/docs/multiple-players.html +125 -0
- package/docs/playlist-by-tag-cap.html +182 -0
- package/docs/playlist-by-tag.html +133 -0
- package/docs/playlist.html +133 -0
- package/docs/poster.html +155 -0
- package/docs/raw-url.html +104 -0
- package/docs/recommendations.html +155 -0
- package/docs/scripts.js +156 -0
- package/docs/seek-thumbs.html +90 -0
- package/docs/shoppable.html +335 -0
- package/docs/subtitles-and-captions.html +267 -0
- package/docs/transformations.html +171 -0
- package/docs/ui-config.html +108 -0
- package/docs/vast-vpaid.html +149 -0
- package/env.example.js +6 -0
- package/env.js +6 -0
- package/jest-puppeteer.config.js +14 -0
- package/jest.config.js +196 -0
- package/package.json +99 -0
- package/sandbox.config.json +3 -0
- package/setupJest.js +1 -0
- package/src/assets/fonts/VideoJS.svg +120 -0
- package/src/assets/fonts/VideoJS.ttf +0 -0
- package/src/assets/fonts/VideoJS.woff +0 -0
- package/src/assets/fonts/icons.json +120 -0
- package/src/assets/icons/cloudinary_icon_for_black_bg.svg +69 -0
- package/src/assets/icons/cloudinary_icon_for_white_bg.svg +69 -0
- package/src/assets/icons/cloudinary_logo_for_dark_bg.svg +188 -0
- package/src/assets/icons/cloudinary_logo_for_white_bg.svg +188 -0
- package/src/assets/icons/info-circle.svg +17 -0
- package/src/assets/styles/ads-label.scss +16 -0
- package/src/assets/styles/components/interaction-areas.scss +158 -0
- package/src/assets/styles/components/playlist.scss +213 -0
- package/src/assets/styles/components/themedButton.scss +48 -0
- package/src/assets/styles/components/thumbnail.scss +94 -0
- package/src/assets/styles/components/title-bar.scss +67 -0
- package/src/assets/styles/components/triangle-volume-bar.scss +52 -0
- package/src/assets/styles/icons.scss +257 -0
- package/src/assets/styles/main.scss +324 -0
- package/src/assets/styles/mixins/aspect-ratio.scss +16 -0
- package/src/assets/styles/mixins/disable-transition.scss +3 -0
- package/src/assets/styles/mixins/mixins.scss +5 -0
- package/src/assets/styles/mixins/skin.scss +64 -0
- package/src/assets/styles/variables.scss +2 -0
- package/src/assets/styles/videojs-ima.scss +252 -0
- package/src/components/component-utils.js +20 -0
- package/src/components/index.js +21 -0
- package/src/components/interaction-area/interaction-area.const.js +30 -0
- package/src/components/interaction-area/interaction-area.service.js +223 -0
- package/src/components/interaction-area/interaction-area.utils.js +236 -0
- package/src/components/jumpButtons/jump-10-minus.js +21 -0
- package/src/components/jumpButtons/jump-10-plus.js +20 -0
- package/src/components/logoButton/logo-button.const.js +3 -0
- package/src/components/logoButton/logo-button.js +30 -0
- package/src/components/logoButton/logo-button.scss +15 -0
- package/src/components/playlist/components/playlist-button.js +34 -0
- package/src/components/playlist/components/playlist-next-button.js +18 -0
- package/src/components/playlist/components/playlist-previous-button.js +18 -0
- package/src/components/playlist/components/playlist.js +5 -0
- package/src/components/playlist/components/playlist.scss +15 -0
- package/src/components/playlist/components/upcoming-video-overlay.js +149 -0
- package/src/components/playlist/components/upcoming-video-overlay.scss +86 -0
- package/src/components/playlist/layout/playlist-layout-custom.js +21 -0
- package/src/components/playlist/layout/playlist-layout-horizontal.js +16 -0
- package/src/components/playlist/layout/playlist-layout-vertical.js +19 -0
- package/src/components/playlist/layout/playlist-layout.js +110 -0
- package/src/components/playlist/panel/playlist-panel-item.js +86 -0
- package/src/components/playlist/panel/playlist-panel.js +92 -0
- package/src/components/playlist/playlist-widget.js +119 -0
- package/src/components/playlist/playlist.const.js +14 -0
- package/src/components/playlist/playlist.js +413 -0
- package/src/components/playlist/thumbnail/thumbnail.js +69 -0
- package/src/components/progress-control-events-blocker/progress-control-events-blocker.js +17 -0
- package/src/components/qualitySelector/quality-selector.scss +10 -0
- package/src/components/qualitySelector/qualitySelector.js +152 -0
- package/src/components/recommendations-overlay/index.js +3 -0
- package/src/components/recommendations-overlay/recommendations-overlay-content.js +57 -0
- package/src/components/recommendations-overlay/recommendations-overlay-hide-button.js +18 -0
- package/src/components/recommendations-overlay/recommendations-overlay-item.js +35 -0
- package/src/components/recommendations-overlay/recommendations-overlay-primary-item.js +81 -0
- package/src/components/recommendations-overlay/recommendations-overlay-secondary-item.js +48 -0
- package/src/components/recommendations-overlay/recommendations-overlay-secondary-items-container.js +35 -0
- package/src/components/recommendations-overlay/recommendations-overlay.js +94 -0
- package/src/components/recommendations-overlay/recommendations-overlay.scss +182 -0
- package/src/components/shoppable-bar/layout/bar-layout.js +111 -0
- package/src/components/shoppable-bar/layout/shoppable-panel-toggle.js +64 -0
- package/src/components/shoppable-bar/layout/shoppable-products-overlay.js +87 -0
- package/src/components/shoppable-bar/panel/shoppable-panel-item.js +105 -0
- package/src/components/shoppable-bar/panel/shoppable-panel.js +172 -0
- package/src/components/shoppable-bar/shoppable-post-widget.js +110 -0
- package/src/components/shoppable-bar/shoppable-widget.const.js +52 -0
- package/src/components/shoppable-bar/shoppable-widget.js +111 -0
- package/src/components/shoppable-bar/shoppable-widget.scss +359 -0
- package/src/components/themeButton/themedButton.const.js +3 -0
- package/src/components/themeButton/themedButton.js +25 -0
- package/src/components/title-bar/title-bar.js +79 -0
- package/src/config/defaults.js +25 -0
- package/src/extended-events.js +228 -0
- package/src/index.js +18 -0
- package/src/mixins/eventable.js +54 -0
- package/src/mixins/playlistable.js +106 -0
- package/src/plugins/analytics/index.js +245 -0
- package/src/plugins/autoplay-on-scroll/index.js +86 -0
- package/src/plugins/cloudinary/common.js +216 -0
- package/src/plugins/cloudinary/event-handler-registry.js +46 -0
- package/src/plugins/cloudinary/index.js +345 -0
- package/src/plugins/cloudinary/models/audio-source/audio-source.const.js +11 -0
- package/src/plugins/cloudinary/models/audio-source/audio-source.js +82 -0
- package/src/plugins/cloudinary/models/base-source.js +107 -0
- package/src/plugins/cloudinary/models/image-source.js +26 -0
- package/src/plugins/cloudinary/models/video-source/video-source.const.js +32 -0
- package/src/plugins/cloudinary/models/video-source/video-source.js +239 -0
- package/src/plugins/cloudinary/models/video-source/video-source.utils.js +57 -0
- package/src/plugins/colors/index.js +303 -0
- package/src/plugins/context-menu/components/context-menu-item.js +12 -0
- package/src/plugins/context-menu/components/context-menu.js +63 -0
- package/src/plugins/context-menu/context-menu.scss +30 -0
- package/src/plugins/context-menu/contextMenuContent.js +53 -0
- package/src/plugins/context-menu/index.js +134 -0
- package/src/plugins/dash/index.js +26 -0
- package/src/plugins/dash/setup-audio-tracks.js +112 -0
- package/src/plugins/dash/setup-text-tracks.js +195 -0
- package/src/plugins/dash/videojs-dash.js +372 -0
- package/src/plugins/floating-player/floating-player.scss +74 -0
- package/src/plugins/floating-player/index.js +129 -0
- package/src/plugins/ima/index.js +1775 -0
- package/src/plugins/index.js +31 -0
- package/src/plugins/interactive-plugin/index.js +10 -0
- package/src/plugins/videojs-http-source-selector/components/SourceMenuButton.js +98 -0
- package/src/plugins/videojs-http-source-selector/components/SourceMenuItem.js +52 -0
- package/src/plugins/videojs-http-source-selector/plugin.js +82 -0
- package/src/plugins/videojs-http-source-selector/plugin.scss +9 -0
- package/src/plugins/vtt-thumbnails/index.js +526 -0
- package/src/plugins/vtt-thumbnails/vtt-thumbnails.scss +29 -0
- package/src/utils/api.js +32 -0
- package/src/utils/apply-with-props.js +32 -0
- package/src/utils/array.js +22 -0
- package/src/utils/assign.js +27 -0
- package/src/utils/attributes-normalizer.js +72 -0
- package/src/utils/cloudinary.js +165 -0
- package/src/utils/css-prefix.js +43 -0
- package/src/utils/dom.js +74 -0
- package/src/utils/find.js +28 -0
- package/src/utils/fontFace.js +25 -0
- package/src/utils/groupBy.js +12 -0
- package/src/utils/index.js +29 -0
- package/src/utils/matches.js +11 -0
- package/src/utils/mixin.js +5 -0
- package/src/utils/object.js +26 -0
- package/src/utils/playButton.js +9 -0
- package/src/utils/positioning.js +78 -0
- package/src/utils/querystring.js +12 -0
- package/src/utils/slicing.js +21 -0
- package/src/utils/string.js +15 -0
- package/src/utils/throttle.js +30 -0
- package/src/utils/time.js +77 -0
- package/src/utils/type-inference.js +35 -0
- package/src/validators/validators-functions.js +48 -0
- package/src/validators/validators-types.js +78 -0
- package/src/validators/validators.js +110 -0
- package/src/video-player.const.js +68 -0
- package/src/video-player.js +761 -0
- package/src/video-player.utils.js +123 -0
- package/test/adaptive-streaming.test.js +38 -0
- package/test/ads.test.js +35 -0
- package/test/analytics.test.js +111 -0
- package/test/api.test.js +111 -0
- package/test/autoplay.scroll.test.js +23 -0
- package/test/basic-ui.test.js +59 -0
- package/test/colors.test.js +58 -0
- package/test/components.test.js +21 -0
- package/test/custom-error.test.js +24 -0
- package/test/fluid.test.js +36 -0
- package/test/isValidConfig.test.js +224 -0
- package/test/mocks/cloudinary-core-mock.js +0 -0
- package/test/mocks/styleMock.js +1 -0
- package/test/multiplayer.test.js +25 -0
- package/test/playlist.test.js +60 -0
- package/test/puppeteer/vp-env.js +19 -0
- package/test/recommendations.test.js +38 -0
- package/test/title-bar.test.js +28 -0
- package/test/ui-conf.test.js +49 -0
- package/test/unit/cloudinaryConfig.test.js +22 -0
- package/test/unit/cloudinaryUtils.test.js +53 -0
- package/test/unit/utils.test.js +27 -0
- package/test/unit/videoSource.test.js +454 -0
- package/tsconfig.json +15 -0
- package/types/video-player-tests.js +12 -0
- package/types/video-player-tests.ts +31 -0
- package/types/video-player.d.ts +570 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
$interaction-area-marker-size: 20px;
|
|
2
|
+
$interaction-area-marker-border-size: 2px;
|
|
3
|
+
$interaction-area-marker-box-shadow-extra-size: 4px;
|
|
4
|
+
$interaction-area-layout-icon-height: 60px;
|
|
5
|
+
|
|
6
|
+
.cld-video-player{
|
|
7
|
+
|
|
8
|
+
&.vjs-user-active {
|
|
9
|
+
.interaction-areas-container {
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.interaction-areas-container {
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
top: 50%;
|
|
19
|
+
left: 50%;
|
|
20
|
+
transform: translate(-50%, -50%);
|
|
21
|
+
display: none;
|
|
22
|
+
z-index: 1;
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.go-back-button,
|
|
29
|
+
.vp-ia-item {
|
|
30
|
+
position: absolute;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.go-back-button {
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.vp-ia-item {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
transition: top, left, width, height;
|
|
46
|
+
transition-timing-function: linear;
|
|
47
|
+
|
|
48
|
+
&.theme-shadowed {
|
|
49
|
+
|
|
50
|
+
.vp-ia-marker-shadow{
|
|
51
|
+
opacity: 0.24;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.theme-pulsing {
|
|
57
|
+
|
|
58
|
+
.vp-ia-marker-shadow {
|
|
59
|
+
-webkit-animation: pulsing-animation 1.3s ease-out;
|
|
60
|
+
-webkit-animation-iteration-count: infinite;
|
|
61
|
+
border: solid $interaction-area-marker-border-size;
|
|
62
|
+
opacity: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
.vp-ia-marker-main:before {
|
|
68
|
+
content: "";
|
|
69
|
+
width: $interaction-area-marker-size;
|
|
70
|
+
height: $interaction-area-marker-size;
|
|
71
|
+
border: solid $interaction-area-marker-border-size rgba(0,0,0,0.25);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.vp-ia-area-marker {
|
|
76
|
+
position: relative;
|
|
77
|
+
width: $interaction-area-marker-size;
|
|
78
|
+
height: $interaction-area-marker-size;
|
|
79
|
+
|
|
80
|
+
.vp-ia-marker-main,
|
|
81
|
+
.vp-ia-marker-main:before,
|
|
82
|
+
.vp-ia-marker-shadow {
|
|
83
|
+
position: absolute;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
transform: translate(-50%, -50%);
|
|
86
|
+
top: 50%;
|
|
87
|
+
left: 50%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.vp-ia-marker-main {
|
|
91
|
+
background-color: white;
|
|
92
|
+
border:solid $interaction-area-marker-border-size;
|
|
93
|
+
height: 100%;
|
|
94
|
+
width: 100%;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.vp-ia-marker-shadow {
|
|
98
|
+
width: 2*$interaction-area-marker-border-size + $interaction-area-marker-size + $interaction-area-marker-box-shadow-extra-size;
|
|
99
|
+
height:2*$interaction-area-marker-border-size + $interaction-area-marker-size + $interaction-area-marker-box-shadow-extra-size;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.vp-ia-layout-message {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
height: 100%;
|
|
110
|
+
z-index: 2;
|
|
111
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
112
|
+
|
|
113
|
+
&.clickable {
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
|
|
116
|
+
&:hover .vp-theme-button {
|
|
117
|
+
background-color: rgba(255, 255, 254, 0.28);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.vp-ia-layout-icon {
|
|
123
|
+
margin-bottom: 20px;
|
|
124
|
+
height: $interaction-area-layout-icon-height;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.vp-ia-layout-message-title {
|
|
128
|
+
font-size: 24px;
|
|
129
|
+
line-height: 34px;
|
|
130
|
+
text-align: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.vp-theme-button {
|
|
134
|
+
margin: 8px 0 18px 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.vp-ia-layout-message-do-not-show {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
|
|
141
|
+
> * {
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.vp-ia-layout-message-checkbox-title {
|
|
146
|
+
margin: 0 0 0 5px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@-webkit-keyframes pulsing-animation {
|
|
155
|
+
0% { height: $interaction-area-marker-size / 2; width: $interaction-area-marker-size / 2; opacity: 0}
|
|
156
|
+
50% { height: $interaction-area-marker-size; width: $interaction-area-marker-size; opacity: 1}
|
|
157
|
+
100% { height: 2 * $interaction-area-marker-size; width: 2 * $interaction-area-marker-size; opacity: 0}
|
|
158
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
@import '../../../assets/styles/mixins/mixins.scss';
|
|
2
|
+
|
|
3
|
+
@mixin listLayout() {
|
|
4
|
+
.cld-plw-layout {
|
|
5
|
+
&.cld-plw-vertical, &.cld-plw-horizontal {
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
|
|
8
|
+
.cld-plw-panel {
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cld-plw-col-list {
|
|
13
|
+
width: inherit !important;
|
|
14
|
+
height: inherit !important;
|
|
15
|
+
max-height: 340px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cld-plw-panel-item {
|
|
19
|
+
background: none !important;
|
|
20
|
+
|
|
21
|
+
img {
|
|
22
|
+
display: block;
|
|
23
|
+
width: 150px;
|
|
24
|
+
height: 84px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cld-plw-item-info-wrap {
|
|
28
|
+
left: 150px;
|
|
29
|
+
padding: 15px 10px;
|
|
30
|
+
top: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
width: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cld-plw-item-title-next {
|
|
36
|
+
display: block;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cld-plw-item-title-curr {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.cld-plw-item-title {
|
|
44
|
+
white-space: normal;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.cld-plw-horizontal {
|
|
50
|
+
.cld-plw-col-list {
|
|
51
|
+
padding-top: 0;
|
|
52
|
+
overflow: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cld-plw-panel {
|
|
56
|
+
position: initial;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.cld-plw-panel-item {
|
|
60
|
+
max-width: none;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cld-plw-horizontal {
|
|
67
|
+
.cld-plw-col-list {
|
|
68
|
+
padding-top: 14.0625%;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.cld-plw-panel {
|
|
73
|
+
overflow: auto;
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 0;
|
|
76
|
+
bottom: 0;
|
|
77
|
+
right: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cld-plw-panel-item {
|
|
84
|
+
background-image: none;
|
|
85
|
+
min-width: 25%;
|
|
86
|
+
max-width: 25%;
|
|
87
|
+
|
|
88
|
+
&:first-child {
|
|
89
|
+
margin-left: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:last-child {
|
|
93
|
+
margin-right: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
.cld-plw-vertical {
|
|
100
|
+
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: row;
|
|
103
|
+
|
|
104
|
+
&.cld-plw-layout {
|
|
105
|
+
> div:first-child {
|
|
106
|
+
flex: 1;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.cld-plw-col-list {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
min-width: 20%;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.cld-plw-panel {
|
|
117
|
+
height: 100%;
|
|
118
|
+
overflow: auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.cld-plw-panel-item {
|
|
122
|
+
height: 25%;
|
|
123
|
+
|
|
124
|
+
&:last-child {
|
|
125
|
+
margin-bottom: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.cld-plw-item-title-next {
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.cld-plw-item-info-wrap {
|
|
136
|
+
position: absolute;
|
|
137
|
+
bottom: 0;
|
|
138
|
+
left: 0;
|
|
139
|
+
padding: 5% 7%;
|
|
140
|
+
width: 100%;
|
|
141
|
+
transition: color .25s;
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-direction: row;
|
|
144
|
+
justify-content: space-between;
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
|
|
147
|
+
.cld-video-player-skin-dark & {
|
|
148
|
+
text-shadow: 1px 1px 1px rgba(#000, .3);
|
|
149
|
+
|
|
150
|
+
@media only screen and (max-width: 768px) {
|
|
151
|
+
background: #272727;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.cld-plw-item-title {
|
|
157
|
+
text-overflow: ellipsis;
|
|
158
|
+
white-space: nowrap;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
@include ellipsis;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.cld-plw-item-duration {
|
|
164
|
+
margin-left: 10px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* Default Playlist Layout */
|
|
168
|
+
|
|
169
|
+
.cld-plw-layout {
|
|
170
|
+
&.cld-plw-layout-fluid {
|
|
171
|
+
width: 100%;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.cld-plw-vertical {
|
|
175
|
+
flex-direction: row;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&.cld-plw-horizontal {
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.cld-plw-custom {
|
|
184
|
+
padding: 4px;
|
|
185
|
+
.cld-plw-panel-item {
|
|
186
|
+
background: none !important;
|
|
187
|
+
margin: 4px 0;
|
|
188
|
+
&:first-child {
|
|
189
|
+
margin-top: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&:last-child {
|
|
193
|
+
margin-bottom: 0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
img {
|
|
197
|
+
display: block;
|
|
198
|
+
width: 150px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.cld-plw-item-info-wrap {
|
|
202
|
+
left: 160px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.cld-plw-item-title-next {
|
|
206
|
+
display: block;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@media only screen and (max-width: 768px) {
|
|
212
|
+
@include listLayout();
|
|
213
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
$border-radius : 4px;
|
|
2
|
+
|
|
3
|
+
.cld-video-player {
|
|
4
|
+
|
|
5
|
+
.vp-theme-button {
|
|
6
|
+
position: relative;
|
|
7
|
+
height: 40px;
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
border-radius: $border-radius;
|
|
10
|
+
padding: 0 20px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
|
|
13
|
+
&.theme-transparent-white {
|
|
14
|
+
background-color: rgba(255, 255, 254, 0.18);
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
background-color: rgba(255, 255, 254, 0.28);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.vp-loading-bar {
|
|
21
|
+
background-color: rgba(255, 255, 254, 0.22);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.vp-loading-bar {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top:0;
|
|
29
|
+
left: 0;
|
|
30
|
+
height: 100%;
|
|
31
|
+
width: 100%;
|
|
32
|
+
transition: width;
|
|
33
|
+
animation-name: loading;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:hover{
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@keyframes loading {
|
|
46
|
+
from { width: 0; }
|
|
47
|
+
to { width: 100%; }
|
|
48
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
|
|
2
|
+
@mixin thumbnail() {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
font-size: 1em;
|
|
8
|
+
text-align: left;
|
|
9
|
+
background-repeat: no-repeat;
|
|
10
|
+
background-size: cover;
|
|
11
|
+
background-position: center center;
|
|
12
|
+
|
|
13
|
+
.cld-thumbnail-img {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cld-thumbnail {
|
|
19
|
+
@include thumbnail();
|
|
20
|
+
|
|
21
|
+
.cld-video-player-skin-light & {
|
|
22
|
+
.cld-plw-item-info-wrap {
|
|
23
|
+
background: #fff;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.cld-plw-panel-item-active {
|
|
27
|
+
border: 1px solid #0078FF;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
|
|
30
|
+
.cld-plw-item-info-wrap {
|
|
31
|
+
background: rgba(0, 119, 255, 0.8);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cld-plw-item-info-wrap {
|
|
35
|
+
color: #fff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
.cld-plw-item-info-wrap {
|
|
40
|
+
color: #fff;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cld-video-player-skin-dark & {
|
|
47
|
+
&:before {
|
|
48
|
+
content: '';
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 40%;
|
|
51
|
+
max-height: 60%;
|
|
52
|
+
right: 0;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 80%);
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.cld-plw-panel-item-active {
|
|
60
|
+
border: 1px solid #FF620C;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
|
|
63
|
+
@media only screen and (min-width: 769px) {
|
|
64
|
+
&:before {
|
|
65
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 90%);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.cld-plw-item-info-wrap {
|
|
69
|
+
font-weight: 500;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.cld-plw-item-info-wrap {
|
|
74
|
+
color: #FF620C;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cld-plw-panel-item:hover:after {
|
|
81
|
+
content: "";
|
|
82
|
+
position: absolute;
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
top: 0px;
|
|
86
|
+
left: 0px;
|
|
87
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@media only screen and (max-width: 768px) {
|
|
91
|
+
.cld-thumbnail:before {
|
|
92
|
+
background: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
|
|
2
|
+
.video-js .vjs-title-bar {
|
|
3
|
+
display: none;
|
|
4
|
+
width: 100%;
|
|
5
|
+
position: absolute;
|
|
6
|
+
top: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
height: 7.2em;
|
|
9
|
+
text-align: left;
|
|
10
|
+
padding: 16px 21px;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
|
|
13
|
+
.vjs-title-bar-title {
|
|
14
|
+
width: 100%;
|
|
15
|
+
font-size: 1.2em;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
line-height: 1.2em;
|
|
18
|
+
margin-bottom: 0.55em;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.vjs-title-bar-subtitle {
|
|
22
|
+
width: 100%;
|
|
23
|
+
font-size: 1em;
|
|
24
|
+
font-weight: 300;
|
|
25
|
+
line-height: 1em;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Video has started playing
|
|
30
|
+
.vjs-has-started .vjs-title-bar {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: center;
|
|
34
|
+
|
|
35
|
+
visibility: visible;
|
|
36
|
+
opacity: 1;
|
|
37
|
+
|
|
38
|
+
transition: visibility 0.1s, opacity 0.1s; // Var needed because of comma
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Video has started playing AND user is inactive
|
|
42
|
+
.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-title-bar {
|
|
43
|
+
// Remain visible for screen reader and keyboard users
|
|
44
|
+
visibility: visible;
|
|
45
|
+
opacity: 0;
|
|
46
|
+
|
|
47
|
+
transition: visibility 1.0s, opacity 1.0s;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.vjs-controls-disabled .vjs-title-bar,
|
|
51
|
+
.vjs-using-native-controls .vjs-title-bar,
|
|
52
|
+
.vjs-error .vjs-title-bar,
|
|
53
|
+
.vjs-ad-playing .vjs-title-bar {
|
|
54
|
+
// !important is ok in this context.
|
|
55
|
+
display: none !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Don't hide the control bar if it's audio
|
|
59
|
+
.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-title-bar {
|
|
60
|
+
opacity: 1;
|
|
61
|
+
visibility: visible;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// IE 8 + 9 Support
|
|
65
|
+
.vjs-has-started.vjs-no-flex .vjs-title-bar {
|
|
66
|
+
display: table;
|
|
67
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.video-js {
|
|
2
|
+
$size: 20px;
|
|
3
|
+
$height: 1.2em;
|
|
4
|
+
$width: 6em;
|
|
5
|
+
|
|
6
|
+
%triangle-volume-bar {
|
|
7
|
+
content: '';
|
|
8
|
+
font-size: $size;
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
width: 0;
|
|
13
|
+
height: 0;
|
|
14
|
+
line-height: 0px;
|
|
15
|
+
border-style: solid;
|
|
16
|
+
border-width: 0 0 $height $width;
|
|
17
|
+
border-color: transparent transparent #0e2f5a transparent;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.vjs-volume-panel-horizontal {
|
|
21
|
+
|
|
22
|
+
// Background triangle
|
|
23
|
+
.vjs-volume-control {
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
height: 3em;
|
|
26
|
+
|
|
27
|
+
&:before {
|
|
28
|
+
@extend %triangle-volume-bar;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Inner Container
|
|
33
|
+
.vjs-volume-bar {
|
|
34
|
+
margin: 0;
|
|
35
|
+
height: 100%;
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Inner triangle
|
|
40
|
+
.vjs-volume-level {
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
height: 100%;
|
|
43
|
+
background: transparent;
|
|
44
|
+
box-shadow: none;
|
|
45
|
+
|
|
46
|
+
&:before {
|
|
47
|
+
@extend %triangle-volume-bar;
|
|
48
|
+
border-color: transparent transparent #e8e8e9 transparent;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|