@pixwel/pixwel-sdk 2.1.15 → 2.1.16

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.
@@ -255,6 +255,12 @@ var Ingest = function (_Model) {
255
255
  return part.toUpperCase();
256
256
  });
257
257
 
258
+ // if Aspect and Standard are available, then set the encodeName accoring to naming standard
259
+ if (mediaType == 'video' && tags.Aspect && tags.Standard) {
260
+ var encodeName = tags.Standard.toUpperCase() + "-" + tags.Aspect.replace(':', 'X');
261
+ parts = parts.push("" + encodeName);
262
+ }
263
+
258
264
  var matchedSet = matchSet(allTags, options.tags);
259
265
  var requiredInfo = tags.Resolution && tags["Frame Mode"] && tags.Framerate;
260
266
 
@@ -262,9 +268,6 @@ var Ingest = function (_Model) {
262
268
  parts = parts.push(matchedSet);
263
269
  } else if (mediaType == "video" && tags.Resolution && !requiredInfo) {
264
270
  parts = parts.push(tags.Resolution.replace(/\d+x/, ""));
265
- } else if (mediaType == "video" && tags.Aspect && tags.Standard) {
266
- var encodeName = tags.Standard.toUpperCase() + "-" + tags.Aspect.replace(':', 'X');
267
- parts = parts.push("" + encodeName);
268
271
  } else if (mediaType == "image" && tags.Resolution) {
269
272
  parts = parts.push(tags.Resolution);
270
273
  }
package/npm-update.sh CHANGED
@@ -4,4 +4,5 @@ npm run build
4
4
  npm publish
5
5
 
6
6
  ( cd ../slurpee2 && npm update )
7
+ ( cd ../slurpee3/createFile && npm update )
7
8
  ( cd ../ui && npm update )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixwel/pixwel-sdk",
3
3
  "description": "",
4
- "version": "2.1.15",
4
+ "version": "2.1.16",
5
5
  "author": "Pixwel",
6
6
  "license": "UNLICENSED",
7
7
  "main": "./dist/index.js",
package/src/Ingest.js CHANGED
@@ -226,6 +226,12 @@ export default class Ingest extends Model {
226
226
  .filter()
227
227
  .map(part => part.toUpperCase());
228
228
 
229
+ // if Aspect and Standard are available, then set the encodeName accoring to naming standard
230
+ if (mediaType == 'video' && tags.Aspect && tags.Standard) {
231
+ let encodeName = `${tags.Standard.toUpperCase()}-${tags.Aspect.replace(':', 'X')}`;
232
+ parts = parts.push(`${encodeName}`);
233
+ }
234
+
229
235
  let matchedSet = matchSet(allTags, options.tags);
230
236
  let requiredInfo = tags.Resolution && tags["Frame Mode"] && tags.Framerate;
231
237
 
@@ -233,9 +239,6 @@ export default class Ingest extends Model {
233
239
  parts = parts.push(matchedSet);
234
240
  } else if (mediaType == "video" && tags.Resolution && !requiredInfo) {
235
241
  parts = parts.push(tags.Resolution.replace(/\d+x/, ""));
236
- } else if (mediaType == "video" && tags.Aspect && tags.Standard) {
237
- let encodeName = `${tags.Standard.toUpperCase()}-${tags.Aspect.replace(':', 'X')}`;
238
- parts = parts.push(`${encodeName}`);
239
242
  } else if (mediaType == "image" && tags.Resolution) {
240
243
  parts = parts.push(tags.Resolution);
241
244
  }