@mediakind/mkplayer 1.0.18 → 1.0.20

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/index.html CHANGED
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang='en'>
3
3
  <head>
4
- <title>MKPlayer 1.0.18</title>
4
+ <title>MKPlayer 1.0.20</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'>
@@ -318,8 +318,10 @@
318
318
  });
319
319
 
320
320
  let liveSource = {
321
- primaryUrl: "https://live-mkmsctacdn.azureedge.net/cmaftkn/CES-Hero/index.m3u8",
321
+ primaryUrl: "https://cdn-0573.aas.mediakind.com/cmaftkn/CES-Hero/index.m3u8",
322
+ secondaryUrl:"https://cdn-0573.aas.mediakind.com/cmaftkn/CES-Hero/index.m3u8",
322
323
  cdnFailoverPercent: 10,
324
+ subtitleTracks: [],
323
325
  assetIdentifier: 'HLS Live',
324
326
  labelConfig: {
325
327
  audio: {'en': 'English', 'mis': 'Audio Descriptions'},
package/multi-camera.html CHANGED
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang='en'>
3
3
  <head>
4
- <title>MKPlayer 1.0.17</title>
4
+ <title>MKPlayer 1.0.20</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'>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediakind/mkplayer",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "MediaKind Web Player",
5
5
  "repository": {
6
6
  "type": "git",
package/src/MKPlayer.ts CHANGED
@@ -181,7 +181,7 @@ export class MKPlayer {
181
181
  };
182
182
  }
183
183
 
184
- if (stream.subtitleTracks && !stream.subtitleTracks[0].url.includes('.m3u8')) {
184
+ if (stream.subtitleTracks && stream.subtitleTracks[0] && stream.subtitleTracks[0].url && !stream.subtitleTracks[0].url.includes('.m3u8')) {
185
185
  playerSource.subtitleTracks = stream.subtitleTracks.map((track) => <SubtitleTrack>{
186
186
  lang: track.language,
187
187
  url: track.url,
@@ -292,7 +292,7 @@ export class MKPlayer {
292
292
  * returns the current player version
293
293
  */
294
294
  version(): string {
295
- return '1.0.18';
295
+ return '1.0.20';
296
296
  }
297
297
 
298
298
  private selectUrl(): string {
@@ -373,7 +373,7 @@ export class MKPlayer {
373
373
 
374
374
  private manipulateMasterPlaylist(response: string): string {
375
375
  let body = (response as string);
376
- if (this.stream.subtitleTracks && this.stream.subtitleTracks[0].url.includes('.m3u8')) {
376
+ if (this.stream.subtitleTracks && this.stream.subtitleTracks[0] && this.stream.subtitleTracks[0].url && this.stream.subtitleTracks[0].url.includes('.m3u8')) {
377
377
  this.stream.subtitleTracks.forEach((track) => {
378
378
  body = body.concat('\n#EXT-X-MEDIA:TYPE=SUBTITLES,'
379
379
  + 'NAME="' + track.language + '",'