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.
Files changed (226) hide show
  1. package/.eslintignore +4 -0
  2. package/.snyk +19 -0
  3. package/.travis.yml +8 -0
  4. package/CHANGELOG.md +329 -0
  5. package/LICENSE +21 -0
  6. package/README.md +87 -0
  7. package/dist/cld-video-player.css +2110 -0
  8. package/dist/cld-video-player.js +5249 -0
  9. package/dist/cld-video-player.light.css +1766 -0
  10. package/dist/cld-video-player.light.js +1399 -0
  11. package/dist/cld-video-player.light.min.css +1 -0
  12. package/dist/cld-video-player.light.min.js +2 -0
  13. package/dist/cld-video-player.light.min.js.LICENSE.txt +23 -0
  14. package/dist/cld-video-player.min.css +1 -0
  15. package/dist/cld-video-player.min.js +2 -0
  16. package/dist/cld-video-player.min.js.LICENSE.txt +26 -0
  17. package/dist/fonts/cloudinary_icon_for_black_bg.svg +69 -0
  18. package/dist/fonts/cloudinary_icon_for_white_bg.svg +69 -0
  19. package/docs/360.html +102 -0
  20. package/docs/_template.html +93 -0
  21. package/docs/adaptive-streaming.html +297 -0
  22. package/docs/analytics.html +140 -0
  23. package/docs/api.html +302 -0
  24. package/docs/audio.html +136 -0
  25. package/docs/autoplay-fallback.html +138 -0
  26. package/docs/autoplay-on-scroll.html +107 -0
  27. package/docs/codec-fallback.html +158 -0
  28. package/docs/colors.html +135 -0
  29. package/docs/components.html +284 -0
  30. package/docs/custom-cld-errors.html +134 -0
  31. package/docs/floating-player.html +98 -0
  32. package/docs/fluid.html +117 -0
  33. package/docs/force-hls-subtitles-ios.html +159 -0
  34. package/docs/index.html +83 -0
  35. package/docs/interaction-area.html +398 -0
  36. package/docs/live-customer.html +128 -0
  37. package/docs/multiple-players.html +125 -0
  38. package/docs/playlist-by-tag-cap.html +182 -0
  39. package/docs/playlist-by-tag.html +133 -0
  40. package/docs/playlist.html +133 -0
  41. package/docs/poster.html +155 -0
  42. package/docs/raw-url.html +104 -0
  43. package/docs/recommendations.html +155 -0
  44. package/docs/scripts.js +156 -0
  45. package/docs/seek-thumbs.html +90 -0
  46. package/docs/shoppable.html +335 -0
  47. package/docs/subtitles-and-captions.html +267 -0
  48. package/docs/transformations.html +171 -0
  49. package/docs/ui-config.html +108 -0
  50. package/docs/vast-vpaid.html +149 -0
  51. package/env.example.js +6 -0
  52. package/env.js +6 -0
  53. package/jest-puppeteer.config.js +14 -0
  54. package/jest.config.js +196 -0
  55. package/package.json +99 -0
  56. package/sandbox.config.json +3 -0
  57. package/setupJest.js +1 -0
  58. package/src/assets/fonts/VideoJS.svg +120 -0
  59. package/src/assets/fonts/VideoJS.ttf +0 -0
  60. package/src/assets/fonts/VideoJS.woff +0 -0
  61. package/src/assets/fonts/icons.json +120 -0
  62. package/src/assets/icons/cloudinary_icon_for_black_bg.svg +69 -0
  63. package/src/assets/icons/cloudinary_icon_for_white_bg.svg +69 -0
  64. package/src/assets/icons/cloudinary_logo_for_dark_bg.svg +188 -0
  65. package/src/assets/icons/cloudinary_logo_for_white_bg.svg +188 -0
  66. package/src/assets/icons/info-circle.svg +17 -0
  67. package/src/assets/styles/ads-label.scss +16 -0
  68. package/src/assets/styles/components/interaction-areas.scss +158 -0
  69. package/src/assets/styles/components/playlist.scss +213 -0
  70. package/src/assets/styles/components/themedButton.scss +48 -0
  71. package/src/assets/styles/components/thumbnail.scss +94 -0
  72. package/src/assets/styles/components/title-bar.scss +67 -0
  73. package/src/assets/styles/components/triangle-volume-bar.scss +52 -0
  74. package/src/assets/styles/icons.scss +257 -0
  75. package/src/assets/styles/main.scss +324 -0
  76. package/src/assets/styles/mixins/aspect-ratio.scss +16 -0
  77. package/src/assets/styles/mixins/disable-transition.scss +3 -0
  78. package/src/assets/styles/mixins/mixins.scss +5 -0
  79. package/src/assets/styles/mixins/skin.scss +64 -0
  80. package/src/assets/styles/variables.scss +2 -0
  81. package/src/assets/styles/videojs-ima.scss +252 -0
  82. package/src/components/component-utils.js +20 -0
  83. package/src/components/index.js +21 -0
  84. package/src/components/interaction-area/interaction-area.const.js +30 -0
  85. package/src/components/interaction-area/interaction-area.service.js +223 -0
  86. package/src/components/interaction-area/interaction-area.utils.js +236 -0
  87. package/src/components/jumpButtons/jump-10-minus.js +21 -0
  88. package/src/components/jumpButtons/jump-10-plus.js +20 -0
  89. package/src/components/logoButton/logo-button.const.js +3 -0
  90. package/src/components/logoButton/logo-button.js +30 -0
  91. package/src/components/logoButton/logo-button.scss +15 -0
  92. package/src/components/playlist/components/playlist-button.js +34 -0
  93. package/src/components/playlist/components/playlist-next-button.js +18 -0
  94. package/src/components/playlist/components/playlist-previous-button.js +18 -0
  95. package/src/components/playlist/components/playlist.js +5 -0
  96. package/src/components/playlist/components/playlist.scss +15 -0
  97. package/src/components/playlist/components/upcoming-video-overlay.js +149 -0
  98. package/src/components/playlist/components/upcoming-video-overlay.scss +86 -0
  99. package/src/components/playlist/layout/playlist-layout-custom.js +21 -0
  100. package/src/components/playlist/layout/playlist-layout-horizontal.js +16 -0
  101. package/src/components/playlist/layout/playlist-layout-vertical.js +19 -0
  102. package/src/components/playlist/layout/playlist-layout.js +110 -0
  103. package/src/components/playlist/panel/playlist-panel-item.js +86 -0
  104. package/src/components/playlist/panel/playlist-panel.js +92 -0
  105. package/src/components/playlist/playlist-widget.js +119 -0
  106. package/src/components/playlist/playlist.const.js +14 -0
  107. package/src/components/playlist/playlist.js +413 -0
  108. package/src/components/playlist/thumbnail/thumbnail.js +69 -0
  109. package/src/components/progress-control-events-blocker/progress-control-events-blocker.js +17 -0
  110. package/src/components/qualitySelector/quality-selector.scss +10 -0
  111. package/src/components/qualitySelector/qualitySelector.js +152 -0
  112. package/src/components/recommendations-overlay/index.js +3 -0
  113. package/src/components/recommendations-overlay/recommendations-overlay-content.js +57 -0
  114. package/src/components/recommendations-overlay/recommendations-overlay-hide-button.js +18 -0
  115. package/src/components/recommendations-overlay/recommendations-overlay-item.js +35 -0
  116. package/src/components/recommendations-overlay/recommendations-overlay-primary-item.js +81 -0
  117. package/src/components/recommendations-overlay/recommendations-overlay-secondary-item.js +48 -0
  118. package/src/components/recommendations-overlay/recommendations-overlay-secondary-items-container.js +35 -0
  119. package/src/components/recommendations-overlay/recommendations-overlay.js +94 -0
  120. package/src/components/recommendations-overlay/recommendations-overlay.scss +182 -0
  121. package/src/components/shoppable-bar/layout/bar-layout.js +111 -0
  122. package/src/components/shoppable-bar/layout/shoppable-panel-toggle.js +64 -0
  123. package/src/components/shoppable-bar/layout/shoppable-products-overlay.js +87 -0
  124. package/src/components/shoppable-bar/panel/shoppable-panel-item.js +105 -0
  125. package/src/components/shoppable-bar/panel/shoppable-panel.js +172 -0
  126. package/src/components/shoppable-bar/shoppable-post-widget.js +110 -0
  127. package/src/components/shoppable-bar/shoppable-widget.const.js +52 -0
  128. package/src/components/shoppable-bar/shoppable-widget.js +111 -0
  129. package/src/components/shoppable-bar/shoppable-widget.scss +359 -0
  130. package/src/components/themeButton/themedButton.const.js +3 -0
  131. package/src/components/themeButton/themedButton.js +25 -0
  132. package/src/components/title-bar/title-bar.js +79 -0
  133. package/src/config/defaults.js +25 -0
  134. package/src/extended-events.js +228 -0
  135. package/src/index.js +18 -0
  136. package/src/mixins/eventable.js +54 -0
  137. package/src/mixins/playlistable.js +106 -0
  138. package/src/plugins/analytics/index.js +245 -0
  139. package/src/plugins/autoplay-on-scroll/index.js +86 -0
  140. package/src/plugins/cloudinary/common.js +216 -0
  141. package/src/plugins/cloudinary/event-handler-registry.js +46 -0
  142. package/src/plugins/cloudinary/index.js +345 -0
  143. package/src/plugins/cloudinary/models/audio-source/audio-source.const.js +11 -0
  144. package/src/plugins/cloudinary/models/audio-source/audio-source.js +82 -0
  145. package/src/plugins/cloudinary/models/base-source.js +107 -0
  146. package/src/plugins/cloudinary/models/image-source.js +26 -0
  147. package/src/plugins/cloudinary/models/video-source/video-source.const.js +32 -0
  148. package/src/plugins/cloudinary/models/video-source/video-source.js +239 -0
  149. package/src/plugins/cloudinary/models/video-source/video-source.utils.js +57 -0
  150. package/src/plugins/colors/index.js +303 -0
  151. package/src/plugins/context-menu/components/context-menu-item.js +12 -0
  152. package/src/plugins/context-menu/components/context-menu.js +63 -0
  153. package/src/plugins/context-menu/context-menu.scss +30 -0
  154. package/src/plugins/context-menu/contextMenuContent.js +53 -0
  155. package/src/plugins/context-menu/index.js +134 -0
  156. package/src/plugins/dash/index.js +26 -0
  157. package/src/plugins/dash/setup-audio-tracks.js +112 -0
  158. package/src/plugins/dash/setup-text-tracks.js +195 -0
  159. package/src/plugins/dash/videojs-dash.js +372 -0
  160. package/src/plugins/floating-player/floating-player.scss +74 -0
  161. package/src/plugins/floating-player/index.js +129 -0
  162. package/src/plugins/ima/index.js +1775 -0
  163. package/src/plugins/index.js +31 -0
  164. package/src/plugins/interactive-plugin/index.js +10 -0
  165. package/src/plugins/videojs-http-source-selector/components/SourceMenuButton.js +98 -0
  166. package/src/plugins/videojs-http-source-selector/components/SourceMenuItem.js +52 -0
  167. package/src/plugins/videojs-http-source-selector/plugin.js +82 -0
  168. package/src/plugins/videojs-http-source-selector/plugin.scss +9 -0
  169. package/src/plugins/vtt-thumbnails/index.js +526 -0
  170. package/src/plugins/vtt-thumbnails/vtt-thumbnails.scss +29 -0
  171. package/src/utils/api.js +32 -0
  172. package/src/utils/apply-with-props.js +32 -0
  173. package/src/utils/array.js +22 -0
  174. package/src/utils/assign.js +27 -0
  175. package/src/utils/attributes-normalizer.js +72 -0
  176. package/src/utils/cloudinary.js +165 -0
  177. package/src/utils/css-prefix.js +43 -0
  178. package/src/utils/dom.js +74 -0
  179. package/src/utils/find.js +28 -0
  180. package/src/utils/fontFace.js +25 -0
  181. package/src/utils/groupBy.js +12 -0
  182. package/src/utils/index.js +29 -0
  183. package/src/utils/matches.js +11 -0
  184. package/src/utils/mixin.js +5 -0
  185. package/src/utils/object.js +26 -0
  186. package/src/utils/playButton.js +9 -0
  187. package/src/utils/positioning.js +78 -0
  188. package/src/utils/querystring.js +12 -0
  189. package/src/utils/slicing.js +21 -0
  190. package/src/utils/string.js +15 -0
  191. package/src/utils/throttle.js +30 -0
  192. package/src/utils/time.js +77 -0
  193. package/src/utils/type-inference.js +35 -0
  194. package/src/validators/validators-functions.js +48 -0
  195. package/src/validators/validators-types.js +78 -0
  196. package/src/validators/validators.js +110 -0
  197. package/src/video-player.const.js +68 -0
  198. package/src/video-player.js +761 -0
  199. package/src/video-player.utils.js +123 -0
  200. package/test/adaptive-streaming.test.js +38 -0
  201. package/test/ads.test.js +35 -0
  202. package/test/analytics.test.js +111 -0
  203. package/test/api.test.js +111 -0
  204. package/test/autoplay.scroll.test.js +23 -0
  205. package/test/basic-ui.test.js +59 -0
  206. package/test/colors.test.js +58 -0
  207. package/test/components.test.js +21 -0
  208. package/test/custom-error.test.js +24 -0
  209. package/test/fluid.test.js +36 -0
  210. package/test/isValidConfig.test.js +224 -0
  211. package/test/mocks/cloudinary-core-mock.js +0 -0
  212. package/test/mocks/styleMock.js +1 -0
  213. package/test/multiplayer.test.js +25 -0
  214. package/test/playlist.test.js +60 -0
  215. package/test/puppeteer/vp-env.js +19 -0
  216. package/test/recommendations.test.js +38 -0
  217. package/test/title-bar.test.js +28 -0
  218. package/test/ui-conf.test.js +49 -0
  219. package/test/unit/cloudinaryConfig.test.js +22 -0
  220. package/test/unit/cloudinaryUtils.test.js +53 -0
  221. package/test/unit/utils.test.js +27 -0
  222. package/test/unit/videoSource.test.js +454 -0
  223. package/tsconfig.json +15 -0
  224. package/types/video-player-tests.js +12 -0
  225. package/types/video-player-tests.ts +31 -0
  226. 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
+ }