-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathmodule.ts
More file actions
1908 lines (1624 loc) · 46.4 KB
/
module.ts
File metadata and controls
1908 lines (1624 loc) · 46.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const obs = require('./obs_studio_client.node');
import * as path from 'path';
import * as fs from 'fs';
/* Convenient paths to modules */
export const DefaultD3D11Path: string =
path.resolve(__dirname, `libobs-d3d11.dll`);
export const DefaultOpenGLPath: string =
path.resolve(__dirname, `libobs-opengl.dll`);
export const DefaultDrawPluginPath: string =
path.resolve(__dirname, `simple_draw.dll`);
export const DefaultBinPath: string =
path.resolve(__dirname);
export const DefaultDataPath: string =
path.resolve(__dirname, `data`);
export const DefaultPluginPath: string =
path.resolve(__dirname, `obs-plugins`);
export const DefaultPluginDataPath: string =
path.resolve(__dirname, `data/obs-plugins/%module%`);
export const DefaultPluginPathMac: string =
path.resolve(__dirname, `PlugIns`);
/**
* To be passed to Input.flags
*/
export const enum ESourceFlags {
Unbuffered = (1 << 0),
ForceMono = (1 << 1)
}
export const enum EMonitoringType {
None,
MonitoringOnly,
MonitoringAndOutput
}
export const enum EOrderMovement {
Up,
Down,
Top,
Bottom
}
export const enum EDeinterlaceFieldOrder {
Top,
Bottom
}
export const enum EVideoCodes {
Success = 0,
Fail = -1,
NotSupported = -2,
InvalidParam = -3,
CurrentlyActive = -4,
ModuleNotFound = -5
}
export const enum EHotkeyObjectType {
Frontend = 0,
Source = 1,
Output = 2,
Encoder = 3,
Service = 4
}
export const enum EDeinterlaceMode {
Disable,
Discard,
Retro,
Blend,
Blend2X,
Linear,
Linear2X,
Yadif,
Yadif2X
}
export const enum EBlendingMethod {
Default,
SrgbOff
}
export const enum EBlendingMode {
Normal,
Additive,
Substract,
Screen,
Multiply,
Lighten,
Darken
}
export const enum EFontStyle {
Bold = (1<<0),
Italic = (1<<1),
Underline = (1<<2),
Strikeout = (1<<3),
}
/**
* Enumeration describing the type of a property
*/
export const enum EPropertyType {
Invalid,
Boolean,
Int,
Float,
Text,
Path,
List,
Color,
Button,
Font,
EditableList,
FrameRate,
Group,
ColorAlpha,
Capture,
}
export const enum EListFormat {
Invalid,
Int,
Float,
String
}
export const enum EEditableListType {
Strings,
Files,
FilesAndUrls
}
export const enum EPathType {
File,
FileSave,
Directory
}
export const enum ETextType {
Default,
Password,
Multiline,
TextInfo
}
export const enum ETextInfoType {
Normal,
Warning,
Error,
}
export const enum ENumberType {
Scroller,
Slider
}
/**
* A binary flag representing alignment
*/
export const enum EAlignment {
Center = 0,
Left = (1 << 0),
Right = (1 << 1),
Top = (1 << 2),
Bottom = (1 << 3),
TopLeft = (Top | Left),
TopRight = (Top | Right),
BottomLeft = (Bottom | Left),
BottomRight = (Bottom | Right)
}
/**
* A binary flag representing output capabilities
* Apparently you can't fetch these for now (???)
*/
export const enum EOutputFlags {
Video = (1<<0),
Audio = (1<<1),
AV = (Video | Audio),
Encoded = (1<<2),
Service = (1<<3),
MultiTrack = (1<<4)
}
/**
* A binary flag representing source output capabilities
*/
export const enum ESourceOutputFlags {
Video = (1 << 0),
Audio = (1 << 1),
Async = (1 << 2),
AsyncVideo = Async | Video,
CustomDraw = (1 << 3),
Interaction = (1 << 5),
Composite = (1 << 6),
DoNotDuplicate = (1 << 7),
Deprecated = (1 << 8),
DoNotSelfMonitor = (1 << 9),
// The flag below is a Stremlabs extension to force UI refresh on source properties update
ForceUiRefresh = (1 << 30),
}
export const enum ESceneDupType {
Refs,
Copy,
PrivateRefs,
PrivateCopy
}
/**
* Describes the type of source
*/
export const enum ESourceType {
Input,
Filter,
Transition,
Scene,
}
/**
* Describes algorithm type to use for volume representation.
*/
export const enum EFaderType {
Cubic,
IEC /* IEC 60-268-18 */,
Log /* Logarithmic */
}
export const enum EColorFormat {
Unknown,
A8,
R8,
RGBA,
BGRX,
BGRA,
R10G10B10A2,
RGBA16,
R16,
RGBA16F,
RGBA32F,
RG16F,
RG32F,
R16F,
R32F,
DXT1,
DXT3,
DXT5
}
export const enum EScaleType {
Disable,
Point,
Bicubic,
Bilinear,
Lanczos,
Area
}
export const enum EFPSType {
Common,
Integer,
Fractional
}
export const enum ERangeType {
Default,
Partial,
Full
}
export const enum EVideoFormat {
None,
I420,
NV12,
YVYU,
YUY2,
UYVY,
RGBA,
BGRA,
BGRX,
Y800,
I444,
BGR3,
I422,
I40A,
I42A,
YUVA,
AYUV
}
export const enum EBoundsType {
None,
Stretch,
ScaleInner,
ScaleOuter,
ScaleToWidth,
ScaleToHeight,
MaxOnly
}
export const enum EColorSpace {
Default,
CS601,
CS709,
CSSRGB,
CS2100PQ,
CS2100HLG
}
export const enum ESpeakerLayout {
Unknown,
Mono,
Stereo,
TwoOne,
Four,
FourOne,
FiveOne,
SevenOne = 8
}
export const enum EOutputCode {
Success = 0,
BadPath = -1,
ConnectFailed = -2,
InvalidStream = -3,
Error = -4,
Disconnected = -5,
Unsupported = -6,
NoSpace = -7,
EncoderError = -8,
OutdatedDriver = -65,
}
export const enum ECategoryTypes {
NODEOBS_CATEGORY_LIST = 0,
NODEOBS_CATEGORY_TAB = 1
}
export const enum ERenderingMode {
OBS_MAIN_RENDERING = 0,
OBS_STREAMING_RENDERING = 1,
OBS_RECORDING_RENDERING = 2
}
export const enum EIPCError {
STILL_RUNNING = 259,
VERSION_MISMATCH = 252,
OTHER_ERROR = 253,
MISSING_DEPENDENCY = 254,
NORMAL_EXIT = 0,
}
export const enum EVcamInstalledStatus {
NotInstalled = 0,
LegacyInstalled = 1,
Installed = 2
}
export const enum ERecSplitType {
Time = 0,
Size = 1,
Manual = 2
}
export const Global: IGlobal = obs.Global;
export const Video: IVideo = obs.Video;
export const VideoFactory: IVideoFactory = obs.Video;
export const InputFactory: IInputFactory = obs.Input;
export const SceneFactory: ISceneFactory = obs.Scene;
export const FilterFactory: IFilterFactory = obs.Filter;
export const TransitionFactory: ITransitionFactory = obs.Transition;
export const DisplayFactory: IDisplayFactory = obs.Display;
export const VolmeterFactory: IVolmeterFactory = obs.Volmeter;
export const FaderFactory: IFaderFactory = obs.Fader;
export const Audio: IAudio = obs.Audio;
export const AudioFactory: IAudioFactory = obs.Audio;
export const ModuleFactory: IModuleFactory = obs.Module;
export const IPC: IIPC = obs.IPC;
export const VideoEncoderFactory: IVideoEncoderFactory = obs.VideoEncoder;
export const ServiceFactory: IServiceFactory = obs.Service;
export const SimpleStreamingFactory: ISimpleStreamingFactory = obs.SimpleStreaming;
export const AdvancedStreamingFactory: IAdvancedStreamingFactory = obs.AdvancedStreaming;
export const DelayFactory: IDelayFactory = obs.Delay;
export const ReconnectFactory: IReconnectFactory = obs.Reconnect;
export const NetworkFactory: INetworkFactory = obs.Network;
export const AudioTrackFactory: IAudioTrackFactory = obs.AudioTrack;
export const SimpleRecordingFactory: ISimpleRecordingFactory = obs.SimpleRecording;
export const AdvancedRecordingFactory: IAdvancedRecordingFactory = obs.AdvancedRecording;
export const AudioEncoderFactory: IAudioEncoderFactory = obs.AudioEncoder;
export const SimpleReplayBufferFactory: ISimpleReplayBufferFactory = obs.SimpleReplayBuffer;
export const AdvancedReplayBufferFactory: IAdvancedReplayBufferFactory = obs.AdvancedReplayBuffer;
/**
* Meta object in order to better describe settings
*/
export interface ISettings {
[key: string]: any;
}
/**
* Used for various 2-dimensional functions
*/
export interface IVec2 {
readonly x: number;
readonly y: number;
}
/**
* Used to represented a time in nanoseconds
* JS can't hold 64-bit integers thus can
* easily overflow when representing time in ns.
*/
export interface ITimeSpec {
readonly sec: number;
readonly nsec: number;
}
/**
* Interface describing the transform information in an item
*/
export interface ITransformInfo {
readonly pos: IVec2;
readonly rot: number;
readonly scale: IVec2;
readonly alignment: EAlignment;
readonly boundsType: EBoundsType;
readonly boundsAlignment: number;
readonly bounds: IVec2;
}
/**
* Interface describing the crop of an item.
*/
export interface ICropInfo {
readonly left: number;
readonly right: number;
readonly top: number;
readonly bottom: number;
}
/**
* Namespace representing the global libobs functionality
*/
export interface IIPC {
/**
* Set the path and optionally working directory for the IPC server binary.
* @param binaryPath - Path to the binary file to be executed
* @param workingDirectoryPath - Path to the directory where it is executed in.
* @throws SyntaxError if an invalid number of parameters is given.
* @throws TypeError if a parameter is of invalid type.
*/
setServerPath(binaryPath: string, workingDirectoryPath?: string): void;
/**
* Connect to an existing server.
* @param uri - URI for the server.
* @throws SyntaxError if an invalid number of parameters is given.
* @throws TypeError if a parameter is of invalid type.
* @throws Error if it failed to connect.
*/
connect(uri: string): void;
/**
* Hosts a new server and connects to it.
* @param uri - URI for the server.
* @throws SyntaxError if an invalid number of parameters is given.
* @throws TypeError if a parameter is of invalid type.
* @throws Error if it failed to host and connect.
*/
host(uri: string): EIPCError;
/**
* Disconnect from a server.
*/
disconnect(): void;
}
export interface IGlobal {
/**
* Initializes libobs global context
* @param locale - Locale to be used within libobs
* @param path - Data path of libobs
*/
startup(locale: string, path?: string): void;
/**
* Uninitializes libobs global context
*/
shutdown(): void;
/**
* @param id - String ID of the source
* @returns - The output flags (capabilities) of the source type
*/
getOutputFlagsFromId(id: string): number;
/**
* Output channels are useful in that we can attach multiple
* sources for output. For the most part, you're generally only
* going to use one channel for video. However, if you so wanted,
* you could assign more to be layered on top of other channels.
*
* This also accepts audio input sources which are automatically
* mixed into the audio output. This means you can have a standalone
* input source that isn't attached to the scene being rendered.
* @param channel - The output channel to assign source
* @param input - The source to assign to the output channel
*/
setOutputSource(channel: number, input: ISource): void;
/**
* Obtains the source associated with a given output channel
* @param channel - The output channel to fetch source of
* @returns - The associated source or null if none was assigned to the given channel or channel was invalid.
*/
getOutputSource(channel: number): ISource;
/**
* Adds scene to backstage. This action allow to keep it active
* and not display on stream or recording.
*
* This is used to create scene previews mostly.
*
* @param input - The scene source
*/
addSceneToBackstage(input: ISource) : void;
/**
* Removes scene from backstage and cleans up resources if needed.
*
* @param input - The scene source
*/
removeSceneFromBackstage(input: ISource): void;
/**
* Number of total render frames
*/
readonly totalFrames: number;
/**
* Number of total lost frames due to being short
* of rendering time.
*/
readonly laggedFrames: number;
/**
* Current status of the global libobs context
*/
readonly initialized: boolean;
/**
* Current locale of current libobs context
*/
locale: string;
/**
* Rendering of current libobs context
*/
multipleRendering: boolean;
/**
* Version of current libobs context.
* Represented as a 32-bit unsigned integer.
* First 2 bytes are major.
* Second 2 bytes are minor.
* Last 4 bytes are patch.
*/
readonly version: number;
/**
* Percentage of CPU being used
*/
readonly cpuPercentage: number;
/**
* Current FPS
*/
readonly currentFrameRate: number;
/**
* Average time to render a frame
*/
readonly averageFrameRenderTime: number;
/**
* Disk space currentlky available
*/
readonly diskSpaceAvailable: number;
/**
* Current memory usage
*/
readonly memoryUsage: number;
}
export interface IBooleanProperty extends IProperty {
}
export interface IColorProperty extends IProperty {
}
export interface ICaptureProperty extends IProperty {
}
export interface IButtonProperty extends IProperty {
/**
* @param source An object containing context
* used by the plugin. This is always the source
* associated with the property. Right now, I
* just accept a generic object for forward
* compatibility.
*/
buttonClicked(source: object): void;
}
export interface IFontProperty extends IProperty {
}
export interface IListProperty extends IProperty {
readonly details: IListDetails;
}
export interface IListDetails {
readonly format: EListFormat;
/**
* A list of options to be made available within the list.
* You can determine if it's a string or number by testing
* {@link IListProperty#format}
*/
readonly items: { name: string, value: string | number }[];
}
export interface IEditableListProperty extends IProperty {
readonly details: IEditableListDetails;
}
export interface IEditableListDetails extends IListDetails {
readonly type: EEditableListType;
/** String describing allowed valued */
readonly filter: string;
/** Default value for the editable box */
readonly defaultPath: string;
}
export interface IPathProperty extends IProperty {
readonly details: IPathDetails;
}
export interface IPathDetails {
readonly type: EPathType;
readonly filter: string;
readonly defaultPath: string;
}
export interface ITextProperty extends IProperty {
readonly details: ITextDetails;
}
export interface ITextDetails {
readonly type: ETextType;
readonly infoType: ETextInfoType;
}
export interface INumberProperty extends IProperty {
readonly details: INumberDetails;
}
export interface INumberDetails {
readonly type: ENumberType;
readonly min: number;
readonly max: number;
readonly step: number;
}
/**
* Class representing an entry in a properties list (Properties).
*/
export interface IProperty {
/** The validity of the current property instance */
readonly status: number;
/**
* The name associated with the property
* You can use this name to fetch from the source
* settings object (see {@link ObsSource#settings})
* if you need the value set on this property.
*/
readonly name: string;
/** A short description of the property */
readonly description: string;
/** A long detailed description of the property */
readonly longDescription: string;
/** Whether or not the property is enabled */
readonly enabled: boolean;
/** Whether or not the property should be made visible */
readonly visible: boolean;
/** Type of the property */
readonly type: EPropertyType;
/** Current value of the property */
readonly value: any;
/**
* Uses the current object to obtain the next
* property in the properties list.
*
* @returns If it's successful, returns true.
* Otherwise or if end of the list, returns false.
*/
next(): IProperty;
modified(): boolean;
}
/**
* Object representing a list of properties.
*
* Use .properties member on an encoder, source, output, or service
* to obtain an instance.
*/
export interface IProperties {
/** Obtains the status of the list */
readonly status: number;
/** Obtains the first property in the list. */
first(): IProperty;
count(): number;
/**
* Obtains property matching name.
* @param name The name of the property to fetch.
* @returns - The property instance or null if not found
*/
get(name: string): IProperty;
}
export interface IFactoryTypes {
types(): string[];
}
export interface IReleasable {
release(): void;
}
export interface IFilterFactory extends IFactoryTypes {
/**
* Create an instance of an ObsFilter
* @param id - ID of the filter, possibly returned from types()
* @param name - Name of the filter
* @param settings - Optional, settings to create the filter with
* @returns - Created instance of ObsFilter or null if failure
*/
create(id: string, name: string, settings?: ISettings): IFilter;
}
/**
* Class representing a filter
*/
export interface IFilter extends ISource {
}
export interface IInputFactory extends IFactoryTypes {
/**
* Create a new instance of an ObsInput
* @param id - The type of input source to create, possibly from {@link types}
* @param name - Name of the created input source
* @param settings - Optional, settings to create input sourc with
* @param hotkeys - Optional, hotkey data associated with input
* @returns - Returns instance or null if failure
*/
create(id: string, name: string, settings?: ISettings, hotkeys?: ISettings): IInput;
/**
* Create a new instance of an ObsInput that's private
* Private in this context means any function that returns an
* ObsInput will not return this source
* @param id - The type of input source to create, possibly from {@link types}
* @param name - Name of the created input source
* @param settings - Optional, settings to create input source with
* @returns - Returns instance or null if failure
*/
createPrivate(id: string, name: string, settings?: ISettings): IInput;
/**
* Create an instance of an ObsInput by fetching the source by name.
* @param name - Name of the source to look for
* @returns - Returns instance or null if it failed to find the source
*/
fromName(name: string): IInput;
/**
* Fetches a list of all public input sources available.
*/
getPublicSources(): IInput[];
}
export const enum EInteractionFlags {
None = 0,
CapsKey = 1,
ShiftKey = 1 << 1,
ControlKey = 1 << 2,
AltKey = 1 << 3,
MouseLeft = 1 << 4,
MouseMiddle = 1 << 5,
MouseRight = 1 << 6,
CommandKey = 1 << 7,
Numlock_Key = 1 << 8,
IsKeyPad = 1 << 9,
IsLeft = 1 << 10,
IsRight = 1 << 11
};
export const enum EMouseButtonType {
Left,
Middle,
Right
};
export interface IMouseEvent {
modifiers: EInteractionFlags;
x: number;
y: number;
};
export interface IKeyEvent {
modifiers: EInteractionFlags;
text: string;
nativeModifiers: number;
nativeScancode: number;
nativeVkey: number;
};
export interface ISceneItemInfo {
name: string,
crop: ICropInfo,
scaleX: number,
scaleY: number,
visible: boolean,
x: number,
y: number,
rotation: number
streamVisible: boolean,
recordingVisible: boolean,
scaleFilter: EScaleType,
blendingMode: EBlendingMode
}
/**
* Class representing a source
*
* An input source can be either an audio or video or even both.
* So some of these don't make sense right now. For instance, there's
* no reason tot call volume on a source that only provides video input.
*/
export interface IInput extends ISource {
volume: number;
syncOffset: ITimeSpec;
showing: boolean;
audioMixers: number;
monitoringType: EMonitoringType;
deinterlaceFieldOrder: EDeinterlaceFieldOrder;
deinterlaceMode: EDeinterlaceMode;
/**
* Create a new instance using the current instance.
* If no parameters are provide, an instance is created
* using the current instance as if it were new.
* @param name - Name of new source
* @param isPrivate - Whether or not the new source is private
*/
duplicate(name?: string, isPrivate?: boolean): IInput;
/**
* Find a filter associated with the input source by name.
* @param name - Name of filter to find
* @returns - Returns the filter instance or null if it couldn't find the filter
*/
findFilter(name: string): IFilter;
/**
* Attach a filter instance to this input source
* @param filter - The filter instance to attach to this input source.
*/
addFilter(filter: IFilter): void;
/**
* Remove a filter instance from this input source
* @param filter - The filter instance to remove from this input source.
*/
removeFilter(filter: IFilter): void;
sendMouseClick(eventData: IMouseEvent, type: EMouseButtonType, mouseUp: boolean, clickCount: number): void
sendMouseMove(eventData: IMouseEvent, mouseLeave: boolean): void;
sendMouseWheel(eventData: IMouseEvent, x_delta: number, y_delta: number): void;
sendFocus(focus: boolean): void;
sendKeyClick(eventData: IKeyEvent, keyUp: boolean): void;
/**
* Move a filter up, down, top, or bottom in the filter list.
* @param filter - The filter to move within the input source.
* @param movement - The movement to make within the list.
*/
setFilterOrder(filter: IFilter, movement: EOrderMovement): void;
/**
* Move a filter up, down, top, or bottom in the filter list.
* @param filter - The filter to move within the input source.
* @param movement - The movement to make within the list.
*/
setFilterOrder(filter: IFilter, movement: EOrderMovement): void;
/**
* Obtain a list of all filters associated with the input source
*/
readonly filters: IFilter[];
/**
* Width of the underlying source
*/
readonly width: number;
/**
* Height of the underlying source
*/
readonly height: number;
/**
* get the duration of media file in milliseconds
*/
getDuration(): number;
/**
* get or set the current play position
*/
seek: number;
/**
* play media source
*/
play(): void;
/**
* pause media source
*/
pause(): void;
/**
* restart media source when ended
*/
restart(): void;
/**
* stop media source
*/
stop(): void;
}
export interface ISceneFactory {
/**
* Create a new scene instance
* @param name - Name of the scene to create
* @returns - Returns the instance or null on failure
*/
create(name: string): IScene;
/**
* Create a new scene instance that's private
* @param name - Name of the scene to create
* @returns - Returns the instance or null on failure
*/
createPrivate(name: string): IScene;
/**
* Create a new scene instance by fetching it by name
* @param name - Name of the scene to look for
* @returns - Returns the instance or null on failure to find the scene
*/