@mediakind/mkplayer 1.0.8 → 1.0.10

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.
@@ -122,7 +122,7 @@
122
122
  <li class="tsd-description">
123
123
  <aside class="tsd-sources">
124
124
  <ul>
125
- <li>Defined in MKPlayer.ts:16</li>
125
+ <li>Defined in MKPlayer.ts:17</li>
126
126
  </ul>
127
127
  </aside>
128
128
  <div class="tsd-comment tsd-typography">
@@ -166,7 +166,7 @@
166
166
  <li class="tsd-description">
167
167
  <aside class="tsd-sources">
168
168
  <ul>
169
- <li>Defined in MKPlayer.ts:90</li>
169
+ <li>Defined in MKPlayer.ts:93</li>
170
170
  </ul>
171
171
  </aside>
172
172
  <div class="tsd-comment tsd-typography">
@@ -188,7 +188,7 @@
188
188
  <li class="tsd-description">
189
189
  <aside class="tsd-sources">
190
190
  <ul>
191
- <li>Defined in MKPlayer.ts:183</li>
191
+ <li>Defined in MKPlayer.ts:186</li>
192
192
  </ul>
193
193
  </aside>
194
194
  <div class="tsd-comment tsd-typography">
@@ -210,7 +210,7 @@
210
210
  <li class="tsd-description">
211
211
  <aside class="tsd-sources">
212
212
  <ul>
213
- <li>Defined in MKPlayer.ts:174</li>
213
+ <li>Defined in MKPlayer.ts:177</li>
214
214
  </ul>
215
215
  </aside>
216
216
  <div class="tsd-comment tsd-typography">
@@ -232,7 +232,7 @@
232
232
  <li class="tsd-description">
233
233
  <aside class="tsd-sources">
234
234
  <ul>
235
- <li>Defined in MKPlayer.ts:99</li>
235
+ <li>Defined in MKPlayer.ts:102</li>
236
236
  </ul>
237
237
  </aside>
238
238
  <div class="tsd-comment tsd-typography">
@@ -263,7 +263,7 @@
263
263
  <li class="tsd-description">
264
264
  <aside class="tsd-sources">
265
265
  <ul>
266
- <li>Defined in MKPlayer.ts:193</li>
266
+ <li>Defined in MKPlayer.ts:196</li>
267
267
  </ul>
268
268
  </aside>
269
269
  <div class="tsd-comment tsd-typography">
@@ -285,7 +285,7 @@
285
285
  <li class="tsd-description">
286
286
  <aside class="tsd-sources">
287
287
  <ul>
288
- <li>Defined in MKPlayer.ts:146</li>
288
+ <li>Defined in MKPlayer.ts:149</li>
289
289
  </ul>
290
290
  </aside>
291
291
  <div class="tsd-comment tsd-typography">
@@ -318,7 +318,7 @@
318
318
  <li class="tsd-description">
319
319
  <aside class="tsd-sources">
320
320
  <ul>
321
- <li>Defined in MKPlayer.ts:158</li>
321
+ <li>Defined in MKPlayer.ts:161</li>
322
322
  </ul>
323
323
  </aside>
324
324
  <div class="tsd-comment tsd-typography">
@@ -351,7 +351,7 @@
351
351
  <li class="tsd-description">
352
352
  <aside class="tsd-sources">
353
353
  <ul>
354
- <li>Defined in MKPlayer.ts:83</li>
354
+ <li>Defined in MKPlayer.ts:86</li>
355
355
  </ul>
356
356
  </aside>
357
357
  <div class="tsd-comment tsd-typography">
@@ -373,7 +373,7 @@
373
373
  <li class="tsd-description">
374
374
  <aside class="tsd-sources">
375
375
  <ul>
376
- <li>Defined in MKPlayer.ts:76</li>
376
+ <li>Defined in MKPlayer.ts:79</li>
377
377
  </ul>
378
378
  </aside>
379
379
  <div class="tsd-comment tsd-typography">
@@ -395,7 +395,7 @@
395
395
  <li class="tsd-description">
396
396
  <aside class="tsd-sources">
397
397
  <ul>
398
- <li>Defined in MKPlayer.ts:210</li>
398
+ <li>Defined in MKPlayer.ts:213</li>
399
399
  </ul>
400
400
  </aside>
401
401
  <div class="tsd-comment tsd-typography">
@@ -426,7 +426,7 @@
426
426
  <li class="tsd-description">
427
427
  <aside class="tsd-sources">
428
428
  <ul>
429
- <li>Defined in MKPlayer.ts:167</li>
429
+ <li>Defined in MKPlayer.ts:170</li>
430
430
  </ul>
431
431
  </aside>
432
432
  <div class="tsd-comment tsd-typography">
@@ -448,7 +448,7 @@
448
448
  <li class="tsd-description">
449
449
  <aside class="tsd-sources">
450
450
  <ul>
451
- <li>Defined in MKPlayer.ts:200</li>
451
+ <li>Defined in MKPlayer.ts:203</li>
452
452
  </ul>
453
453
  </aside>
454
454
  <div class="tsd-comment tsd-typography">
@@ -470,7 +470,7 @@
470
470
  <li class="tsd-description">
471
471
  <aside class="tsd-sources">
472
472
  <ul>
473
- <li>Defined in MKPlayer.ts:217</li>
473
+ <li>Defined in MKPlayer.ts:220</li>
474
474
  </ul>
475
475
  </aside>
476
476
  <div class="tsd-comment tsd-typography">
package/doc/index.html CHANGED
@@ -72,7 +72,7 @@
72
72
  </a>
73
73
  <p>Include the <code>mkplayer.js</code> and <code>mkplayer-ui.min.css</code> file on your page </p>
74
74
  <pre><code class="language-javascript">&lt;script type=<span class="hljs-string">&#x27;text/javascript&#x27;</span> src=<span class="hljs-string">&#x27;mkplayer.js&#x27;</span>&gt;&lt;/script&gt;
75
- <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">&#x27;stylesheet&#x27;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&#x27;./mkplayer-ui.min.css&#x27;</span>&gt;</span></span></code></pre>
75
+ <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">&#x27;stylesheet&#x27;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&#x27;../mkplayer-react/src/mkplayer-ui.min.css&#x27;</span>&gt;</span></span></code></pre>
76
76
  <p>Add a <code>&lt;div&gt;</code> for the player </p>
77
77
  <pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&#x27;player&#x27;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></pre>
78
78
  <p>Initialize the video player</p>
package/index.html CHANGED
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang='en'>
3
3
  <head>
4
- <title>MKPlayer 1.0.8</title>
4
+ <title>MKPlayer 1.0.10</title>
5
5
  <meta charset='UTF-8'/>
6
6
  <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
7
7
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
@@ -15,7 +15,7 @@
15
15
  <script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js' integrity='sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl'
16
16
  crossorigin='anonymous'></script>
17
17
  <script type='text/javascript' src='./dist/mkplayer.js'></script>
18
- <link rel='stylesheet' href='./mkplayer-ui.min.css'>
18
+ <link rel='stylesheet' href='mkplayer-ui.min.css'>
19
19
  <style>
20
20
  .player-wrapper {
21
21
  margin: 20px auto;
@@ -76,7 +76,7 @@
76
76
  </div>
77
77
  <div class='content'>
78
78
  <div class='player-wrapper'>
79
- <div id='player'></div>
79
+ <div id='testPlayer'></div>
80
80
  </div>
81
81
  </div>
82
82
  <div class='row'>
@@ -272,7 +272,6 @@
272
272
  });
273
273
 
274
274
  unloadStream.on('click', function() {
275
-
276
275
  $($('.btn-group-toggle .active')[0]).removeClass('active');
277
276
 
278
277
  // remove active button of group
@@ -359,7 +358,7 @@
359
358
  smallScreen: false,
360
359
  };
361
360
 
362
- let playerContainer = document.getElementById('player');
361
+ let playerContainer = document.getElementById('testPlayer');
363
362
  mkPlayer = new mkplayer.MKPlayer(playerContainer, mkPlayerConfiguration);
364
363
 
365
364
  mkPlayer.on('error', function(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediakind/mkplayer",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "MediaKind Web Player",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "test": "jest",
24
24
  "testWithCoverage": "jest --coverage",
25
25
  "build:docs": "typedoc",
26
- "deploy": "npm run build && npm run build:docs && azcopy copy --recursive dist 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D' && azcopy copy --recursive doc 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D' && azcopy copy index.html 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D' && azcopy copy mkplayer-ui.min.css 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D' && azcopy copy 'index.html' 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D'"
26
+ "deploy": "npm run build && npm run build:docs && azcopy copy --recursive dist 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D' && azcopy copy --recursive doc 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D' && azcopy copy index.html 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D' && azcopy copy ../mkplayer-react/src/mkplayer-ui.min.css 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D' && azcopy copy 'index.html' 'https://mkplayer.blob.core.windows.net/$web?sp=racwdl&st=2020-10-23T03:41:09Z&se=2021-10-24T03:41:00Z&sv=2019-12-12&sr=c&sig=bSBP0oUHI6KzTwLwk195Jnrdnqh8GXEjqTAnAUmf4xA%3D'"
27
27
  },
28
28
  "author": "MediaKind",
29
29
  "license": "ISC",
package/src/MKPlayer.ts CHANGED
@@ -56,7 +56,7 @@ export class MKPlayer {
56
56
  },
57
57
  };
58
58
 
59
- let player = new Player(document.getElementById('player'), playerConfig);
59
+ let player = new Player(containerElement, playerConfig);
60
60
 
61
61
  if (mkPlayerConfiguration.smallScreen) {
62
62
  UIFactory.buildDefaultSmallScreenUI(player);
@@ -218,7 +218,7 @@ export class MKPlayer {
218
218
  * returns the current player version
219
219
  */
220
220
  version(): string {
221
- return '1.0.8';
221
+ return '1.0.10';
222
222
  }
223
223
 
224
224
  private static selectUrl(source: MKStream): string {
package/src/index.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export { MKPlayer } from './MKPlayer';
2
2
  export { MKPlayerConfiguration } from './MKPlayerConfiguration';
3
3
  export { MKStream } from './MKStream';
4
- export { MKEvent } from './events/MKEvent';
4
+ export { MKEvent } from './events/MKEvent';
5
+ export { SubtitleTrack } from './SubtitleTrack';
6
+ export { BufferLevel } from './BufferLevel';