@mjhls/mjh-framework 1.0.375 → 1.0.377

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.375
2
+ # mjh-framework v. 1.0.377
3
3
 
4
4
 
5
5
  > Foundation Framework
package/dist/cjs/index.js CHANGED
@@ -8930,7 +8930,7 @@ var Video = function Video(_ref) {
8930
8930
  var queue = Math.floor(duration / 10);
8931
8931
  var segment = Math.floor(current / queue);
8932
8932
 
8933
- AdSlot.Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8933
+ AdSlot.Beam.report_beam_video('Ready', main.main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8934
8934
  });
8935
8935
 
8936
8936
  // play
@@ -8939,7 +8939,7 @@ var Video = function Video(_ref) {
8939
8939
  var current = player.currentTime();
8940
8940
  var queue = Math.floor(duration / 10);
8941
8941
  var segment = Math.floor(current / queue);
8942
- AdSlot.Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8942
+ AdSlot.Beam.report_beam_video('Play', main.main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8943
8943
  });
8944
8944
 
8945
8945
  // pause
@@ -8948,7 +8948,7 @@ var Video = function Video(_ref) {
8948
8948
  var current = player.currentTime();
8949
8949
  var queue = Math.floor(duration / 10);
8950
8950
  var segment = Math.floor(current / queue);
8951
- AdSlot.Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8951
+ AdSlot.Beam.report_beam_video('Pause', main.main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8952
8952
  });
8953
8953
 
8954
8954
  // end
@@ -8957,16 +8957,17 @@ var Video = function Video(_ref) {
8957
8957
  var current = player.currentTime();
8958
8958
  var queue = Math.floor(duration / 10);
8959
8959
  var segment = Math.floor(current / queue);
8960
- AdSlot.Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8960
+ AdSlot.Beam.report_beam_video('End', main.main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8961
8961
  });
8962
8962
 
8963
+ var queueProgress = [];
8963
8964
  player.on('timeupdate', function (evt) {
8964
8965
  var duration = player.mediainfo.duration;
8965
8966
  var current = player.currentTime();
8966
8967
  var queue = Math.floor(duration / 10);
8967
8968
  var segment = Math.floor(current / queue);
8968
8969
  if (!queueProgress.includes(segment)) {
8969
- AdSlot.Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8970
+ AdSlot.Beam.report_beam_video('Segment', main.main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8970
8971
  queueProgress.push(segment);
8971
8972
  }
8972
8973
  });
@@ -8977,7 +8978,7 @@ var Video = function Video(_ref) {
8977
8978
  var id = player.ads.ad.id;
8978
8979
  var adType = 'Bright Cove: ' + player.ads.ad.type;
8979
8980
 
8980
- AdSlot.Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id);
8981
+ AdSlot.Beam.report_beam_ad('AD Started', main.main_16, '', '', '', '', '', adType, duration, id);
8981
8982
  });
8982
8983
 
8983
8984
  // ad ended
@@ -8985,7 +8986,7 @@ var Video = function Video(_ref) {
8985
8986
  var duration = player.ads.ad.duration;
8986
8987
  var id = player.ads.ad.id;
8987
8988
  var adType = 'Bright Cove: ' + player.ads.ad.type;
8988
- AdSlot.Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id);
8989
+ AdSlot.Beam.report_beam_ad('AD Ended', main.main_16, '', '', '', '', '', adType, duration, id);
8989
8990
  });
8990
8991
  };
8991
8992
 
package/dist/esm/index.js CHANGED
@@ -8927,7 +8927,7 @@ var Video = function Video(_ref) {
8927
8927
  var queue = Math.floor(duration / 10);
8928
8928
  var segment = Math.floor(current / queue);
8929
8929
 
8930
- Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8930
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8931
8931
  });
8932
8932
 
8933
8933
  // play
@@ -8936,7 +8936,7 @@ var Video = function Video(_ref) {
8936
8936
  var current = player.currentTime();
8937
8937
  var queue = Math.floor(duration / 10);
8938
8938
  var segment = Math.floor(current / queue);
8939
- Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8939
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8940
8940
  });
8941
8941
 
8942
8942
  // pause
@@ -8945,7 +8945,7 @@ var Video = function Video(_ref) {
8945
8945
  var current = player.currentTime();
8946
8946
  var queue = Math.floor(duration / 10);
8947
8947
  var segment = Math.floor(current / queue);
8948
- Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8948
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8949
8949
  });
8950
8950
 
8951
8951
  // end
@@ -8954,16 +8954,17 @@ var Video = function Video(_ref) {
8954
8954
  var current = player.currentTime();
8955
8955
  var queue = Math.floor(duration / 10);
8956
8956
  var segment = Math.floor(current / queue);
8957
- Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8957
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8958
8958
  });
8959
8959
 
8960
+ var queueProgress = [];
8960
8961
  player.on('timeupdate', function (evt) {
8961
8962
  var duration = player.mediainfo.duration;
8962
8963
  var current = player.currentTime();
8963
8964
  var queue = Math.floor(duration / 10);
8964
8965
  var segment = Math.floor(current / queue);
8965
8966
  if (!queueProgress.includes(segment)) {
8966
- Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8967
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8967
8968
  queueProgress.push(segment);
8968
8969
  }
8969
8970
  });
@@ -8974,7 +8975,7 @@ var Video = function Video(_ref) {
8974
8975
  var id = player.ads.ad.id;
8975
8976
  var adType = 'Bright Cove: ' + player.ads.ad.type;
8976
8977
 
8977
- Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id);
8978
+ Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
8978
8979
  });
8979
8980
 
8980
8981
  // ad ended
@@ -8982,7 +8983,7 @@ var Video = function Video(_ref) {
8982
8983
  var duration = player.ads.ad.duration;
8983
8984
  var id = player.ads.ad.id;
8984
8985
  var adType = 'Bright Cove: ' + player.ads.ad.type;
8985
- Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id);
8986
+ Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
8986
8987
  });
8987
8988
  };
8988
8989
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.375",
3
+ "version": "1.0.377",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",