@adobe/premierepro 26.5.0-beta.3 → 26.5.0-beta.61
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/package.json +1 -1
- package/src/premierepro.d.ts +118 -28
package/package.json
CHANGED
package/src/premierepro.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export declare type premierepro = {
|
|
|
40
40
|
Marker: MarkerStatic;
|
|
41
41
|
Markers: MarkersStatic;
|
|
42
42
|
Media: Media;
|
|
43
|
+
MediaManager: MediaManagerStatic;
|
|
43
44
|
Metadata: MetadataStatic;
|
|
44
45
|
ObjectMaskUtils: ObjectMaskUtilsStatic;
|
|
45
46
|
OpenProjectOptions: OpenProjectOptions;
|
|
@@ -78,6 +79,7 @@ export declare type premierepro = {
|
|
|
78
79
|
VideoFilterFactory: VideoFilterFactoryStatic;
|
|
79
80
|
VideoTrack: VideoTrackStatic;
|
|
80
81
|
VideoTransition: VideoTransitionStatic;
|
|
82
|
+
WorkAreaUtils: WorkAreaUtilsStatic;
|
|
81
83
|
EventManager: EventManagerStatic;
|
|
82
84
|
Transcript: TranscriptStatic;
|
|
83
85
|
Constants: typeof Constants;
|
|
@@ -313,7 +315,7 @@ export declare type AddTransitionOptions = {
|
|
|
313
315
|
|
|
314
316
|
export declare type AppPreferenceStatic = {
|
|
315
317
|
/**
|
|
316
|
-
* Set backend preference using
|
|
318
|
+
* Set backend preference using one of the available property keys
|
|
317
319
|
*
|
|
318
320
|
* @param key App preference key to set
|
|
319
321
|
* @param value Value to set for the preference key
|
|
@@ -369,7 +371,7 @@ export declare type Application = {
|
|
|
369
371
|
/**
|
|
370
372
|
* @readonly
|
|
371
373
|
*/
|
|
372
|
-
readonly version: string
|
|
374
|
+
readonly version: Promise<string>;
|
|
373
375
|
};
|
|
374
376
|
|
|
375
377
|
export declare type AudioClipTrackItemStatic = {
|
|
@@ -837,7 +839,7 @@ export declare type ClipProjectItem = {
|
|
|
837
839
|
changeMediaFilePath(newPath: string, overrideCompatibilityCheck?: boolean): Promise<boolean>;
|
|
838
840
|
|
|
839
841
|
/**
|
|
840
|
-
* Returns a deferred Action that creates a subclip when committed inside a transaction. hasHardBoundaries: if true, prevents trimming beyond the subclip boundaries.
|
|
842
|
+
* Returns a deferred Action that creates a subclip when committed inside a transaction. hasHardBoundaries: if true, prevents trimming beyond the subclip boundaries. Takes additional options (defaulting to true).
|
|
841
843
|
*
|
|
842
844
|
* @param name
|
|
843
845
|
* @param startTime
|
|
@@ -850,7 +852,7 @@ export declare type ClipProjectItem = {
|
|
|
850
852
|
startTime: TickTime,
|
|
851
853
|
endTime: TickTime,
|
|
852
854
|
hasHardBoundaries: boolean,
|
|
853
|
-
options?:
|
|
855
|
+
options?: { takeVideo?: boolean; takeAudio?: boolean }
|
|
854
856
|
): Action;
|
|
855
857
|
|
|
856
858
|
/**
|
|
@@ -927,11 +929,13 @@ export declare type ClipProjectItem = {
|
|
|
927
929
|
getMediaFilePath(): Promise<string>;
|
|
928
930
|
|
|
929
931
|
/**
|
|
930
|
-
* Get the
|
|
932
|
+
* Get the component chain of the Project item for the given media type.
|
|
931
933
|
*
|
|
932
|
-
* @param mediaType Media type can be audio
|
|
934
|
+
* @param mediaType Media type can be audio or video
|
|
933
935
|
*/
|
|
934
|
-
getComponentChain(
|
|
936
|
+
getComponentChain(
|
|
937
|
+
mediaType: Constants.MediaType
|
|
938
|
+
): Promise<AudioComponentChain | VideoComponentChain | null>;
|
|
935
939
|
|
|
936
940
|
/**
|
|
937
941
|
* Returns an action which Sets the in point of the Project item
|
|
@@ -943,17 +947,17 @@ export declare type ClipProjectItem = {
|
|
|
943
947
|
/**
|
|
944
948
|
* Returns an action which sets Override pixel aspect ratio
|
|
945
949
|
*
|
|
946
|
-
* @param
|
|
947
|
-
* @param
|
|
950
|
+
* @param numerator
|
|
951
|
+
* @param denominator
|
|
948
952
|
*/
|
|
949
|
-
createSetOverridePixelAspectRatioAction(
|
|
953
|
+
createSetOverridePixelAspectRatioAction(numerator: number, denominator: number): Action;
|
|
950
954
|
|
|
951
955
|
/**
|
|
952
956
|
* Returns an action which sets the override frame rate
|
|
953
957
|
*
|
|
954
|
-
* @param
|
|
958
|
+
* @param overriddenFrameRateValue
|
|
955
959
|
*/
|
|
956
|
-
createSetOverrideFrameRateAction(
|
|
960
|
+
createSetOverrideFrameRateAction(overriddenFrameRateValue: number): Action;
|
|
957
961
|
|
|
958
962
|
/**
|
|
959
963
|
* Returns an action which Sets the in point of the Project item
|
|
@@ -1953,7 +1957,7 @@ export declare type Marker = {
|
|
|
1953
1957
|
/**
|
|
1954
1958
|
* Return an action to set the type of the marker.
|
|
1955
1959
|
*
|
|
1956
|
-
* @param markerType
|
|
1960
|
+
* @param markerType Can be set to "Comment", "Chapter", "Segmentation", or "WebLink"
|
|
1957
1961
|
*/
|
|
1958
1962
|
createSetTypeAction(markerType: string): Action;
|
|
1959
1963
|
|
|
@@ -2006,14 +2010,14 @@ export declare type Markers = {
|
|
|
2006
2010
|
/**
|
|
2007
2011
|
* Add a new marker
|
|
2008
2012
|
*
|
|
2009
|
-
* @param
|
|
2013
|
+
* @param name
|
|
2010
2014
|
* @param markerType
|
|
2011
2015
|
* @param startTime
|
|
2012
2016
|
* @param duration
|
|
2013
2017
|
* @param comments
|
|
2014
2018
|
*/
|
|
2015
2019
|
createAddMarkerAction(
|
|
2016
|
-
|
|
2020
|
+
name: string,
|
|
2017
2021
|
markerType?: string,
|
|
2018
2022
|
startTime?: TickTime,
|
|
2019
2023
|
duration?: TickTime,
|
|
@@ -2029,19 +2033,40 @@ export declare type Media = {
|
|
|
2029
2033
|
*/
|
|
2030
2034
|
createSetStartAction(time: TickTime): Action;
|
|
2031
2035
|
|
|
2036
|
+
/**
|
|
2037
|
+
* Get the media start time.
|
|
2038
|
+
*/
|
|
2039
|
+
getStart(): TickTime;
|
|
2040
|
+
|
|
2041
|
+
/**
|
|
2042
|
+
* Get the media duration.
|
|
2043
|
+
*/
|
|
2044
|
+
getDuration(): TickTime;
|
|
2045
|
+
|
|
2032
2046
|
/**
|
|
2033
2047
|
* Get the media start time
|
|
2034
2048
|
* @readonly
|
|
2049
|
+
* @deprecated Use getStart() instead.
|
|
2035
2050
|
*/
|
|
2036
|
-
readonly start: TickTime
|
|
2051
|
+
readonly start: Promise<TickTime>;
|
|
2037
2052
|
|
|
2038
2053
|
/**
|
|
2039
2054
|
* Get the media duration
|
|
2040
2055
|
* @readonly
|
|
2056
|
+
* @deprecated Use getDuration() instead.
|
|
2041
2057
|
*/
|
|
2042
|
-
readonly duration: TickTime
|
|
2058
|
+
readonly duration: Promise<TickTime>;
|
|
2043
2059
|
};
|
|
2044
2060
|
|
|
2061
|
+
export declare type MediaManagerStatic = {
|
|
2062
|
+
/**
|
|
2063
|
+
* Flush the media cache.
|
|
2064
|
+
*/
|
|
2065
|
+
purgeMediaCache(): Promise<boolean>;
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
export declare type MediaManager = {};
|
|
2069
|
+
|
|
2045
2070
|
export declare type MetadataStatic = {
|
|
2046
2071
|
/**
|
|
2047
2072
|
* Get project metadata
|
|
@@ -2389,7 +2414,7 @@ export declare type Project = {
|
|
|
2389
2414
|
createSequenceWithPresetPath(name: string, presetPath: string): Promise<Sequence>;
|
|
2390
2415
|
|
|
2391
2416
|
/**
|
|
2392
|
-
* Create a new sequence with a given name and
|
|
2417
|
+
* Create a new sequence with a given name and media
|
|
2393
2418
|
*
|
|
2394
2419
|
* @param name
|
|
2395
2420
|
* @param clipProjectItems
|
|
@@ -2443,16 +2468,16 @@ export declare type Project = {
|
|
|
2443
2468
|
*
|
|
2444
2469
|
* @param aepPath
|
|
2445
2470
|
* @param compNames
|
|
2446
|
-
* @param
|
|
2471
|
+
* @param targetBin
|
|
2447
2472
|
*/
|
|
2448
|
-
importAEComps(aepPath: string, compNames: string[],
|
|
2473
|
+
importAEComps(aepPath: string, compNames: string[], targetBin?: ProjectItem): Promise<boolean>;
|
|
2449
2474
|
|
|
2450
2475
|
/**
|
|
2451
2476
|
*
|
|
2452
2477
|
* @param aepPath
|
|
2453
|
-
* @param
|
|
2478
|
+
* @param targetBin
|
|
2454
2479
|
*/
|
|
2455
|
-
importAllAEComps(aepPath: string,
|
|
2480
|
+
importAllAEComps(aepPath: string, targetBin?: ProjectItem): Promise<boolean>;
|
|
2456
2481
|
|
|
2457
2482
|
/**
|
|
2458
2483
|
* Import files in root/target bin of the project
|
|
@@ -2506,7 +2531,7 @@ export declare type Project = {
|
|
|
2506
2531
|
getRootItem(): Promise<FolderItem>;
|
|
2507
2532
|
|
|
2508
2533
|
/**
|
|
2509
|
-
*
|
|
2534
|
+
* Pauses or resumes monitoring of actively-captured (growing) media files in the project. When paused, Premiere stops refreshing clips whose source files are still being written to disk, allowing stable playback at the current captured duration. Pass true to pause, false to resume.
|
|
2510
2535
|
*
|
|
2511
2536
|
* @param pause
|
|
2512
2537
|
*/
|
|
@@ -2908,7 +2933,7 @@ export declare type Properties = {
|
|
|
2908
2933
|
getValue(name: string): string;
|
|
2909
2934
|
|
|
2910
2935
|
/**
|
|
2911
|
-
* Create an action to set a named value through scripting.
|
|
2936
|
+
* Create an action to set a named value through scripting. This method can fail if e.g. the underlying properties object does not support action based setting of properties.
|
|
2912
2937
|
*
|
|
2913
2938
|
* @param name property name
|
|
2914
2939
|
* @param value Value to set for the property key
|
|
@@ -3103,7 +3128,7 @@ export declare type Sequence = {
|
|
|
3103
3128
|
getSettings(): Promise<SequenceSettings>;
|
|
3104
3129
|
|
|
3105
3130
|
/**
|
|
3106
|
-
* Returns action that
|
|
3131
|
+
* Returns an action that updates the settings for the sequence.
|
|
3107
3132
|
*
|
|
3108
3133
|
* @param sequenceSettings
|
|
3109
3134
|
*/
|
|
@@ -3137,12 +3162,12 @@ export declare type Sequence = {
|
|
|
3137
3162
|
getEndTime(): Promise<TickTime>;
|
|
3138
3163
|
|
|
3139
3164
|
/**
|
|
3140
|
-
* Get time representing the
|
|
3165
|
+
* Get time representing the in point of the sequence.
|
|
3141
3166
|
*/
|
|
3142
3167
|
getInPoint(): Promise<TickTime>;
|
|
3143
3168
|
|
|
3144
3169
|
/**
|
|
3145
|
-
* Get time representing the
|
|
3170
|
+
* Get time representing the out point of the sequence.
|
|
3146
3171
|
*/
|
|
3147
3172
|
getOutPoint(): Promise<TickTime>;
|
|
3148
3173
|
|
|
@@ -3154,7 +3179,7 @@ export declare type Sequence = {
|
|
|
3154
3179
|
createSetInPointAction(tickTime: TickTime): Action;
|
|
3155
3180
|
|
|
3156
3181
|
/**
|
|
3157
|
-
* Create an action to set
|
|
3182
|
+
* Create an action to set the zero point for the sequence.
|
|
3158
3183
|
*
|
|
3159
3184
|
* @param tickTime
|
|
3160
3185
|
*/
|
|
@@ -4344,6 +4369,49 @@ export declare type VideoTransitionStatic = {
|
|
|
4344
4369
|
|
|
4345
4370
|
export declare type VideoTransition = {};
|
|
4346
4371
|
|
|
4372
|
+
export declare type WorkAreaUtilsStatic = {
|
|
4373
|
+
/**
|
|
4374
|
+
* Get the work area in point of the sequence.
|
|
4375
|
+
*
|
|
4376
|
+
* @param sequence
|
|
4377
|
+
*/
|
|
4378
|
+
getWorkAreaInPoint(sequence: Sequence): TickTime;
|
|
4379
|
+
|
|
4380
|
+
/**
|
|
4381
|
+
* Get the work area out point of the sequence.
|
|
4382
|
+
*
|
|
4383
|
+
* @param sequence
|
|
4384
|
+
*/
|
|
4385
|
+
getWorkAreaOutPoint(sequence: Sequence): TickTime;
|
|
4386
|
+
|
|
4387
|
+
/**
|
|
4388
|
+
* Set the work area in point of the sequence.
|
|
4389
|
+
*
|
|
4390
|
+
* @param sequence
|
|
4391
|
+
* @param tickTime
|
|
4392
|
+
*/
|
|
4393
|
+
setWorkAreaInPoint(sequence: Sequence, tickTime: TickTime): boolean;
|
|
4394
|
+
|
|
4395
|
+
/**
|
|
4396
|
+
* Set the work area out point of the sequence.
|
|
4397
|
+
*
|
|
4398
|
+
* @param sequence
|
|
4399
|
+
* @param tickTime
|
|
4400
|
+
*/
|
|
4401
|
+
setWorkAreaOutPoint(sequence: Sequence, tickTime: TickTime): boolean;
|
|
4402
|
+
|
|
4403
|
+
/**
|
|
4404
|
+
* Set the work area in and out points of the sequence.
|
|
4405
|
+
*
|
|
4406
|
+
* @param sequence
|
|
4407
|
+
* @param inTickTime
|
|
4408
|
+
* @param outTickTime
|
|
4409
|
+
*/
|
|
4410
|
+
setWorkAreaInOutPoints(sequence: Sequence, inTickTime: TickTime, outTickTime: TickTime): boolean;
|
|
4411
|
+
};
|
|
4412
|
+
|
|
4413
|
+
export declare type WorkAreaUtils = {};
|
|
4414
|
+
|
|
4347
4415
|
export declare type EventManagerStatic = {
|
|
4348
4416
|
/**
|
|
4349
4417
|
* add event listener to target object
|
|
@@ -4444,6 +4512,13 @@ export declare type TranscriptStatic = {
|
|
|
4444
4512
|
*/
|
|
4445
4513
|
querySupportedLanguages(): Array<{ displayString: string; languageCode: string; locale: string }>;
|
|
4446
4514
|
|
|
4515
|
+
/**
|
|
4516
|
+
* Returns true if the language pack for the given language code is available ex:isLanguagePackAvailable('en-US')
|
|
4517
|
+
*
|
|
4518
|
+
* @param language
|
|
4519
|
+
*/
|
|
4520
|
+
isLanguagePackAvailable(language: string): boolean;
|
|
4521
|
+
|
|
4447
4522
|
/**
|
|
4448
4523
|
* Returns true if the ClipProjectItem has an existing transcript
|
|
4449
4524
|
*
|
|
@@ -4462,6 +4537,9 @@ export declare type TranscriptStatic = {
|
|
|
4462
4537
|
export declare type Transcript = {};
|
|
4463
4538
|
|
|
4464
4539
|
export namespace Constants {
|
|
4540
|
+
/**
|
|
4541
|
+
* @since 26.3
|
|
4542
|
+
*/
|
|
4465
4543
|
export enum AAFExportAudioFormat {
|
|
4466
4544
|
AIFF,
|
|
4467
4545
|
WAV,
|
|
@@ -4514,10 +4592,22 @@ export namespace Constants {
|
|
|
4514
4592
|
TIME_TRANSITION_START,
|
|
4515
4593
|
}
|
|
4516
4594
|
|
|
4595
|
+
/**
|
|
4596
|
+
* @since 25.6
|
|
4597
|
+
*/
|
|
4517
4598
|
export enum MarkerColor {
|
|
4518
4599
|
GREEN,
|
|
4519
4600
|
RED,
|
|
4601
|
+
/**
|
|
4602
|
+
* @since 25.6
|
|
4603
|
+
* @since 26.5 Deprecated in favor of the properly spelled 'MAGENTA' equivalent.
|
|
4604
|
+
* @deprecated Use MAGENTA instead.
|
|
4605
|
+
*/
|
|
4520
4606
|
MAGNETA,
|
|
4607
|
+
/**
|
|
4608
|
+
* @since 26.5
|
|
4609
|
+
*/
|
|
4610
|
+
MAGENTA,
|
|
4521
4611
|
ORANGE,
|
|
4522
4612
|
YELLOW,
|
|
4523
4613
|
BLUE,
|