@mjhls/mjh-framework 1.0.344 → 1.0.345

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.344
2
+ # mjh-framework v. 1.0.345
3
3
 
4
4
 
5
5
  > Foundation Framework
package/dist/cjs/index.js CHANGED
@@ -1853,7 +1853,8 @@ var EventsDeck = function EventsDeck(_ref) {
1853
1853
  headers: {
1854
1854
  Accept: 'application/json',
1855
1855
  'x-api-key': clientId,
1856
- Authorization: 'Bearer ' + accessToken
1856
+ Authorization: 'Bearer ' + accessToken,
1857
+ 'Content-type': 'application/json'
1857
1858
  },
1858
1859
  body: AdSlot._JSON$stringify({ filter: filter }),
1859
1860
  method: 'POST'
@@ -2022,7 +2023,6 @@ var EventsDeck = function EventsDeck(_ref) {
2022
2023
  Row,
2023
2024
  null,
2024
2025
  data && data.map(function (row, index) {
2025
-
2026
2026
  var speakerInfo = [];
2027
2027
  if (row.customFields) {
2028
2028
  speakerInfo = row.customFields.filter(function (x) {
@@ -13132,6 +13132,15 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13132
13132
  var queue = Math.floor(duration / 10);
13133
13133
  var segment = Math.floor(current / queue);
13134
13134
  AdSlot.Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
13135
+
13136
+ //autoplay
13137
+
13138
+ //Small pause before starting next video
13139
+ setTimeout(function () {
13140
+ //Youtube API to start video playing automatically
13141
+ var id = smoothscroll.getYoutubeId(vidUrl);
13142
+ event.target.loadVideoById(id);
13143
+ }, 1500);
13135
13144
  };
13136
13145
 
13137
13146
  // Handle video end
package/dist/esm/index.js CHANGED
@@ -1850,7 +1850,8 @@ var EventsDeck = function EventsDeck(_ref) {
1850
1850
  headers: {
1851
1851
  Accept: 'application/json',
1852
1852
  'x-api-key': clientId,
1853
- Authorization: 'Bearer ' + accessToken
1853
+ Authorization: 'Bearer ' + accessToken,
1854
+ 'Content-type': 'application/json'
1854
1855
  },
1855
1856
  body: _JSON$stringify({ filter: filter }),
1856
1857
  method: 'POST'
@@ -2019,7 +2020,6 @@ var EventsDeck = function EventsDeck(_ref) {
2019
2020
  Row,
2020
2021
  null,
2021
2022
  data && data.map(function (row, index) {
2022
-
2023
2023
  var speakerInfo = [];
2024
2024
  if (row.customFields) {
2025
2025
  speakerInfo = row.customFields.filter(function (x) {
@@ -13129,6 +13129,15 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13129
13129
  var queue = Math.floor(duration / 10);
13130
13130
  var segment = Math.floor(current / queue);
13131
13131
  Beam.report_beam_video('Ready', main_16, duration, current, segment);
13132
+
13133
+ //autoplay
13134
+
13135
+ //Small pause before starting next video
13136
+ setTimeout(function () {
13137
+ //Youtube API to start video playing automatically
13138
+ var id = getYoutubeId(vidUrl);
13139
+ event.target.loadVideoById(id);
13140
+ }, 1500);
13132
13141
  };
13133
13142
 
13134
13143
  // Handle video end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.344",
3
+ "version": "1.0.345",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",