@bitmovin/api-sdk 1.240.0 → 1.242.0

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.
@@ -240,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
240
240
  var headers = {
241
241
  'X-Api-Key': apiKey,
242
242
  'X-Api-Client': 'bitmovin-api-sdk-javascript',
243
- 'X-Api-Client-Version': '1.240.0',
243
+ 'X-Api-Client-Version': '1.242.0',
244
244
  'Content-Type': 'application/json'
245
245
  };
246
246
  if (tenantOrgId) {
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum AdMarkersSource {
6
+ MANIFEST = "MANIFEST",
7
+ SEGMENTS = "SEGMENTS"
8
+ }
9
+ export default AdMarkersSource;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdMarkersSource = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var AdMarkersSource;
9
+ (function (AdMarkersSource) {
10
+ AdMarkersSource["MANIFEST"] = "MANIFEST";
11
+ AdMarkersSource["SEGMENTS"] = "SEGMENTS";
12
+ })(AdMarkersSource || (exports.AdMarkersSource = AdMarkersSource = {}));
13
+ exports.default = AdMarkersSource;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @export
3
+ * @class AdPosition
4
+ */
5
+ export declare class AdPosition {
6
+ /**
7
+ * @type {number}
8
+ * @memberof AdPosition
9
+ */
10
+ position?: number;
11
+ constructor(obj?: Partial<AdPosition>);
12
+ }
13
+ export default AdPosition;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdPosition = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ /**
6
+ * @export
7
+ * @class AdPosition
8
+ */
9
+ var AdPosition = /** @class */ (function () {
10
+ function AdPosition(obj) {
11
+ if (!obj) {
12
+ return;
13
+ }
14
+ this.position = (0, Mapper_1.map)(obj.position);
15
+ }
16
+ return AdPosition;
17
+ }());
18
+ exports.AdPosition = AdPosition;
19
+ exports.default = AdPosition;
@@ -19,7 +19,7 @@ export declare class Fmp4Muxing extends Muxing {
19
19
  */
20
20
  segmentLength?: number;
21
21
  /**
22
- * Prevents creation of very short final segments (in seconds). If the last segment is shorter than minimumSegmentLength, it will be merged with the previous one, creating a segment of a size up to segmentLength + minimumSegmentLength.
22
+ * Prevents creation of very short segments (in seconds). If the last segment is shorter than minimumSegmentLength or there is a custom keyframe too close to a segment boundary, short segments will be omitted by removing segment boundaries, resulting in a segment of a size up to segmentLength + minimumSegmentLength.
23
23
  * @type {number}
24
24
  * @memberof Fmp4Muxing
25
25
  */
@@ -1,3 +1,4 @@
1
+ import AdMarkersSource from './AdMarkersSource';
1
2
  import Input from './Input';
2
3
  import InputType from './InputType';
3
4
  /**
@@ -17,6 +18,12 @@ export declare class HlsInput extends Input {
17
18
  * @memberof HlsInput
18
19
  */
19
20
  url?: string;
21
+ /**
22
+ * Specifies the source for ad markers messages: - MANIFEST: Ad marker messages are read from tags in the HLS manifest - SEGMENTS: Ad marker messages are read from the content segments from the data stream
23
+ * @type {AdMarkersSource}
24
+ * @memberof HlsInput
25
+ */
26
+ adMarkersSource?: AdMarkersSource;
20
27
  constructor(obj?: Partial<HlsInput>);
21
28
  }
22
29
  export default HlsInput;
@@ -37,6 +37,7 @@ var HlsInput = /** @class */ (function (_super) {
37
37
  return _this;
38
38
  }
39
39
  _this.url = (0, Mapper_1.map)(obj.url);
40
+ _this.adMarkersSource = (0, Mapper_1.map)(obj.adMarkersSource);
40
41
  return _this;
41
42
  }
42
43
  return HlsInput;
@@ -25,6 +25,12 @@ export declare class Mp4Muxing extends Muxing {
25
25
  * @memberof Mp4Muxing
26
26
  */
27
27
  fragmentDuration?: number;
28
+ /**
29
+ * Prevents creation of very short fragments (in seconds). If the last fragment is shorter than minimumFragmentDuration or there is a custom keyframe too close to a fragment boundary, short fragments will be omitted by removing fragment boundaries, resulting in a fragment of a size up to fragmentDuration + minimumFragmentDuration.
30
+ * @type {number}
31
+ * @memberof Mp4Muxing
32
+ */
33
+ minimumFragmentDuration?: number;
28
34
  /**
29
35
  * @type {FragmentedMp4MuxingManifestType}
30
36
  * @memberof Mp4Muxing
@@ -39,6 +39,7 @@ var Mp4Muxing = /** @class */ (function (_super) {
39
39
  }
40
40
  _this.filename = (0, Mapper_1.map)(obj.filename);
41
41
  _this.fragmentDuration = (0, Mapper_1.map)(obj.fragmentDuration);
42
+ _this.minimumFragmentDuration = (0, Mapper_1.map)(obj.minimumFragmentDuration);
42
43
  _this.fragmentedMP4MuxingManifestType = (0, Mapper_1.map)(obj.fragmentedMP4MuxingManifestType);
43
44
  _this.dolbyVisionConfiguration = (0, Mapper_1.map)(obj.dolbyVisionConfiguration, DolbyVisionMuxingConfiguration_1.default);
44
45
  return _this;
@@ -1,5 +1,6 @@
1
1
  import Content from './Content';
2
2
  import IABTaxonomy from './IABTaxonomy';
3
+ import SceneType from './SceneType';
3
4
  /**
4
5
  * @export
5
6
  * @class Scene
@@ -55,6 +56,18 @@ export declare class Scene {
55
56
  * @memberof Scene
56
57
  */
57
58
  iab?: IABTaxonomy;
59
+ /**
60
+ * The detected type of scene based on content analysis
61
+ * @type {SceneType}
62
+ * @memberof Scene
63
+ */
64
+ type?: SceneType;
65
+ /**
66
+ * Confidence score for the detected scene type (0.0 to 1.0)
67
+ * @type {number}
68
+ * @memberof Scene
69
+ */
70
+ typeConfidence?: number;
58
71
  constructor(obj?: Partial<Scene>);
59
72
  }
60
73
  export default Scene;
@@ -23,6 +23,8 @@ var Scene = /** @class */ (function () {
23
23
  this.sensitiveTopics = (0, Mapper_1.mapArray)(obj.sensitiveTopics);
24
24
  this.keywords = (0, Mapper_1.mapArray)(obj.keywords);
25
25
  this.iab = (0, Mapper_1.map)(obj.iab, IABTaxonomy_1.default);
26
+ this.type = (0, Mapper_1.map)(obj.type);
27
+ this.typeConfidence = (0, Mapper_1.map)(obj.typeConfidence);
26
28
  }
27
29
  return Scene;
28
30
  }());
@@ -0,0 +1,20 @@
1
+ import AdPosition from './AdPosition';
2
+ import AiSceneAnalysisAutomaticAdPlacement from './AiSceneAnalysisAutomaticAdPlacement';
3
+ /**
4
+ * @export
5
+ * @class SceneAnalysisAdPlacementMetadataResponse
6
+ */
7
+ export declare class SceneAnalysisAdPlacementMetadataResponse {
8
+ /**
9
+ * @type {AdPosition[]}
10
+ * @memberof SceneAnalysisAdPlacementMetadataResponse
11
+ */
12
+ placedAds?: AdPosition[];
13
+ /**
14
+ * @type {AiSceneAnalysisAutomaticAdPlacement}
15
+ * @memberof SceneAnalysisAdPlacementMetadataResponse
16
+ */
17
+ automaticAdPlacement?: AiSceneAnalysisAutomaticAdPlacement;
18
+ constructor(obj?: Partial<SceneAnalysisAdPlacementMetadataResponse>);
19
+ }
20
+ export default SceneAnalysisAdPlacementMetadataResponse;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SceneAnalysisAdPlacementMetadataResponse = void 0;
4
+ var Mapper_1 = require("../common/Mapper");
5
+ var AdPosition_1 = require("./AdPosition");
6
+ var AiSceneAnalysisAutomaticAdPlacement_1 = require("./AiSceneAnalysisAutomaticAdPlacement");
7
+ /**
8
+ * @export
9
+ * @class SceneAnalysisAdPlacementMetadataResponse
10
+ */
11
+ var SceneAnalysisAdPlacementMetadataResponse = /** @class */ (function () {
12
+ function SceneAnalysisAdPlacementMetadataResponse(obj) {
13
+ if (!obj) {
14
+ return;
15
+ }
16
+ this.placedAds = (0, Mapper_1.mapArray)(obj.placedAds, AdPosition_1.default);
17
+ this.automaticAdPlacement = (0, Mapper_1.map)(obj.automaticAdPlacement, AiSceneAnalysisAutomaticAdPlacement_1.default);
18
+ }
19
+ return SceneAnalysisAdPlacementMetadataResponse;
20
+ }());
21
+ exports.SceneAnalysisAdPlacementMetadataResponse = SceneAnalysisAdPlacementMetadataResponse;
22
+ exports.default = SceneAnalysisAdPlacementMetadataResponse;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @export
3
+ * @enum {string}
4
+ */
5
+ export declare enum SceneType {
6
+ OPENING_TITLES = "OPENING_TITLES",
7
+ EPISODE_TITLE_CARD = "EPISODE_TITLE_CARD",
8
+ STUDIO_LOGO_BUMPER = "STUDIO_LOGO_BUMPER",
9
+ NETWORK_OR_PLATFORM_IDENT = "NETWORK_OR_PLATFORM_IDENT",
10
+ RECAP = "RECAP",
11
+ PREVIEW_THIS_TITLE = "PREVIEW_THIS_TITLE",
12
+ PROMO_OTHER_TITLE = "PROMO_OTHER_TITLE",
13
+ TRAILER_OTHER_TITLE = "TRAILER_OTHER_TITLE",
14
+ ADS = "ADS",
15
+ ACT_BREAK_EYECATCH = "ACT_BREAK_EYECATCH",
16
+ TECHNICAL_SLATE_OR_TEST = "TECHNICAL_SLATE_OR_TEST",
17
+ MAIN_CONTENT = "MAIN_CONTENT",
18
+ MID_CREDIT_SCENE = "MID_CREDIT_SCENE",
19
+ POST_CREDIT_SCENE = "POST_CREDIT_SCENE",
20
+ END_CREDITS = "END_CREDITS",
21
+ UNKNOWN = "UNKNOWN"
22
+ }
23
+ export default SceneType;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SceneType = void 0;
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var SceneType;
9
+ (function (SceneType) {
10
+ SceneType["OPENING_TITLES"] = "OPENING_TITLES";
11
+ SceneType["EPISODE_TITLE_CARD"] = "EPISODE_TITLE_CARD";
12
+ SceneType["STUDIO_LOGO_BUMPER"] = "STUDIO_LOGO_BUMPER";
13
+ SceneType["NETWORK_OR_PLATFORM_IDENT"] = "NETWORK_OR_PLATFORM_IDENT";
14
+ SceneType["RECAP"] = "RECAP";
15
+ SceneType["PREVIEW_THIS_TITLE"] = "PREVIEW_THIS_TITLE";
16
+ SceneType["PROMO_OTHER_TITLE"] = "PROMO_OTHER_TITLE";
17
+ SceneType["TRAILER_OTHER_TITLE"] = "TRAILER_OTHER_TITLE";
18
+ SceneType["ADS"] = "ADS";
19
+ SceneType["ACT_BREAK_EYECATCH"] = "ACT_BREAK_EYECATCH";
20
+ SceneType["TECHNICAL_SLATE_OR_TEST"] = "TECHNICAL_SLATE_OR_TEST";
21
+ SceneType["MAIN_CONTENT"] = "MAIN_CONTENT";
22
+ SceneType["MID_CREDIT_SCENE"] = "MID_CREDIT_SCENE";
23
+ SceneType["POST_CREDIT_SCENE"] = "POST_CREDIT_SCENE";
24
+ SceneType["END_CREDITS"] = "END_CREDITS";
25
+ SceneType["UNKNOWN"] = "UNKNOWN";
26
+ })(SceneType || (exports.SceneType = SceneType = {}));
27
+ exports.default = SceneType;
@@ -19,7 +19,7 @@ export declare class TsMuxing extends Muxing {
19
19
  */
20
20
  segmentLength?: number;
21
21
  /**
22
- * Prevents creation of very short final segments (in seconds). If the last segment is shorter than minimumSegmentLength, it will be merged with the previous one, creating a segment of a size up to segmentLength + minimumSegmentLength.
22
+ * Prevents creation of very short segments (in seconds). If the last segment is shorter than minimumSegmentLength or there is a custom keyframe too close to a segment boundary, short segments will be omitted by removing segment boundaries, resulting in a segment of a size up to segmentLength + minimumSegmentLength.
23
23
  * @type {number}
24
24
  * @memberof TsMuxing
25
25
  */
@@ -32,6 +32,8 @@ export * from './AdAnalyticsQueryRequest';
32
32
  export * from './AdAnalyticsStddevQueryRequest';
33
33
  export * from './AdAnalyticsSumQueryRequest';
34
34
  export * from './AdAnalyticsVarianceQueryRequest';
35
+ export * from './AdMarkersSource';
36
+ export * from './AdPosition';
35
37
  export * from './AdaptationSet';
36
38
  export * from './AdaptationSetRole';
37
39
  export * from './AdaptationSetType';
@@ -665,9 +667,11 @@ export * from './ScaleFilter';
665
667
  export * from './ScalingAlgorithm';
666
668
  export * from './SccCaption';
667
669
  export * from './Scene';
670
+ export * from './SceneAnalysisAdPlacementMetadataResponse';
668
671
  export * from './SceneAnalysisDetailsResponse';
669
672
  export * from './SceneAnalysisLanguagesResponse';
670
673
  export * from './SceneObject';
674
+ export * from './SceneType';
671
675
  export * from './ScheduledInsertableContent';
672
676
  export * from './ScheduledInsertableContentStatus';
673
677
  export * from './Scheduling';
@@ -48,6 +48,8 @@ __exportStar(require("./AdAnalyticsQueryRequest"), exports);
48
48
  __exportStar(require("./AdAnalyticsStddevQueryRequest"), exports);
49
49
  __exportStar(require("./AdAnalyticsSumQueryRequest"), exports);
50
50
  __exportStar(require("./AdAnalyticsVarianceQueryRequest"), exports);
51
+ __exportStar(require("./AdMarkersSource"), exports);
52
+ __exportStar(require("./AdPosition"), exports);
51
53
  __exportStar(require("./AdaptationSet"), exports);
52
54
  __exportStar(require("./AdaptationSetRole"), exports);
53
55
  __exportStar(require("./AdaptationSetType"), exports);
@@ -681,9 +683,11 @@ __exportStar(require("./ScaleFilter"), exports);
681
683
  __exportStar(require("./ScalingAlgorithm"), exports);
682
684
  __exportStar(require("./SccCaption"), exports);
683
685
  __exportStar(require("./Scene"), exports);
686
+ __exportStar(require("./SceneAnalysisAdPlacementMetadataResponse"), exports);
684
687
  __exportStar(require("./SceneAnalysisDetailsResponse"), exports);
685
688
  __exportStar(require("./SceneAnalysisLanguagesResponse"), exports);
686
689
  __exportStar(require("./SceneObject"), exports);
690
+ __exportStar(require("./SceneType"), exports);
687
691
  __exportStar(require("./ScheduledInsertableContent"), exports);
688
692
  __exportStar(require("./ScheduledInsertableContentStatus"), exports);
689
693
  __exportStar(require("./Scheduling"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmovin/api-sdk",
3
- "version": "1.240.0",
3
+ "version": "1.242.0",
4
4
  "description": "Bitmovin JS/TS API SDK",
5
5
  "author": "Bitmovin Inc",
6
6
  "keywords": [