@pixwel/pixwel-sdk 1.1.4 → 1.1.5
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/coverage/clover.xml +233 -234
- package/coverage/coverage-final.json +5 -5
- package/coverage/lcov-report/Ass.js.html +212 -212
- package/coverage/lcov-report/Asset.js.html +1 -1
- package/coverage/lcov-report/Filename.js.html +1 -1
- package/coverage/lcov-report/Ingest.js.html +66 -42
- package/coverage/lcov-report/IngestFile.js.html +1 -1
- package/coverage/lcov-report/IngestFileDrop.js.html +1 -1
- package/coverage/lcov-report/Order.js.html +1 -1
- package/coverage/lcov-report/Srt.js.html +102 -102
- package/coverage/lcov-report/Sub.js.html +43 -43
- package/coverage/lcov-report/TimeFormat.js.html +63 -63
- package/coverage/lcov-report/index.html +57 -57
- package/coverage/lcov.info +437 -434
- package/dist/src/Ingest.js +8 -0
- package/package.json +1 -1
- package/src/Ingest.js +8 -0
package/dist/src/Ingest.js
CHANGED
|
@@ -75,6 +75,10 @@ var Ingest = function () {
|
|
|
75
75
|
Scan_type: ""
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
var general = _lodash2.default.find(info["File"]["track"], {
|
|
79
|
+
_type: 'General'
|
|
80
|
+
});
|
|
81
|
+
|
|
78
82
|
var media = _lodash2.default.find(info["File"]["track"], {
|
|
79
83
|
_type: mediaType
|
|
80
84
|
});
|
|
@@ -133,6 +137,10 @@ var Ingest = function () {
|
|
|
133
137
|
tags.Usage = "broadcast";
|
|
134
138
|
}
|
|
135
139
|
|
|
140
|
+
if (general && general['Format'] == 'MXF') {
|
|
141
|
+
tags.Usage = 'broadcast';
|
|
142
|
+
}
|
|
143
|
+
|
|
136
144
|
tags.Aspect = media["Display_aspect_ratio"] || "";
|
|
137
145
|
tags["Frame Mode"] = media["Scan_type"].toLowerCase();
|
|
138
146
|
|
package/package.json
CHANGED
package/src/Ingest.js
CHANGED
|
@@ -54,6 +54,10 @@ export default class Ingest {
|
|
|
54
54
|
Scan_type: ""
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
+
let general = _.find(info["File"]["track"], {
|
|
58
|
+
_type: 'General'
|
|
59
|
+
});
|
|
60
|
+
|
|
57
61
|
let media = _.find(info["File"]["track"], {
|
|
58
62
|
_type: mediaType
|
|
59
63
|
});
|
|
@@ -112,6 +116,10 @@ export default class Ingest {
|
|
|
112
116
|
tags.Usage = "broadcast";
|
|
113
117
|
}
|
|
114
118
|
|
|
119
|
+
if (general && general['Format'] == 'MXF') {
|
|
120
|
+
tags.Usage = 'broadcast';
|
|
121
|
+
}
|
|
122
|
+
|
|
115
123
|
tags.Aspect = media["Display_aspect_ratio"] || "";
|
|
116
124
|
tags["Frame Mode"] = media["Scan_type"].toLowerCase();
|
|
117
125
|
|