mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Compare commits
267 Commits
5.0.0-beta
...
master
Author | SHA1 | Date | |
---|---|---|---|
faf0866f1b | |||
228afd3405 | |||
0548c7798a | |||
6c9fd55c63 | |||
7e3f2a82f0 | |||
65396e1db7 | |||
f8bc7c4f59 | |||
9e48274617 | |||
3b7c1c5381 | |||
20551043f9 | |||
086bf06008 | |||
6483dcaef0 | |||
71920c484b | |||
0eda8f9406 | |||
3b873ceb30 | |||
36f50adf8a | |||
acd1af12a1 | |||
eb2882515f | |||
5c3c4c76c8 | |||
8c80e0745a | |||
5b4aa9dabd | |||
ee283c7141 | |||
179e197bd5 | |||
5fc39ef054 | |||
74719ce502 | |||
9123879c76 | |||
9db7464faa | |||
e2b8a06d94 | |||
af31f1adca | |||
4410e30684 | |||
2c884ca690 | |||
f72f23a9d7 | |||
a589e80bdb | |||
305afd763d | |||
42e7eb6c34 | |||
bdf812dc09 | |||
c8cf2d94ac | |||
d2d4bfb3e7 | |||
d5077fca03 | |||
4a647c5262 | |||
3ea3d3228b | |||
e94f9194a2 | |||
9ee6e2ff2a | |||
b61a5c2431 | |||
fbd4cfb4af | |||
e5aa4c2f69 | |||
4cf8de8382 | |||
7adfb5874c | |||
f18f46543b | |||
f40426efa1 | |||
830f7eb931 | |||
5e3fff78f3 | |||
b53527cba8 | |||
b806a0cfb1 | |||
1d0db34bb2 | |||
690726d281 | |||
ef4142fe75 | |||
caaec5d97f | |||
6c67b276a7 | |||
fad7dfd55c | |||
a5c459b6d4 | |||
899a9b3801 | |||
939e503736 | |||
5b149add99 | |||
50b57d38d0 | |||
9b58dd1627 | |||
81b307e5ad | |||
52733ddce7 | |||
444caeb1d7 | |||
f03e82c3f8 | |||
bbdc5bc823 | |||
9ecc9532e8 | |||
0189c3a3f5 | |||
f48fcc06ec | |||
f43ef8e2da | |||
7a1c71bb96 | |||
cf285b3761 | |||
ede66a68cb | |||
e8089a5bbf | |||
07537a33fa | |||
efeae8d640 | |||
4ff109b62b | |||
42da47f81d | |||
a889799655 | |||
f52f47ec5d | |||
08767ae5a7 | |||
16bf61aab6 | |||
e9c0eee9e4 | |||
f4a3de575c | |||
2bfa1b4c64 | |||
0e611f579b | |||
ec2cdc8475 | |||
3cd8163945 | |||
132d4bafdd | |||
d991e21f29 | |||
a74468e07e | |||
55b3f88db9 | |||
ba7839bb69 | |||
417725801c | |||
93713c438e | |||
6db08f960e | |||
6434c42155 | |||
ac00465565 | |||
2606f262e6 | |||
2caecf6c01 | |||
19170fe6d9 | |||
1fc7900b1c | |||
53d7596160 | |||
886738547a | |||
c11874eb17 | |||
a0ffe16e91 | |||
e3d0751385 | |||
d5185417ec | |||
f7637250f1 | |||
57a9c19f2c | |||
6633144ce8 | |||
6ef055a369 | |||
a4ee9c03ea | |||
9912c9963c | |||
21886adb32 | |||
c85d9143a9 | |||
7ca8d5fc2b | |||
db2c251189 | |||
dd248faecb | |||
68d79b22af | |||
b06da5fa63 | |||
78a1b54a47 | |||
bf277011f9 | |||
96032e0e8c | |||
ddd139255b | |||
edf29e828c | |||
079ab31f88 | |||
e797a3fb34 | |||
a792c59699 | |||
31f9845b61 | |||
cb6f0b8986 | |||
9959acb0e8 | |||
8b1ef17c25 | |||
a254172c12 | |||
57a9e23f16 | |||
4c3660c08d | |||
323b5d0b5d | |||
23f883d906 | |||
60dbcc1b66 | |||
8cabe24b77 | |||
9cfca3c7d1 | |||
cfa0b4363e | |||
815d47e2ff | |||
9bdf560bf8 | |||
47f9beb095 | |||
32d0834c3f | |||
9722ed3df4 | |||
9f72852588 | |||
6e0220ac7b | |||
6d4b7c786e | |||
290e042612 | |||
7e4c9529eb | |||
bc18401fb0 | |||
265899f76f | |||
9e1a41f219 | |||
7893ae5caa | |||
a715639302 | |||
6038fe9a0a | |||
6fba48929a | |||
7eb4eb101c | |||
f2e595e1ab | |||
c1ffbf0111 | |||
f08d3225ad | |||
84542e1ed5 | |||
bb9371b0dc | |||
ab918faea8 | |||
5716577019 | |||
b4a1266cf0 | |||
6527381c91 | |||
fb2abc45cf | |||
54b0dc3781 | |||
0ff90d1687 | |||
62bdbb2e64 | |||
5f8a0122bd | |||
20ea6e3352 | |||
b07dce821a | |||
2f549b82a3 | |||
17243577c5 | |||
c0ba751aaf | |||
eba6c4c6f3 | |||
59e7e3a307 | |||
8bf8995ad8 | |||
2b8dd47a6c | |||
268a45e8dd | |||
e52d5402cf | |||
0db223b148 | |||
420e600864 | |||
190a9551f6 | |||
773f85e0d7 | |||
b5d50c4243 | |||
e3314b3608 | |||
1902d7e1a3 | |||
e0d322d4cc | |||
ecde83a28d | |||
b0167e6296 | |||
16f3ceb997 | |||
2875fc7313 | |||
b9a63603c7 | |||
de40b53d77 | |||
1698b2895b | |||
1d25f97004 | |||
258bfc5689 | |||
35e3e278bf | |||
5341cb5951 | |||
00504a0d52 | |||
ab743c2ee6 | |||
1dd57f6140 | |||
a22a7cf993 | |||
d9026c1791 | |||
2524dc47cf | |||
798eebf638 | |||
9cdfa41113 | |||
aab925c0ed | |||
be1b13f15d | |||
6122fe6ea7 | |||
4201664c7b | |||
3deea2b5da | |||
c3ee52c4fe | |||
f4b72b69ce | |||
5b8fd096d5 | |||
22fee0312d | |||
17292520f2 | |||
711746524c | |||
e04bca0993 | |||
c8d0ed2138 | |||
6deadc25ac | |||
f73e78582b | |||
7b238793d0 | |||
7a09f38a64 | |||
27d21975f0 | |||
60e272e6f0 | |||
dd4971b1cc | |||
749ecc976b | |||
d85c86e3a0 | |||
3303acfcca | |||
1cd12c1023 | |||
1da0214201 | |||
226c81ce78 | |||
ca34981aae | |||
828dbde75c | |||
ac102de1e8 | |||
20e654186c | |||
f42cd2177a | |||
2479501879 | |||
371c414281 | |||
3a5f0d89b9 | |||
9f68e0166b | |||
8b85658c61 | |||
a9c9363d4a | |||
95df4782f3 | |||
9d899376a5 | |||
d8c042fe4a | |||
c355c72f4b | |||
e6c48990d6 | |||
620f11e8a3 | |||
df13ad30b7 | |||
2297432f90 | |||
be48d0bfe9 | |||
2027394d33 | |||
d7de347b37 | |||
9b879baf38 | |||
947f261d17 |
208
.clang-format
Normal file
208
.clang-format
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
# please use clang-format version 16 or later
|
||||||
|
|
||||||
|
Standard: c++17
|
||||||
|
AccessModifierOffset: -8
|
||||||
|
AlignAfterOpenBracket: Align
|
||||||
|
AlignConsecutiveAssignments: false
|
||||||
|
AlignConsecutiveDeclarations: false
|
||||||
|
AlignEscapedNewlines: Left
|
||||||
|
AlignOperands: true
|
||||||
|
AlignTrailingComments: true
|
||||||
|
AllowAllArgumentsOnNextLine: false
|
||||||
|
AllowAllConstructorInitializersOnNextLine: false
|
||||||
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||||||
|
AllowShortBlocksOnASingleLine: false
|
||||||
|
AllowShortCaseLabelsOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: Inline
|
||||||
|
AllowShortIfStatementsOnASingleLine: false
|
||||||
|
AllowShortLambdasOnASingleLine: Inline
|
||||||
|
AllowShortLoopsOnASingleLine: false
|
||||||
|
AlwaysBreakAfterDefinitionReturnType: None
|
||||||
|
AlwaysBreakAfterReturnType: None
|
||||||
|
AlwaysBreakBeforeMultilineStrings: false
|
||||||
|
AlwaysBreakTemplateDeclarations: false
|
||||||
|
BinPackArguments: true
|
||||||
|
BinPackParameters: true
|
||||||
|
BraceWrapping:
|
||||||
|
AfterClass: false
|
||||||
|
AfterControlStatement: false
|
||||||
|
AfterEnum: false
|
||||||
|
AfterFunction: true
|
||||||
|
AfterNamespace: false
|
||||||
|
AfterObjCDeclaration: false
|
||||||
|
AfterStruct: false
|
||||||
|
AfterUnion: false
|
||||||
|
AfterExternBlock: false
|
||||||
|
BeforeCatch: false
|
||||||
|
BeforeElse: false
|
||||||
|
IndentBraces: false
|
||||||
|
SplitEmptyFunction: true
|
||||||
|
SplitEmptyRecord: true
|
||||||
|
SplitEmptyNamespace: true
|
||||||
|
BreakBeforeBinaryOperators: None
|
||||||
|
BreakBeforeBraces: Custom
|
||||||
|
BreakBeforeTernaryOperators: true
|
||||||
|
BreakConstructorInitializers: BeforeColon
|
||||||
|
BreakStringLiterals: false # apparently unpredictable
|
||||||
|
ColumnLimit: 132
|
||||||
|
CompactNamespaces: false
|
||||||
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
||||||
|
ConstructorInitializerIndentWidth: 8
|
||||||
|
ContinuationIndentWidth: 8
|
||||||
|
Cpp11BracedListStyle: true
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
DisableFormat: false
|
||||||
|
FixNamespaceComments: false
|
||||||
|
ForEachMacros:
|
||||||
|
- 'json_object_foreach'
|
||||||
|
- 'json_object_foreach_safe'
|
||||||
|
- 'json_array_foreach'
|
||||||
|
- 'HASH_ITER'
|
||||||
|
IncludeBlocks: Preserve
|
||||||
|
IndentCaseLabels: false
|
||||||
|
IndentPPDirectives: None
|
||||||
|
IndentWidth: 8
|
||||||
|
IndentWrappedFunctionNames: false
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
||||||
|
MaxEmptyLinesToKeep: 1
|
||||||
|
NamespaceIndentation: All
|
||||||
|
ObjCBinPackProtocolList: Auto
|
||||||
|
ObjCBlockIndentWidth: 8
|
||||||
|
ObjCSpaceAfterProperty: true
|
||||||
|
ObjCSpaceBeforeProtocolList: true
|
||||||
|
|
||||||
|
PenaltyBreakAssignment: 10
|
||||||
|
PenaltyBreakBeforeFirstCallParameter: 30
|
||||||
|
PenaltyBreakComment: 10
|
||||||
|
PenaltyBreakFirstLessLess: 0
|
||||||
|
PenaltyBreakString: 10
|
||||||
|
PenaltyExcessCharacter: 100
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
|
|
||||||
|
PointerAlignment: Right
|
||||||
|
ReflowComments: false
|
||||||
|
SortIncludes: false
|
||||||
|
SortUsingDeclarations: false
|
||||||
|
SpaceAfterCStyleCast: false
|
||||||
|
SpaceAfterLogicalNot: false
|
||||||
|
SpaceAfterTemplateKeyword: false
|
||||||
|
SpaceBeforeAssignmentOperators: true
|
||||||
|
SpaceBeforeCtorInitializerColon: true
|
||||||
|
SpaceBeforeInheritanceColon: true
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
SpaceBeforeRangeBasedForLoopColon: true
|
||||||
|
SpaceInEmptyParentheses: false
|
||||||
|
SpacesBeforeTrailingComments: 1
|
||||||
|
SpacesInAngles: false
|
||||||
|
SpacesInCStyleCastParentheses: false
|
||||||
|
SpacesInContainerLiterals: false
|
||||||
|
SpacesInParentheses: false
|
||||||
|
SpacesInSquareBrackets: false
|
||||||
|
StatementMacros:
|
||||||
|
- 'Q_OBJECT'
|
||||||
|
TabWidth: 8
|
||||||
|
TypenameMacros:
|
||||||
|
- 'DARRAY'
|
||||||
|
UseTab: ForContinuationAndIndentation
|
||||||
|
---
|
||||||
|
Language: ObjC
|
||||||
|
AccessModifierOffset: 2
|
||||||
|
AlignArrayOfStructures: Right
|
||||||
|
AlignConsecutiveAssignments: None
|
||||||
|
AlignConsecutiveBitFields: None
|
||||||
|
AlignConsecutiveDeclarations: None
|
||||||
|
AlignConsecutiveMacros:
|
||||||
|
Enabled: true
|
||||||
|
AcrossEmptyLines: false
|
||||||
|
AcrossComments: true
|
||||||
|
AllowShortBlocksOnASingleLine: Never
|
||||||
|
AllowShortEnumsOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: Empty
|
||||||
|
AllowShortIfStatementsOnASingleLine: Never
|
||||||
|
AllowShortLambdasOnASingleLine: None
|
||||||
|
AttributeMacros: ['__unused', '__autoreleasing', '_Nonnull', '__bridge']
|
||||||
|
BitFieldColonSpacing: Both
|
||||||
|
#BreakBeforeBraces: Webkit
|
||||||
|
BreakBeforeBraces: Custom
|
||||||
|
BraceWrapping:
|
||||||
|
AfterCaseLabel: false
|
||||||
|
AfterClass: true
|
||||||
|
AfterControlStatement: Never
|
||||||
|
AfterEnum: false
|
||||||
|
AfterFunction: true
|
||||||
|
AfterNamespace: false
|
||||||
|
AfterObjCDeclaration: false
|
||||||
|
AfterStruct: false
|
||||||
|
AfterUnion: false
|
||||||
|
AfterExternBlock: false
|
||||||
|
BeforeCatch: false
|
||||||
|
BeforeElse: false
|
||||||
|
BeforeLambdaBody: false
|
||||||
|
BeforeWhile: false
|
||||||
|
IndentBraces: false
|
||||||
|
SplitEmptyFunction: false
|
||||||
|
SplitEmptyRecord: false
|
||||||
|
SplitEmptyNamespace: true
|
||||||
|
BreakAfterAttributes: Never
|
||||||
|
BreakArrays: false
|
||||||
|
BreakBeforeConceptDeclarations: Allowed
|
||||||
|
BreakBeforeInlineASMColon: OnlyMultiline
|
||||||
|
BreakConstructorInitializers: AfterColon
|
||||||
|
BreakInheritanceList: AfterComma
|
||||||
|
ColumnLimit: 120
|
||||||
|
ConstructorInitializerIndentWidth: 4
|
||||||
|
ContinuationIndentWidth: 4
|
||||||
|
EmptyLineAfterAccessModifier: Never
|
||||||
|
EmptyLineBeforeAccessModifier: LogicalBlock
|
||||||
|
ExperimentalAutoDetectBinPacking: false
|
||||||
|
FixNamespaceComments: true
|
||||||
|
IndentAccessModifiers: false
|
||||||
|
IndentCaseBlocks: false
|
||||||
|
IndentCaseLabels: true
|
||||||
|
IndentExternBlock: Indent
|
||||||
|
IndentGotoLabels: false
|
||||||
|
IndentRequiresClause: true
|
||||||
|
IndentWidth: 4
|
||||||
|
IndentWrappedFunctionNames: true
|
||||||
|
InsertBraces: false
|
||||||
|
InsertNewlineAtEOF: true
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
LambdaBodyIndentation: Signature
|
||||||
|
NamespaceIndentation: All
|
||||||
|
ObjCBinPackProtocolList: Auto
|
||||||
|
ObjCBlockIndentWidth: 4
|
||||||
|
ObjCBreakBeforeNestedBlockParam: false
|
||||||
|
ObjCSpaceAfterProperty: true
|
||||||
|
ObjCSpaceBeforeProtocolList: true
|
||||||
|
PPIndentWidth: -1
|
||||||
|
PackConstructorInitializers: NextLine
|
||||||
|
QualifierAlignment: Leave
|
||||||
|
ReferenceAlignment: Right
|
||||||
|
RemoveSemicolon: false
|
||||||
|
RequiresClausePosition: WithPreceding
|
||||||
|
RequiresExpressionIndentation: OuterScope
|
||||||
|
SeparateDefinitionBlocks: Always
|
||||||
|
ShortNamespaceLines: 1
|
||||||
|
SortIncludes: false
|
||||||
|
#SortUsingDeclarations: LexicographicNumeric
|
||||||
|
SortUsingDeclarations: true
|
||||||
|
SpaceAfterCStyleCast: true
|
||||||
|
SpaceAfterLogicalNot: false
|
||||||
|
SpaceAroundPointerQualifiers: Default
|
||||||
|
SpaceBeforeCaseColon: false
|
||||||
|
SpaceBeforeCpp11BracedList: true
|
||||||
|
SpaceBeforeCtorInitializerColon: true
|
||||||
|
SpaceBeforeInheritanceColon: true
|
||||||
|
SpaceBeforeParens: ControlStatements
|
||||||
|
SpaceBeforeRangeBasedForLoopColon: true
|
||||||
|
SpaceBeforeSquareBrackets: false
|
||||||
|
SpaceInEmptyBlock: false
|
||||||
|
SpaceInEmptyParentheses: false
|
||||||
|
SpacesBeforeTrailingComments: 2
|
||||||
|
SpacesInConditionalStatement: false
|
||||||
|
SpacesInLineCommentPrefix:
|
||||||
|
Minimum: 1
|
||||||
|
Maximum: -1
|
||||||
|
Standard: c++17
|
||||||
|
TabWidth: 4
|
||||||
|
UseTab: Never
|
46
.cmake-format.json
Normal file
46
.cmake-format.json
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"format": {
|
||||||
|
"line_width": 120,
|
||||||
|
"tab_size": 2,
|
||||||
|
"enable_sort": true,
|
||||||
|
"autosort": true
|
||||||
|
},
|
||||||
|
"additional_commands": {
|
||||||
|
"find_qt": {
|
||||||
|
"flags": [],
|
||||||
|
"kwargs": {
|
||||||
|
"COMPONENTS": "+",
|
||||||
|
"COMPONENTS_WIN": "+",
|
||||||
|
"COMPONENTS_MACOS": "+",
|
||||||
|
"COMPONENTS_LINUX": "+"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"set_target_properties_obs": {
|
||||||
|
"pargs": 1,
|
||||||
|
"flags": [],
|
||||||
|
"kwargs": {
|
||||||
|
"PROPERTIES": {
|
||||||
|
"kwargs": {
|
||||||
|
"PREFIX": 1,
|
||||||
|
"OUTPUT_NAME": 1,
|
||||||
|
"FOLDER": 1,
|
||||||
|
"VERSION": 1,
|
||||||
|
"SOVERSION": 1,
|
||||||
|
"FRAMEWORK": 1,
|
||||||
|
"BUNDLE": 1,
|
||||||
|
"AUTOMOC": 1,
|
||||||
|
"AUTOUIC": 1,
|
||||||
|
"AUTORCC": 1,
|
||||||
|
"AUTOUIC_SEARCH_PATHS": 1,
|
||||||
|
"BUILD_RPATH": 1,
|
||||||
|
"INSTALL_RPATH": 1,
|
||||||
|
"XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC": 1,
|
||||||
|
"XCODE_ATTRIBUTE_CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION": 1,
|
||||||
|
"XCODE_ATTRIBUTE_GCC_WARN_SHADOW":1 ,
|
||||||
|
"LIBRARY_OUTPUT_DIRECTORY": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -9,8 +9,16 @@ indent_style = tab
|
|||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[CMakeLists.txt]
|
[CMakeLists.txt]
|
||||||
indent_style = tab
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 2
|
||||||
|
|
||||||
|
[**/CMakeLists.txt]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[cmake/**/*.cmake]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[*.{yml,yaml}]
|
[*.{yml,yaml}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
21
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
21
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
@ -27,10 +27,9 @@ body:
|
|||||||
- macOS 10.15
|
- macOS 10.15
|
||||||
- macOS 10.14
|
- macOS 10.14
|
||||||
- macOS 10.13
|
- macOS 10.13
|
||||||
- Ubuntu 21.04
|
- Ubuntu 22.04 LTS
|
||||||
- Ubuntu 20.10
|
- Ubuntu 20.10
|
||||||
- Ubuntu 20.04
|
- Ubuntu 20.04 LTS
|
||||||
- Ubuntu 18.04
|
|
||||||
- Other
|
- Other
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@ -48,10 +47,10 @@ body:
|
|||||||
label: OBS Studio Version
|
label: OBS Studio Version
|
||||||
description: What version of OBS Studio are you using?
|
description: What version of OBS Studio are you using?
|
||||||
options:
|
options:
|
||||||
- 27.1.3
|
- 29.0.x
|
||||||
- 27.1.1
|
- 28.1.x
|
||||||
- 27.1.0
|
- 28.0.x
|
||||||
- 27.0.1
|
- 27.2.4
|
||||||
- Git
|
- Git
|
||||||
- Other
|
- Other
|
||||||
validations:
|
validations:
|
||||||
@ -69,11 +68,9 @@ body:
|
|||||||
label: obs-websocket Version
|
label: obs-websocket Version
|
||||||
description: What version of obs-websocket are you using?
|
description: What version of obs-websocket are you using?
|
||||||
options:
|
options:
|
||||||
- 5.0.0-beta1
|
- 5.1.0
|
||||||
- 5.0.0-alpha3
|
- 5.0.1
|
||||||
- 5.0.0-alpha2
|
- 5.0.0
|
||||||
- 4.9.1
|
|
||||||
- 4.9.0
|
|
||||||
- Git
|
- Git
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
@ -29,6 +29,6 @@ Tested OS(s):
|
|||||||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
|
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
|
||||||
- [ ] I have read the [Contributing Guidelines](https://github.com/obsproject/obs-websocket/wiki/Contributing-Guidelines).
|
- [ ] I have read the [Contributing Guidelines](https://github.com/obsproject/obs-websocket/wiki/Contributing-Guidelines).
|
||||||
- [ ] All commit messages are properly formatted and commits squashed where appropriate.
|
- [ ] All commit messages are properly formatted and commits squashed where appropriate.
|
||||||
- [ ] My code is not on the `master` branch.
|
- [ ] My code is not on `master` or a `release/*` branch.
|
||||||
- [ ] The code has been tested.
|
- [ ] The code has been tested.
|
||||||
- [ ] I have included updates to all appropriate documentation.
|
- [ ] I have included updates to all appropriate documentation.
|
||||||
|
22
.github/workflows/crowdin_upload.yml
vendored
Normal file
22
.github/workflows/crowdin_upload.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
name: Upload Language Files 🌐
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- "**/en-US.ini"
|
||||||
|
jobs:
|
||||||
|
upload-language-files:
|
||||||
|
name: Upload Language Files 🌐
|
||||||
|
if: github.repository_owner == 'obsproject'
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 100
|
||||||
|
- name: Upload US English Language Files 🇺🇸
|
||||||
|
uses: obsproject/obs-crowdin-sync/upload@30b5446e3b5eb19595aa68a81ddf896a857302cf
|
||||||
|
env:
|
||||||
|
CROWDIN_PAT: ${{ secrets.CROWDIN_SYNC_CROWDIN_PAT }}
|
||||||
|
GITHUB_EVENT_BEFORE: ${{ github.event.before }}
|
||||||
|
SUBMODULE_NAME: obs-websocket
|
2
.github/workflows/generate_docs.yml
vendored
2
.github/workflows/generate_docs.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
IS_CI: "true"
|
IS_CI: "true"
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout'
|
- name: 'Checkout'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/obs-websocket
|
path: ${{ github.workspace }}/obs-websocket
|
||||||
- name: 'Generate docs'
|
- name: 'Generate docs'
|
||||||
|
24
.github/workflows/lint.yml
vendored
Normal file
24
.github/workflows/lint.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Code Quality
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
markdown:
|
||||||
|
name: Lint Markdown
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: contains(github.event.head_commit.message, '[skip ci]') != true
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Generate docs
|
||||||
|
run: cd docs && ./build_docs.sh
|
||||||
|
- name: Run markdownlint-cli
|
||||||
|
uses: nosborn/github-action-markdown-cli@v3.0.1
|
||||||
|
with:
|
||||||
|
files: .
|
560
.github/workflows/main.yml
vendored
560
.github/workflows/main.yml
vendored
@ -1,560 +0,0 @@
|
|||||||
name: 'CI Multiplatform Build'
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
tags:
|
|
||||||
- '[45].[0-9]+.[0-9]+*'
|
|
||||||
pull_request:
|
|
||||||
paths-ignore:
|
|
||||||
- 'docs/**'
|
|
||||||
- '**.md'
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
windows:
|
|
||||||
name: 'Windows 32/64-bit'
|
|
||||||
runs-on: [windows-2019]
|
|
||||||
if: contains(github.event.head_commit.message, '[skip ci]') != true
|
|
||||||
env:
|
|
||||||
QT_CACHE_VERSION: '2' # Change whenever updating OBS dependencies URL, in order to force a cache reset
|
|
||||||
QT_VERSION: '5.15.2'
|
|
||||||
WINDOWS_DEPS_CACHE_VERSION: '1' # Change whenever updating Qt dependency URL, in order to force a cache reset
|
|
||||||
WINDOWS_DEPS_VERSION: '2019'
|
|
||||||
CMAKE_GENERATOR: 'Visual Studio 16 2019'
|
|
||||||
CMAKE_SYSTEM_VERSION: '10.0'
|
|
||||||
steps:
|
|
||||||
- name: 'Add msbuild to PATH'
|
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
|
||||||
- name: 'Checkout obs-websocket'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/obs-websocket
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: 'Checkout OBS Studio'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: obsproject/obs-studio
|
|
||||||
path: ${{ github.workspace }}/obs-studio
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: 'Get OBS Studio Git Info'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
git fetch --prune --unshallow
|
|
||||||
echo "OBS_GIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
|
||||||
echo "OBS_GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
|
||||||
- name: 'Checkout last OBS Studio release (${{ env.OBS_GIT_TAG }})'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
git checkout ${{ env.OBS_GIT_TAG }}
|
|
||||||
git submodule update
|
|
||||||
- name: 'Get obs-websocket Git Info'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: |
|
|
||||||
git fetch --prune --unshallow
|
|
||||||
GIT_HASH=$(git rev-parse --short HEAD)
|
|
||||||
echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV
|
|
||||||
GIT_TAG=$(git describe --exact-match --tags --abbrev=0) || GIT_TAG=""
|
|
||||||
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
|
|
||||||
if [ "$GIT_TAG" ] ; then \
|
|
||||||
VERSION="$GIT_TAG" \
|
|
||||||
VERSION_SUFFIX=$(echo "$GIT_TAG" | cut -c6-20) ; \
|
|
||||||
else \
|
|
||||||
VERSION="$GIT_HASH-git" \
|
|
||||||
VERSION_SUFFIX="-$GIT_HASH-git" ; \
|
|
||||||
fi
|
|
||||||
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
||||||
echo "CMAKE_VERSION_SUFFIX=$VERSION_SUFFIX" >> $GITHUB_ENV
|
|
||||||
- name: 'Restore Cached Qt'
|
|
||||||
id: qtcache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: Qt_${{ env.QT_VERSION }}.7z
|
|
||||||
key: 'qtdep-${{ env.QT_CACHE_VERSION }} | ${{ runner.os }}'
|
|
||||||
- name: 'Download Prerequisite: Qt'
|
|
||||||
if: steps.qtcache.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
curl -kLO https://tt2468.net/dl/Qt_${{ env.QT_VERSION }}.7z -f --retry 5 -C -
|
|
||||||
- name: 'Extract Prerequisite: Qt'
|
|
||||||
run: |
|
|
||||||
7z x Qt_${{ env.QT_VERSION }}.7z -o"${{ github.workspace }}\cmbuild\QT"
|
|
||||||
- name: 'Restore Cached OBS Studio Dependencies'
|
|
||||||
id: obscache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}\cmbuild\deps\**
|
|
||||||
key: 'obsdep-${{ env.WINDOWS_DEPS_CACHE_VERSION }} | ${{ runner.os }}'
|
|
||||||
- name: 'Install Prerequisite: Pre-built OBS Studio dependencies'
|
|
||||||
if: steps.obscache.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
curl -kLO https://cdn-fastly.obsproject.com/downloads/dependencies${{ env.WINDOWS_DEPS_VERSION }}.zip -f --retry 5 -C -
|
|
||||||
7z x dependencies${{ env.WINDOWS_DEPS_VERSION }}.zip -o"${{ github.workspace }}\cmbuild\deps"
|
|
||||||
- name: 'Restore OBS Studio 32-bit Build v${{ env.OBS_GIT_TAG }} from Cache'
|
|
||||||
id: build-cache-obs-32
|
|
||||||
uses: actions/cache@v2
|
|
||||||
env:
|
|
||||||
CACHE_NAME: 'build-cache-obs-32'
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/obs-studio/build32
|
|
||||||
key: ${{ runner.os }}-${{ env.CACHE_NAME }}-${{ env.OBS_GIT_TAG }}
|
|
||||||
- name: 'Configure OBS Studio 32-bit'
|
|
||||||
if: steps.build-cache-obs-32.outputs.cache-hit != 'true'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
if(!(Test-Path -Path ".\build32")){New-Item -ItemType directory -Path .\build32}
|
|
||||||
cd .\build32
|
|
||||||
cmake -G "${{ env.CMAKE_GENERATOR }}" -A Win32 -DCMAKE_SYSTEM_VERSION="${{ env.CMAKE_SYSTEM_VERSION }}" -DQTDIR="${{ github.workspace }}\cmbuild\QT\${{ env.QT_VERSION }}\msvc2019" -DDepsPath="${{ github.workspace }}\cmbuild\deps\win32" -DCOPIED_DEPENDENCIES=NO -DCOPY_DEPENDENCIES=YES -DBUILD_BROWSER=OFF ..
|
|
||||||
- name: 'Build OBS Studio 32-bit'
|
|
||||||
if: steps.build-cache-obs-32.outputs.cache-hit != 'true'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
msbuild /m /p:Configuration=RelWithDebInfo .\build32\libobs\libobs.vcxproj
|
|
||||||
msbuild /m /p:Configuration=RelWithDebInfo .\build32\UI\obs-frontend-api\obs-frontend-api.vcxproj
|
|
||||||
- name: 'Restore OBS Studio 64-bit Build v${{ env.OBS_GIT_TAG }} from Cache'
|
|
||||||
id: build-cache-obs-64
|
|
||||||
uses: actions/cache@v1
|
|
||||||
env:
|
|
||||||
CACHE_NAME: 'build-cache-obs-64'
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/obs-studio/build64
|
|
||||||
key: ${{ runner.os }}-${{ env.CACHE_NAME }}-${{ env.OBS_GIT_TAG }}
|
|
||||||
- name: 'Configure OBS Studio 64-bit'
|
|
||||||
if: steps.build-cache-obs-64.outputs.cache-hit != 'true'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
if(!(Test-Path -Path ".\build64")){New-Item -ItemType directory -Path .\build64}
|
|
||||||
cd .\build64
|
|
||||||
cmake -G "${{ env.CMAKE_GENERATOR }}" -A x64 -DCMAKE_SYSTEM_VERSION="${{ env.CMAKE_SYSTEM_VERSION }}" -DQTDIR="${{ github.workspace }}\cmbuild\QT\${{ env.QT_VERSION }}\msvc2019_64" -DDepsPath="${{ github.workspace }}\cmbuild\deps\win64" -DCOPIED_DEPENDENCIES=NO -DCOPY_DEPENDENCIES=YES -DBUILD_BROWSER=OFF ..
|
|
||||||
- name: 'Build OBS Studio 64-bit'
|
|
||||||
if: steps.build-cache-obs-64.outputs.cache-hit != 'true'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
msbuild /m /p:Configuration=RelWithDebInfo .\build64\libobs\libobs.vcxproj
|
|
||||||
msbuild /m /p:Configuration=RelWithDebInfo .\build64\UI\obs-frontend-api\obs-frontend-api.vcxproj
|
|
||||||
- name: 'Configure obs-websocket 32-bit'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: |
|
|
||||||
mkdir .\build32
|
|
||||||
cd .\build32
|
|
||||||
cmake -G "${{ env.CMAKE_GENERATOR }}" -A Win32 -DCMAKE_SYSTEM_VERSION="${{ env.CMAKE_SYSTEM_VERSION }}" -DQTDIR="${{ github.workspace }}\cmbuild\QT\${{ env.QT_VERSION }}\msvc2019" -DLibObs_DIR="${{ github.workspace }}\obs-studio\build32\libobs" -DLIBOBS_INCLUDE_DIR="${{ github.workspace }}\obs-studio\libobs" -DLIBOBS_LIB="${{ github.workspace }}\obs-studio\build32\libobs\RelWithDebInfo\obs.lib" -DOBS_FRONTEND_LIB="${{ github.workspace }}\obs-studio\build32\UI\obs-frontend-api\RelWithDebInfo\obs-frontend-api.lib" -DOBS_WEBSOCKET_VERSION_SUFFIX="${{ env.CMAKE_VERSION_SUFFIX }}" ..
|
|
||||||
- name: 'Configure obs-websocket 64-bit'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: |
|
|
||||||
mkdir .\build64
|
|
||||||
cd .\build64
|
|
||||||
cmake -G "${{ env.CMAKE_GENERATOR }}" -A x64 -DCMAKE_SYSTEM_VERSION="${{ env.CMAKE_SYSTEM_VERSION }}" -DQTDIR="${{ github.workspace }}\cmbuild\QT\${{ env.QT_VERSION }}\msvc2019_64" -DLibObs_DIR="${{ github.workspace }}\obs-studio\build64\libobs" -DLIBOBS_INCLUDE_DIR="${{ github.workspace }}\obs-studio\libobs" -DLIBOBS_LIB="${{ github.workspace }}\obs-studio\build64\libobs\RelWithDebInfo\obs.lib" -DOBS_FRONTEND_LIB="${{ github.workspace }}\obs-studio\build64\UI\obs-frontend-api\RelWithDebInfo\obs-frontend-api.lib" -DOBS_WEBSOCKET_VERSION_SUFFIX="${{ env.CMAKE_VERSION_SUFFIX }}" ..
|
|
||||||
- name: 'Build obs-websocket 32-bit'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: msbuild /m /p:Configuration=RelWithDebInfo .\build32\obs-websocket.sln
|
|
||||||
- name: 'Build obs-websocket 64-bit'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: msbuild /m /p:Configuration=RelWithDebInfo .\build64\obs-websocket.sln
|
|
||||||
- name: 'Set PR Artifact Filename'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "WIN_FILENAME=obs-websocket-${{ env.PACKAGE_VERSION }}-Windows" >> $GITHUB_ENV
|
|
||||||
- name: 'Package obs-websocket'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: |
|
|
||||||
mkdir package
|
|
||||||
cd package
|
|
||||||
7z a "${{ env.WIN_FILENAME }}.zip" "..\release\*"
|
|
||||||
iscc ..\installer\installer-windows.generated.iss /O. /F"${{ env.WIN_FILENAME }}-Installer"
|
|
||||||
- name: 'Publish ${{ env.WIN_FILENAME }}.zip'
|
|
||||||
if: success()
|
|
||||||
uses: actions/upload-artifact@v2-preview
|
|
||||||
with:
|
|
||||||
name: 'obs-websocket-${{ env.PACKAGE_VERSION }}-Windows'
|
|
||||||
path: ${{ github.workspace }}/obs-websocket/package/*.zip
|
|
||||||
- name: 'Publish ${{ env.WIN_FILENAME }}-Installer.exe'
|
|
||||||
if: success()
|
|
||||||
uses: actions/upload-artifact@v2-preview
|
|
||||||
with:
|
|
||||||
name: 'obs-websocket-${{ env.PACKAGE_VERSION }}-Windows-Installer'
|
|
||||||
path: ${{ github.workspace }}/obs-websocket/package/*.exe
|
|
||||||
ubuntu64:
|
|
||||||
name: 'Linux/Ubuntu 64-bit'
|
|
||||||
runs-on: [ubuntu-latest]
|
|
||||||
if: contains(github.event.head_commit.message, '[skip ci]') != true
|
|
||||||
steps:
|
|
||||||
- name: 'Checkout obs-websocket'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/obs-websocket
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: 'Checkout OBS Studio'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: obsproject/obs-studio
|
|
||||||
path: ${{ github.workspace }}/obs-studio
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: 'Get OBS Studio Git Info'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
git fetch --prune --unshallow
|
|
||||||
echo "OBS_GIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
|
||||||
echo "OBS_GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
|
||||||
- name: 'Checkout last OBS Studio release (${{ env.OBS_GIT_TAG }})'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
git checkout ${{ env.OBS_GIT_TAG }}
|
|
||||||
git submodule update
|
|
||||||
- name: 'Get obs-websocket git info'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: |
|
|
||||||
git fetch --prune --unshallow
|
|
||||||
GIT_HASH=$(git rev-parse --short HEAD)
|
|
||||||
echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV
|
|
||||||
GIT_TAG=$(git describe --exact-match --tags --abbrev=0) || GIT_TAG=""
|
|
||||||
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
|
|
||||||
if [ "$GIT_TAG" ] ; then \
|
|
||||||
VERSION="$GIT_TAG" \
|
|
||||||
VERSION_SUFFIX=$(echo "$GIT_TAG" | cut -c6-20) ; \
|
|
||||||
else \
|
|
||||||
VERSION="$GIT_HASH-git" \
|
|
||||||
VERSION_SUFFIX="-$GIT_HASH-git" ; \
|
|
||||||
fi
|
|
||||||
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
||||||
echo "CMAKE_VERSION_SUFFIX=$VERSION_SUFFIX" >> $GITHUB_ENV
|
|
||||||
- name: 'Install prerequisites (Apt)'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
sudo dpkg --add-architecture amd64
|
|
||||||
sudo apt-get -qq update
|
|
||||||
sudo apt-get install -y \
|
|
||||||
build-essential \
|
|
||||||
checkinstall \
|
|
||||||
cmake \
|
|
||||||
libasound2-dev \
|
|
||||||
libavcodec-dev \
|
|
||||||
libavdevice-dev \
|
|
||||||
libavfilter-dev \
|
|
||||||
libavformat-dev \
|
|
||||||
libavutil-dev \
|
|
||||||
libcurl4-openssl-dev \
|
|
||||||
libfdk-aac-dev \
|
|
||||||
libfontconfig-dev \
|
|
||||||
libfreetype6-dev \
|
|
||||||
libgl1-mesa-dev \
|
|
||||||
libjack-jackd2-dev \
|
|
||||||
libjansson-dev \
|
|
||||||
libluajit-5.1-dev \
|
|
||||||
libpulse-dev \
|
|
||||||
libqt5x11extras5-dev \
|
|
||||||
libspeexdsp-dev \
|
|
||||||
libswresample-dev \
|
|
||||||
libswscale-dev \
|
|
||||||
libudev-dev \
|
|
||||||
libv4l-dev \
|
|
||||||
libva-dev \
|
|
||||||
libvlc-dev \
|
|
||||||
libx11-dev \
|
|
||||||
libx264-dev \
|
|
||||||
libxcb-randr0-dev \
|
|
||||||
libxcb-shm0-dev \
|
|
||||||
libxcb-xinerama0-dev \
|
|
||||||
libxcomposite-dev \
|
|
||||||
libxinerama-dev \
|
|
||||||
libmbedtls-dev \
|
|
||||||
pkg-config \
|
|
||||||
python3-dev \
|
|
||||||
qtbase5-dev \
|
|
||||||
qtbase5-private-dev \
|
|
||||||
libqt5svg5-dev \
|
|
||||||
swig \
|
|
||||||
libxcb-randr0-dev \
|
|
||||||
libxcb-xfixes0-dev \
|
|
||||||
libx11-xcb-dev \
|
|
||||||
libxcb1-dev \
|
|
||||||
libxss-dev \
|
|
||||||
- name: 'Configure OBS Studio'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir ./build
|
|
||||||
cd ./build
|
|
||||||
cmake -DDISABLE_PLUGINS=YES -DENABLE_SCRIPTING=NO -DUNIX_STRUCTURE=YES -DCMAKE_INSTALL_PREFIX=/usr ..
|
|
||||||
- name: 'Build OBS Studio'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
cd ./build
|
|
||||||
make -j4 libobs obs-frontend-api
|
|
||||||
- name: 'Install OBS Studio'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
cd ./build
|
|
||||||
sudo cp ./libobs/libobs.so /usr/lib
|
|
||||||
sudo cp ./UI/obs-frontend-api/libobs-frontend-api.so /usr/lib
|
|
||||||
sudo mkdir -p /usr/include/obs
|
|
||||||
sudo cp ../UI/obs-frontend-api/obs-frontend-api.h /usr/include/obs/obs-frontend-api.h
|
|
||||||
- name: 'Configure obs-websocket'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir ./build
|
|
||||||
cd ./build
|
|
||||||
if [ "${{ env.GIT_TAG }}" ] ; then \
|
|
||||||
cmake -DLIBOBS_INCLUDE_DIR=${{ github.workspace }}/obs-studio/libobs -DCMAKE_INSTALL_PREFIX=/usr -DUSE_UBUNTU_FIX=TRUE -DOBS_WEBSOCKET_VERSION_SUFFIX="${{ env.CMAKE_VERSION_SUFFIX }}" -DCMAKE_BUILD_TYPE=Release .. ; \
|
|
||||||
else \
|
|
||||||
cmake -DLIBOBS_INCLUDE_DIR=${{ github.workspace }}/obs-studio/libobs -DCMAKE_INSTALL_PREFIX=/usr -DUSE_UBUNTU_FIX=TRUE -DOBS_WEBSOCKET_VERSION_SUFFIX="${{ env.CMAKE_VERSION_SUFFIX }}" -DPLUGIN_TESTS=TRUE .. ; \
|
|
||||||
fi
|
|
||||||
- name: 'Build obs-websocket'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
cd ./build
|
|
||||||
make -j4
|
|
||||||
- name: 'Set PR Artifact Filename'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "LINUX_FILENAME=obs-websocket-${{ env.PACKAGE_VERSION }}-Ubuntu64.deb" >> $GITHUB_ENV
|
|
||||||
- name: 'Package ${{ env.LINUX_FILENAME }}'
|
|
||||||
if: success()
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if [ "${{ env.GIT_TAG }}" ] ; then \
|
|
||||||
CHECKINSTALL_VERSION="${{ env.PACKAGE_VERSION }}" ; \
|
|
||||||
else \
|
|
||||||
CHECKINSTALL_VERSION="1-${{ env.PACKAGE_VERSION }}" ; \
|
|
||||||
fi
|
|
||||||
cd ./build
|
|
||||||
sudo checkinstall -y --type=debian --fstrans=no -nodoc \
|
|
||||||
--backup=no --deldoc=yes --install=no --pkgname=obs-websocket --pkgversion="$CHECKINSTALL_VERSION" \
|
|
||||||
--pkglicense="GPLv2.0" --maintainer="${{ github.event.pusher.email }}" --pkggroup="video" \
|
|
||||||
--pkgsource="${{ github.event.repository.html_url }}" \
|
|
||||||
--requires="obs-studio,libqt5network5,libqt5concurrent5,qt5-image-formats-plugins" \
|
|
||||||
--pakdir="../package"
|
|
||||||
sudo chmod ao+r ../package/*
|
|
||||||
sudo mv ../package/* ../package/${{ env.LINUX_FILENAME }}
|
|
||||||
cd -
|
|
||||||
- name: 'Publish ${{ env.LINUX_FILENAME }}'
|
|
||||||
if: success()
|
|
||||||
uses: actions/upload-artifact@v2-preview
|
|
||||||
with:
|
|
||||||
name: 'obs-websocket-${{ env.PACKAGE_VERSION }}-Ubuntu64'
|
|
||||||
path: '${{ github.workspace }}/obs-websocket/package/*.deb'
|
|
||||||
macOS:
|
|
||||||
name: 'macOS 64-bit'
|
|
||||||
runs-on: [macos-latest]
|
|
||||||
if: contains(github.event.head_commit.message, '[skip ci]') != true
|
|
||||||
env:
|
|
||||||
MACOS_DEPS_VERSION: '2022-01-01'
|
|
||||||
MACOS_DEPS_CACHE_VERSION: '2' # Change whenever updating dependencies version, in order to force a cache reset
|
|
||||||
steps:
|
|
||||||
- name: 'Checkout obs-websocket'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/obs-websocket
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: 'Checkout OBS Studio'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: obsproject/obs-studio
|
|
||||||
path: ${{ github.workspace }}/obs-studio
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: 'Install Prerequisite: Binary Signing Certificate'
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
|
||||||
with:
|
|
||||||
p12-file-base64: ${{ secrets.MACOS_SIGNING_CERT }}
|
|
||||||
p12-password: ${{ secrets.MACOS_SIGNING_CERT_PASSWORD }}
|
|
||||||
create-keychain: true
|
|
||||||
keychain-password: ${{ secrets.MACOS_TEMP_CI_KEYCHAIN_PASSWORD }}
|
|
||||||
- name: 'Install Prerequisite: Installer Signing Certificate'
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
|
||||||
with:
|
|
||||||
p12-file-base64: ${{ secrets.MACOS_INSTALLER_CERT }}
|
|
||||||
p12-password: ${{ secrets.MACOS_INSTALLER_CERT_PASSWORD }}
|
|
||||||
create-keychain: false
|
|
||||||
keychain-password: ${{ secrets.MACOS_TEMP_CI_KEYCHAIN_PASSWORD }}
|
|
||||||
- name: 'Get OBS Studio Git Info'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
git fetch --prune --unshallow
|
|
||||||
echo "OBS_GIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
|
||||||
echo "OBS_GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
|
||||||
- name: 'Checkout last OBS Studio release (${{ env.OBS_GIT_TAG }})'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
run: |
|
|
||||||
git checkout ${{ env.OBS_GIT_TAG }}
|
|
||||||
git submodule update
|
|
||||||
- name: 'Get obs-websocket git info'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: |
|
|
||||||
git fetch --prune --unshallow
|
|
||||||
GIT_HASH=$(git rev-parse --short HEAD)
|
|
||||||
echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV
|
|
||||||
GIT_TAG=$(git describe --exact-match --tags --abbrev=0) || GIT_TAG=""
|
|
||||||
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
|
|
||||||
if [ "$GIT_TAG" ] ; then \
|
|
||||||
VERSION="$GIT_TAG" \
|
|
||||||
VERSION_SUFFIX=$(echo "$GIT_TAG" | cut -c6-20) ; \
|
|
||||||
else \
|
|
||||||
VERSION="$GIT_HASH-git" \
|
|
||||||
VERSION_SUFFIX="-$GIT_HASH-git" ; \
|
|
||||||
fi
|
|
||||||
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
|
|
||||||
echo "CMAKE_VERSION_SUFFIX=$VERSION_SUFFIX" >> $GITHUB_ENV
|
|
||||||
- name: 'Install Packages'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
curl -L -O http://s.sudre.free.fr/Software/files/Packages.dmg
|
|
||||||
sudo hdiutil attach ./Packages.dmg
|
|
||||||
sudo installer -pkg /Volumes/Packages\ 1.2.10/Install\ Packages.pkg -target /
|
|
||||||
- name: 'Restore Cached Qt & OBS Studio dependencies'
|
|
||||||
id: deps-cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/obsdeps/**
|
|
||||||
key: 'deps-cache-${{ env.MACOS_DEPS_CACHE_VERSION }} | ${{ runner.os }}'
|
|
||||||
- name: 'Install Prerequisite: Qt + OBS Studio dependencies'
|
|
||||||
if: steps.deps-cache.outputs.cache-hit != 'true'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir -p obsdeps
|
|
||||||
curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.MACOS_DEPS_VERSION }}/macos-deps-qt-${{ env.MACOS_DEPS_VERSION }}-universal.tar.xz
|
|
||||||
tar -xf macos-deps-qt-${{ env.MACOS_DEPS_VERSION }}-universal.tar.xz -C "./obsdeps"
|
|
||||||
curl -L -O https://github.com/obsproject/obs-deps/releases/download/${{ env.MACOS_DEPS_VERSION }}/macos-deps-${{ env.MACOS_DEPS_VERSION }}-universal.tar.xz
|
|
||||||
tar -xf macos-deps-${{ env.MACOS_DEPS_VERSION }}-universal.tar.xz -C "./obsdeps"
|
|
||||||
- run: xattr -r -d com.apple.quarantine ./obsdeps
|
|
||||||
shell: bash
|
|
||||||
- name: 'Configue OBS Studio'
|
|
||||||
if: steps.cache-obs-build.outputs.cache-hit != 'true'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir -p ./build
|
|
||||||
cd ./build
|
|
||||||
cmake .. \
|
|
||||||
-DQTDIR=${{ github.workspace }}/obsdeps \
|
|
||||||
-DDepsPath=${{ github.workspace }}/obsdeps \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
|
|
||||||
-DDISABLE_PLUGINS=true \
|
|
||||||
-DENABLE_SCRIPTING=0 \
|
|
||||||
-DCMAKE_PREFIX_PATH=${{ github.workspace }}/obsdeps/lib/cmake
|
|
||||||
- name: 'Build OBS Studio'
|
|
||||||
if: steps.cache-obs-build.outputs.cache-hit != 'true'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-studio/build
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
make -j4 libobs obs-frontend-api
|
|
||||||
- name: 'Configure obs-websocket'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
cmake .. \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
|
|
||||||
-DQTDIR=${{ github.workspace }}/obsdeps \
|
|
||||||
-DLIBOBS_INCLUDE_DIR=${{ github.workspace }}/obs-studio/libobs \
|
|
||||||
-DLIBOBS_LIB=${{ github.workspace }}/obs-studio/libobs \
|
|
||||||
-DOBS_FRONTEND_LIB="${{ github.workspace }}/obs-studio/build/UI/obs-frontend-api/libobs-frontend-api.dylib" \
|
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
-DOBS_WEBSOCKET_VERSION_SUFFIX="${{ env.CMAKE_VERSION_SUFFIX }}"
|
|
||||||
- name: 'Build obs-websocket'
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket/build
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
make -j4
|
|
||||||
- name: 'Relink Qt'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket/build
|
|
||||||
run: |
|
|
||||||
install_name_tool \
|
|
||||||
-change /tmp/obsdeps/lib/QtWidgets.framework/Versions/5/QtWidgets \
|
|
||||||
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets \
|
|
||||||
-change /tmp/obsdeps/lib/QtGui.framework/Versions/5/QtGui \
|
|
||||||
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui \
|
|
||||||
-change /tmp/obsdeps/lib/QtCore.framework/Versions/5/QtCore \
|
|
||||||
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore \
|
|
||||||
-change /tmp/obsdeps/lib/QtNetwork.framework/Versions/5/QtNetwork \
|
|
||||||
@executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork \
|
|
||||||
-change /tmp/obsdeps/lib/QtSvg.framework/Versions/5/QtSvg \
|
|
||||||
@executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg \
|
|
||||||
./obs-websocket.so
|
|
||||||
- name: 'Sign plugin binary'
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket/build
|
|
||||||
run: |
|
|
||||||
codesign --sign "${{ secrets.MACOS_SIGNING_IDENTITY }}" ./obs-websocket.so
|
|
||||||
- name: 'Set PR Artifact Filename'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "MACOS_FILENAME=obs-websocket-${{ env.PACKAGE_VERSION }}-macOS.pkg" >> $GITHUB_ENV
|
|
||||||
echo "MACOS_FILENAME_UNSIGNED=obs-websocket-${{ env.PACKAGE_VERSION }}-macOS-Unsigned.pkg" >> $GITHUB_ENV
|
|
||||||
- name: 'Package ${{ env.MACOS_FILENAME_UNSIGNED }}'
|
|
||||||
if: success()
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
packagesbuild ./CI/macos/obs-websocket.pkgproj
|
|
||||||
mv ./release/obs-websocket.pkg ./release/${{ env.MACOS_FILENAME_UNSIGNED }}
|
|
||||||
- name: 'Sign plugin package'
|
|
||||||
if: ${{ env.GIT_TAG != '' }}
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: |
|
|
||||||
productsign \
|
|
||||||
--sign "${{ secrets.MACOS_INSTALLER_IDENTITY }}" \
|
|
||||||
./release/${{ env.MACOS_FILENAME_UNSIGNED }} \
|
|
||||||
./release/${{ env.MACOS_FILENAME }}
|
|
||||||
rm ./release/${{ env.MACOS_FILENAME_UNSIGNED }}
|
|
||||||
- name: 'Notarize package'
|
|
||||||
if: ${{ env.GIT_TAG != '' }}
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ github.workspace }}/obs-websocket
|
|
||||||
run: |
|
|
||||||
zip -r ./release/${{ env.MACOS_FILENAME }}.zip ./release/${{ env.MACOS_FILENAME }}
|
|
||||||
UPLOAD_RESULT=$(xcrun altool --notarize-app \
|
|
||||||
--primary-bundle-id "com.obsproject.obs-websocket" \
|
|
||||||
--username "${{ secrets.MACOS_NOTARIZATION_USERNAME }}" \
|
|
||||||
--password "${{ secrets.MACOS_NOTARIZATION_PASSWORD }}" \
|
|
||||||
--asc-provider "${{ secrets.ASC_PROVIDER_SHORTNAME }}" \
|
|
||||||
--file "./release/${{ env.MACOS_FILENAME }}.zip")
|
|
||||||
|
|
||||||
rm ./release/${{ env.MACOS_FILENAME }}.zip
|
|
||||||
|
|
||||||
REQUEST_UUID=$(echo $UPLOAD_RESULT | awk -F ' = ' '/RequestUUID/ {print $2}')
|
|
||||||
|
|
||||||
# Pieces of code borrowed from rednoah/notarized-app
|
|
||||||
while sleep 30 && date; do
|
|
||||||
CHECK_RESULT=$(xcrun altool \
|
|
||||||
--notarization-info "$REQUEST_UUID" \
|
|
||||||
--username "${{ secrets.MACOS_NOTARIZATION_USERNAME }}" \
|
|
||||||
--password "${{ secrets.MACOS_NOTARIZATION_PASSWORD }}" \
|
|
||||||
--asc-provider "${{ secrets.ASC_PROVIDER_SHORTNAME }}")
|
|
||||||
|
|
||||||
if ! grep -q "Status: in progress" <<< "$CHECK_RESULT"; then
|
|
||||||
xcrun stapler staple ./release/${{ env.MACOS_FILENAME }}
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
- name: 'Publish Packages'
|
|
||||||
if: success()
|
|
||||||
uses: actions/upload-artifact@v2-preview
|
|
||||||
with:
|
|
||||||
name: 'obs-websocket-${{ env.PACKAGE_VERSION }}-macOS'
|
|
||||||
path: '${{ github.workspace }}/obs-websocket/release/*.pkg'
|
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,14 +1,12 @@
|
|||||||
*~
|
*~
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
/build/
|
/build/
|
||||||
/build32/
|
/build32/
|
||||||
/build64/
|
/build64/
|
||||||
/release/
|
/release/
|
||||||
/package/
|
/package/
|
||||||
/installer/Output/
|
/installer/Output/
|
||||||
.idea
|
|
||||||
.vscode
|
|
||||||
/docs/node_modules/
|
/docs/node_modules/
|
||||||
/src/plugin-macros.generated.h
|
|
||||||
/installer/installer-windows.generated.iss
|
|
||||||
/cmake-build-debug/
|
/cmake-build-debug/
|
||||||
|
12
.gitmodules
vendored
12
.gitmodules
vendored
@ -1,12 +0,0 @@
|
|||||||
[submodule "deps/websocketpp"]
|
|
||||||
path = deps/websocketpp
|
|
||||||
url = https://github.com/zaphoyd/websocketpp.git
|
|
||||||
[submodule "deps/asio"]
|
|
||||||
path = deps/asio
|
|
||||||
url = https://github.com/chriskohlhoff/asio.git
|
|
||||||
[submodule "deps/json"]
|
|
||||||
path = deps/json
|
|
||||||
url = https://github.com/nlohmann/json.git
|
|
||||||
[submodule "deps/qr"]
|
|
||||||
path = deps/qr
|
|
||||||
url = https://github.com/nayuki/QR-Code-generator.git
|
|
||||||
|
2
.markdownlintignore
Normal file
2
.markdownlintignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/deps
|
||||||
|
/docs/comments/node_modules
|
3
.markdownlintrc
Normal file
3
.markdownlintrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"line-length": false
|
||||||
|
}
|
@ -1,726 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>PROJECT</key>
|
|
||||||
<dict>
|
|
||||||
<key>PACKAGE_FILES</key>
|
|
||||||
<dict>
|
|
||||||
<key>DEFAULT_INSTALL_LOCATION</key>
|
|
||||||
<string>/</string>
|
|
||||||
<key>HIERARCHY</key>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>../../build/obs-websocket.so</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>3</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>bin</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>2</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>../../data</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>3</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>obs-websocket</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>2</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>plugins</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>2</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>obs-studio</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>2</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Application Support</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Automator</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Documentation</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Extensions</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Filesystems</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Frameworks</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Input Methods</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Internet Plug-Ins</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>LaunchAgents</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>LaunchDaemons</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>PreferencePanes</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Preferences</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Printers</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>PrivilegedHelperTools</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>QuickLook</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>QuickTime</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Screen Savers</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Scripts</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Services</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Widgets</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Library</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>CHILDREN</key>
|
|
||||||
<array/>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Shared</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>1023</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>80</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>Users</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>GID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>/</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>PERMISSIONS</key>
|
|
||||||
<integer>493</integer>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>UID</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<key>PAYLOAD_TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>VERSION</key>
|
|
||||||
<integer>4</integer>
|
|
||||||
</dict>
|
|
||||||
<key>PACKAGE_SCRIPTS</key>
|
|
||||||
<dict>
|
|
||||||
<key>RESOURCES</key>
|
|
||||||
<array/>
|
|
||||||
</dict>
|
|
||||||
<key>PACKAGE_SETTINGS</key>
|
|
||||||
<dict>
|
|
||||||
<key>AUTHENTICATION</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>CONCLUSION_ACTION</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
<key>IDENTIFIER</key>
|
|
||||||
<string>com.obsproject.obs-websocket</string>
|
|
||||||
<key>OVERWRITE_PERMISSIONS</key>
|
|
||||||
<false/>
|
|
||||||
<key>VERSION</key>
|
|
||||||
<string>5.0.0</string>
|
|
||||||
</dict>
|
|
||||||
<key>PROJECT_COMMENTS</key>
|
|
||||||
<dict>
|
|
||||||
<key>NOTES</key>
|
|
||||||
<data>
|
|
||||||
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1M
|
|
||||||
IDQuMDEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbDQv
|
|
||||||
c3RyaWN0LmR0ZCI+CjxodG1sPgo8aGVhZD4KPG1ldGEgaHR0cC1l
|
|
||||||
cXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7
|
|
||||||
IGNoYXJzZXQ9VVRGLTgiPgo8bWV0YSBodHRwLWVxdWl2PSJDb250
|
|
||||||
ZW50LVN0eWxlLVR5cGUiIGNvbnRlbnQ9InRleHQvY3NzIj4KPHRp
|
|
||||||
dGxlPjwvdGl0bGU+CjxtZXRhIG5hbWU9IkdlbmVyYXRvciIgY29u
|
|
||||||
dGVudD0iQ29jb2EgSFRNTCBXcml0ZXIiPgo8bWV0YSBuYW1lPSJD
|
|
||||||
b2NvYVZlcnNpb24iIGNvbnRlbnQ9IjE0MDQuMTMiPgo8c3R5bGUg
|
|
||||||
dHlwZT0idGV4dC9jc3MiPgo8L3N0eWxlPgo8L2hlYWQ+Cjxib2R5
|
|
||||||
Pgo8L2JvZHk+CjwvaHRtbD4K
|
|
||||||
</data>
|
|
||||||
</dict>
|
|
||||||
<key>PROJECT_SETTINGS</key>
|
|
||||||
<dict>
|
|
||||||
<key>BUILD_PATH</key>
|
|
||||||
<dict>
|
|
||||||
<key>PATH</key>
|
|
||||||
<string>../../release</string>
|
|
||||||
<key>PATH_TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</dict>
|
|
||||||
<key>EXCLUDED_FILES</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>PATTERNS_ARRAY</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>.DS_Store</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>PROTECTED</key>
|
|
||||||
<true/>
|
|
||||||
<key>PROXY_NAME</key>
|
|
||||||
<string>Remove .DS_Store files</string>
|
|
||||||
<key>PROXY_TOOLTIP</key>
|
|
||||||
<string>Remove ".DS_Store" files created by the Finder.</string>
|
|
||||||
<key>STATE</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>PATTERNS_ARRAY</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>.pbdevelopment</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>PROTECTED</key>
|
|
||||||
<true/>
|
|
||||||
<key>PROXY_NAME</key>
|
|
||||||
<string>Remove .pbdevelopment files</string>
|
|
||||||
<key>PROXY_TOOLTIP</key>
|
|
||||||
<string>Remove ".pbdevelopment" files created by ProjectBuilder or Xcode.</string>
|
|
||||||
<key>STATE</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>PATTERNS_ARRAY</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>CVS</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>.cvsignore</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>.cvspass</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>.svn</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>.git</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>.gitignore</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>PROTECTED</key>
|
|
||||||
<true/>
|
|
||||||
<key>PROXY_NAME</key>
|
|
||||||
<string>Remove SCM metadata</string>
|
|
||||||
<key>PROXY_TOOLTIP</key>
|
|
||||||
<string>Remove helper files and folders used by the CVS, SVN or Git Source Code Management systems.</string>
|
|
||||||
<key>STATE</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>PATTERNS_ARRAY</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>classes.nib</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>designable.db</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>info.nib</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>0</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>PROTECTED</key>
|
|
||||||
<true/>
|
|
||||||
<key>PROXY_NAME</key>
|
|
||||||
<string>Optimize nib files</string>
|
|
||||||
<key>PROXY_TOOLTIP</key>
|
|
||||||
<string>Remove "classes.nib", "info.nib" and "designable.nib" files within .nib bundles.</string>
|
|
||||||
<key>STATE</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>PATTERNS_ARRAY</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>REGULAR_EXPRESSION</key>
|
|
||||||
<false/>
|
|
||||||
<key>STRING</key>
|
|
||||||
<string>Resources Disabled</string>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>PROTECTED</key>
|
|
||||||
<true/>
|
|
||||||
<key>PROXY_NAME</key>
|
|
||||||
<string>Remove Resources Disabled folders</string>
|
|
||||||
<key>PROXY_TOOLTIP</key>
|
|
||||||
<string>Remove "Resources Disabled" folders.</string>
|
|
||||||
<key>STATE</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
<dict>
|
|
||||||
<key>SEPARATOR</key>
|
|
||||||
<true/>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
<key>NAME</key>
|
|
||||||
<string>obs-websocket</string>
|
|
||||||
</dict>
|
|
||||||
</dict>
|
|
||||||
<key>TYPE</key>
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>VERSION</key>
|
|
||||||
<integer>2</integer>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
505
CMakeLists.txt
505
CMakeLists.txt
@ -1,340 +1,185 @@
|
|||||||
cmake_minimum_required(VERSION 3.16...3.20)
|
cmake_minimum_required(VERSION 3.16...3.25)
|
||||||
|
|
||||||
# Version variables
|
legacy_check()
|
||||||
project(obs-websocket VERSION 5.0.0)
|
|
||||||
|
set(obs-websocket_VERSION 5.5.2)
|
||||||
set(OBS_WEBSOCKET_RPC_VERSION 1)
|
set(OBS_WEBSOCKET_RPC_VERSION 1)
|
||||||
|
|
||||||
|
include(cmake/obs-websocket-api.cmake)
|
||||||
|
|
||||||
# Set correct version string
|
option(ENABLE_WEBSOCKET "Enable building OBS with websocket plugin" ON)
|
||||||
if(DEFINED OBS_WEBSOCKET_VERSION_SUFFIX AND NOT OBS_WEBSOCKET_VERSION_SUFFIX STREQUAL "")
|
if(NOT ENABLE_WEBSOCKET)
|
||||||
set(OBS_WEBSOCKET_VERSION "${CMAKE_PROJECT_VERSION}${OBS_WEBSOCKET_VERSION_SUFFIX}")
|
target_disable(obs-websocket)
|
||||||
message(WARNING "-----------------------------------\nVersion Suffix provided. OBS_WEBSOCKET_VERSION is now ${OBS_WEBSOCKET_VERSION}\n-----------------------------------")
|
return()
|
||||||
else()
|
|
||||||
set(OBS_WEBSOCKET_VERSION "${CMAKE_PROJECT_VERSION}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Find Qt
|
||||||
|
find_package(Qt6 REQUIRED Core Widgets Svg Network)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
# Find nlohmann JSON
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
find_package(nlohmann_json 3 REQUIRED)
|
||||||
|
|
||||||
|
# Find qrcodegencpp
|
||||||
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
|
||||||
|
find_package(qrcodegencpp REQUIRED)
|
||||||
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG OFF)
|
||||||
|
|
||||||
# Prohibit in-source builds
|
# Find WebSocket++
|
||||||
file(TO_CMAKE_PATH "${PROJECT_BINARY_DIR}/CMakeLists.txt" _LOC_PATH)
|
find_package(Websocketpp 0.8 REQUIRED)
|
||||||
if(EXISTS "${LOC_PATH}")
|
|
||||||
message(FATAL_ERROR "obs-websocket: You cannot build in a source directory (or any directory with "
|
# Find Asio
|
||||||
"CMakeLists.txt file). Please make a build subdirectory. Feel free to "
|
find_package(Asio 1.12.1 REQUIRED)
|
||||||
"remove CMakeCache.txt and CMakeFiles.")
|
|
||||||
endif()
|
add_library(obs-websocket MODULE)
|
||||||
unset(_LOC_PATH)
|
add_library(OBS::websocket ALIAS obs-websocket)
|
||||||
|
|
||||||
|
target_sources(
|
||||||
# Allow selection of common build types via UI
|
obs-websocket
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
PRIVATE # cmake-format: sortable
|
||||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
|
src/Config.cpp
|
||||||
"OBS build type [Release, RelWithDebInfo, Debug, MinSizeRel]" FORCE)
|
src/Config.h
|
||||||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Release RelWithDebInfo Debug MinSizeRel)
|
src/forms/ConnectInfo.cpp
|
||||||
endif()
|
src/forms/ConnectInfo.h
|
||||||
|
src/forms/resources.qrc
|
||||||
|
src/forms/SettingsDialog.cpp
|
||||||
# Plugin tests flag
|
src/forms/SettingsDialog.h
|
||||||
option(PLUGIN_TESTS "Enable plugin runtime tests" OFF)
|
src/obs-websocket.cpp
|
||||||
|
src/obs-websocket.h
|
||||||
|
src/WebSocketApi.cpp
|
||||||
# Qt build stuff
|
src/WebSocketApi.h)
|
||||||
set(CMAKE_PREFIX_PATH "${QTDIR}")
|
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
target_sources(
|
||||||
set(CMAKE_AUTOMOC ON)
|
obs-websocket
|
||||||
set(CMAKE_AUTOUIC ON)
|
PRIVATE # cmake-format: sortable
|
||||||
|
src/websocketserver/rpc/WebSocketSession.h
|
||||||
set(CMAKE_AUTORCC ON) # For resources.qrc
|
src/websocketserver/types/WebSocketCloseCode.h
|
||||||
|
src/websocketserver/types/WebSocketOpCode.h
|
||||||
# Tell websocketpp not to use system boost
|
src/websocketserver/WebSocketServer.cpp
|
||||||
add_definitions(-DASIO_STANDALONE)
|
src/websocketserver/WebSocketServer.h
|
||||||
|
src/websocketserver/WebSocketServer_Protocol.cpp)
|
||||||
|
|
||||||
# Arm build fixes
|
target_sources(
|
||||||
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
|
obs-websocket
|
||||||
set(CMAKE_CXX_FLAGS "-mfpu=neon")
|
PRIVATE # cmake-format: sortable
|
||||||
endif()
|
src/eventhandler/EventHandler.cpp
|
||||||
|
src/eventhandler/EventHandler.h
|
||||||
|
src/eventhandler/EventHandler_Config.cpp
|
||||||
# Find libobs
|
src/eventhandler/EventHandler_Filters.cpp
|
||||||
if (WIN32 OR APPLE)
|
src/eventhandler/EventHandler_General.cpp
|
||||||
include(cmake/FindLibObs.cmake)
|
src/eventhandler/EventHandler_Inputs.cpp
|
||||||
endif()
|
src/eventhandler/EventHandler_MediaInputs.cpp
|
||||||
find_package(LibObs REQUIRED)
|
src/eventhandler/EventHandler_Outputs.cpp
|
||||||
|
src/eventhandler/EventHandler_SceneItems.cpp
|
||||||
|
src/eventhandler/EventHandler_Scenes.cpp
|
||||||
# Find Qt5
|
src/eventhandler/EventHandler_Transitions.cpp
|
||||||
find_package(Qt5 REQUIRED COMPONENTS Core Widgets Svg Network)
|
src/eventhandler/EventHandler_Ui.cpp
|
||||||
|
src/eventhandler/types/EventSubscription.h)
|
||||||
|
|
||||||
# Find nlohmann
|
target_sources(
|
||||||
set(JSON_BuildTests OFF CACHE INTERNAL "")
|
obs-websocket
|
||||||
add_subdirectory(deps/json)
|
PRIVATE # cmake-format: sortable
|
||||||
|
src/requesthandler/RequestBatchHandler.cpp
|
||||||
|
src/requesthandler/RequestBatchHandler.h
|
||||||
# Configure files
|
src/requesthandler/RequestHandler.cpp
|
||||||
configure_file(
|
src/requesthandler/RequestHandler.h
|
||||||
src/plugin-macros.h.in
|
src/requesthandler/RequestHandler_Config.cpp
|
||||||
../src/plugin-macros.generated.h
|
src/requesthandler/RequestHandler_Filters.cpp
|
||||||
)
|
src/requesthandler/RequestHandler_General.cpp
|
||||||
configure_file(
|
src/requesthandler/RequestHandler_Inputs.cpp
|
||||||
installer/installer-windows.iss.in
|
src/requesthandler/RequestHandler_MediaInputs.cpp
|
||||||
../installer/installer-windows.generated.iss
|
src/requesthandler/RequestHandler_Outputs.cpp
|
||||||
)
|
src/requesthandler/RequestHandler_Record.cpp
|
||||||
|
src/requesthandler/RequestHandler_SceneItems.cpp
|
||||||
|
src/requesthandler/RequestHandler_Scenes.cpp
|
||||||
# Inlude sources
|
src/requesthandler/RequestHandler_Sources.cpp
|
||||||
set(obs-websocket_SOURCES
|
src/requesthandler/RequestHandler_Stream.cpp
|
||||||
src/obs-websocket.cpp
|
src/requesthandler/RequestHandler_Transitions.cpp
|
||||||
src/Config.cpp
|
src/requesthandler/RequestHandler_Ui.cpp
|
||||||
src/WebSocketApi.cpp
|
src/requesthandler/rpc/Request.cpp
|
||||||
src/websocketserver/WebSocketServer.cpp
|
src/requesthandler/rpc/Request.h
|
||||||
src/websocketserver/WebSocketServer_Protocol.cpp
|
src/requesthandler/rpc/RequestBatchRequest.cpp
|
||||||
src/websocketserver/rpc/WebSocketSession.cpp
|
src/requesthandler/rpc/RequestBatchRequest.h
|
||||||
src/eventhandler/EventHandler.cpp
|
src/requesthandler/rpc/RequestResult.cpp
|
||||||
src/eventhandler/EventHandler_General.cpp
|
src/requesthandler/rpc/RequestResult.h
|
||||||
src/eventhandler/EventHandler_Config.cpp
|
src/requesthandler/types/RequestBatchExecutionType.h
|
||||||
src/eventhandler/EventHandler_Scenes.cpp
|
src/requesthandler/types/RequestStatus.h)
|
||||||
src/eventhandler/EventHandler_Inputs.cpp
|
|
||||||
src/eventhandler/EventHandler_Transitions.cpp
|
target_sources(
|
||||||
src/eventhandler/EventHandler_Filters.cpp
|
obs-websocket
|
||||||
src/eventhandler/EventHandler_Outputs.cpp
|
PRIVATE # cmake-format: sortable
|
||||||
src/eventhandler/EventHandler_SceneItems.cpp
|
src/utils/Compat.cpp
|
||||||
src/eventhandler/EventHandler_MediaInputs.cpp
|
src/utils/Compat.h
|
||||||
src/eventhandler/EventHandler_Ui.cpp
|
src/utils/Crypto.cpp
|
||||||
src/requesthandler/RequestHandler.cpp
|
src/utils/Crypto.h
|
||||||
src/requesthandler/RequestBatchHandler.cpp
|
src/utils/Json.cpp
|
||||||
src/requesthandler/RequestHandler_General.cpp
|
src/utils/Json.h
|
||||||
src/requesthandler/RequestHandler_Config.cpp
|
src/utils/Obs.cpp
|
||||||
src/requesthandler/RequestHandler_Sources.cpp
|
src/utils/Obs.h
|
||||||
src/requesthandler/RequestHandler_Scenes.cpp
|
src/utils/Obs_ActionHelper.cpp
|
||||||
src/requesthandler/RequestHandler_Inputs.cpp
|
src/utils/Obs_ArrayHelper.cpp
|
||||||
src/requesthandler/RequestHandler_Transitions.cpp
|
src/utils/Obs_NumberHelper.cpp
|
||||||
src/requesthandler/RequestHandler_Filters.cpp
|
src/utils/Obs_ObjectHelper.cpp
|
||||||
src/requesthandler/RequestHandler_SceneItems.cpp
|
src/utils/Obs_SearchHelper.cpp
|
||||||
src/requesthandler/RequestHandler_Outputs.cpp
|
src/utils/Obs_StringHelper.cpp
|
||||||
src/requesthandler/RequestHandler_Stream.cpp
|
src/utils/Obs_VolumeMeter.cpp
|
||||||
src/requesthandler/RequestHandler_Record.cpp
|
src/utils/Obs_VolumeMeter.h
|
||||||
src/requesthandler/RequestHandler_MediaInputs.cpp
|
src/utils/Obs_VolumeMeter_Helpers.h
|
||||||
src/requesthandler/RequestHandler_Ui.cpp
|
src/utils/Platform.cpp
|
||||||
src/requesthandler/rpc/Request.cpp
|
src/utils/Platform.h
|
||||||
src/requesthandler/rpc/RequestBatchRequest.cpp
|
src/utils/Utils.h)
|
||||||
src/requesthandler/rpc/RequestResult.cpp
|
|
||||||
src/forms/SettingsDialog.cpp
|
configure_file(src/plugin-macros.h.in plugin-macros.generated.h)
|
||||||
src/forms/ConnectInfo.cpp
|
target_sources(obs-websocket PRIVATE plugin-macros.generated.h)
|
||||||
src/forms/resources.qrc
|
|
||||||
src/utils/Crypto.cpp
|
target_compile_definitions(
|
||||||
src/utils/Json.cpp
|
obs-websocket PRIVATE ASIO_STANDALONE $<$<BOOL:${PLUGIN_TESTS}>:PLUGIN_TESTS>
|
||||||
src/utils/Obs.cpp
|
$<$<PLATFORM_ID:Windows>:_WEBSOCKETPP_CPP11_STL_> $<$<PLATFORM_ID:Windows>:_WIN32_WINNT=0x0603>)
|
||||||
src/utils/Obs_StringHelper.cpp
|
|
||||||
src/utils/Obs_EnumHelper.cpp
|
target_compile_options(
|
||||||
src/utils/Obs_NumberHelper.cpp
|
obs-websocket
|
||||||
src/utils/Obs_ArrayHelper.cpp
|
PRIVATE $<$<PLATFORM_ID:Windows>:/wd4267>
|
||||||
src/utils/Obs_ObjectHelper.cpp
|
$<$<PLATFORM_ID:Windows>:/wd4996>
|
||||||
src/utils/Obs_SearchHelper.cpp
|
$<$<COMPILE_LANG_AND_ID:CXX,GNU,AppleClang,Clang>:-Wall>
|
||||||
src/utils/Obs_ActionHelper.cpp
|
$<$<COMPILE_LANG_AND_ID:CXX,GNU,AppleClang,Clang>:-Wno-error=float-conversion>
|
||||||
src/utils/Obs_VolumeMeter.cpp
|
$<$<COMPILE_LANG_AND_ID:CXX,GNU,AppleClang,Clang>:-Wno-error=shadow>
|
||||||
src/utils/Platform.cpp
|
$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-error=format-overflow>
|
||||||
src/utils/Compat.cpp
|
$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-error=int-conversion>
|
||||||
deps/qr/cpp/QrCode.cpp)
|
$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-error=comment>
|
||||||
|
$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-error=deprecated-declarations>
|
||||||
set(obs-websocket_HEADERS
|
$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang>:-Wno-error=null-pointer-subtraction>
|
||||||
src/obs-websocket.h
|
$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang>:-Wno-error=deprecated-declarations>
|
||||||
src/Config.h
|
$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang>:-Wno-error=implicit-int-conversion>
|
||||||
src/WebSocketApi.h
|
$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang>:-Wno-error=shorten-64-to-32>
|
||||||
src/websocketserver/WebSocketServer.h
|
$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang>:-Wno-comma>
|
||||||
src/websocketserver/types/WebSocketCloseCode.h
|
$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang>:-Wno-quoted-include-in-framework-header>)
|
||||||
src/websocketserver/types/WebSocketOpCode.h
|
|
||||||
src/websocketserver/rpc/WebSocketSession.h
|
target_link_libraries(
|
||||||
src/eventhandler/EventHandler.h
|
obs-websocket
|
||||||
src/eventhandler/types/EventSubscription.h
|
PRIVATE OBS::libobs
|
||||||
src/requesthandler/RequestHandler.h
|
OBS::frontend-api
|
||||||
src/requesthandler/RequestBatchHandler.h
|
OBS::websocket-api
|
||||||
src/requesthandler/types/RequestStatus.h
|
Qt::Core
|
||||||
src/requesthandler/types/RequestBatchExecutionType.h
|
Qt::Widgets
|
||||||
src/requesthandler/rpc/Request.h
|
Qt::Svg
|
||||||
src/requesthandler/rpc/RequestBatchRequest.h
|
Qt::Network
|
||||||
src/requesthandler/rpc/RequestResult.h
|
nlohmann_json::nlohmann_json
|
||||||
src/forms/SettingsDialog.h
|
Websocketpp::Websocketpp
|
||||||
src/forms/ConnectInfo.h
|
Asio::Asio
|
||||||
src/utils/Crypto.h
|
qrcodegencpp::qrcodegencpp)
|
||||||
src/utils/Json.h
|
|
||||||
src/utils/Obs.h
|
target_link_options(obs-websocket PRIVATE $<$<PLATFORM_ID:Windows>:/IGNORE:4099>)
|
||||||
src/utils/Obs_VolumeMeter.h
|
|
||||||
src/utils/Obs_VolumeMeter_Helpers.h
|
set_target_properties_obs(
|
||||||
src/utils/Platform.h
|
obs-websocket
|
||||||
src/utils/Compat.h
|
PROPERTIES FOLDER plugins
|
||||||
src/utils/Utils.h
|
PREFIX ""
|
||||||
lib/obs-websocket-api.h
|
AUTOMOC ON
|
||||||
deps/qr/cpp/QrCode.hpp)
|
AUTOUIC ON
|
||||||
|
AUTORCC ON)
|
||||||
|
|
||||||
# Platform-independent build settings
|
if(OS_WINDOWS)
|
||||||
add_library(obs-websocket MODULE
|
set_property(
|
||||||
${obs-websocket_SOURCES}
|
TARGET obs-websocket
|
||||||
${obs-websocket_HEADERS})
|
APPEND
|
||||||
|
PROPERTY AUTORCC_OPTIONS --format-version 1)
|
||||||
include_directories(
|
|
||||||
"${LIBOBS_INCLUDE_DIR}/../UI/obs-frontend-api"
|
|
||||||
${Qt5Core_INCLUDES}
|
|
||||||
${Qt5Widgets_INCLUDES}
|
|
||||||
${Qt5Svg_INCLUDES}
|
|
||||||
${Qt5Network_INCLUDES}
|
|
||||||
"${CMAKE_SOURCE_DIR}/deps/asio/asio/include"
|
|
||||||
"${CMAKE_SOURCE_DIR}/deps/websocketpp")
|
|
||||||
|
|
||||||
target_link_libraries(obs-websocket
|
|
||||||
libobs
|
|
||||||
Qt5::Core
|
|
||||||
Qt5::Widgets
|
|
||||||
Qt5::Svg
|
|
||||||
Qt5::Network
|
|
||||||
nlohmann_json::nlohmann_json)
|
|
||||||
|
|
||||||
if(PLUGIN_TESTS)
|
|
||||||
target_compile_definitions(obs-websocket PRIVATE PLUGIN_TESTS)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# Windows-specific build settings and tasks
|
|
||||||
if(WIN32)
|
|
||||||
if(NOT DEFINED OBS_FRONTEND_LIB)
|
|
||||||
set(OBS_FRONTEND_LIB "OBS_FRONTEND_LIB-NOTFOUND" CACHE FILEPATH "OBS frontend library")
|
|
||||||
message(FATAL_ERROR "Could not find OBS Frontend API's library!")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(MSVC)
|
|
||||||
# Enable Multicore Builds and disable FH4 (to not depend on VCRUNTIME140_1.DLL)
|
|
||||||
add_definitions(/MP /d2FH4-)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_definitions(-D_WEBSOCKETPP_CPP11_STL_)
|
|
||||||
|
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
||||||
set(ARCH_NAME "64bit")
|
|
||||||
set(OBS_BUILDDIR_ARCH "build64")
|
|
||||||
else()
|
|
||||||
set(ARCH_NAME "32bit")
|
|
||||||
set(OBS_BUILDDIR_ARCH "build32")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include_directories(
|
|
||||||
"${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/UI"
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(obs-websocket
|
|
||||||
"${OBS_FRONTEND_LIB}")
|
|
||||||
|
|
||||||
# Release package helper
|
|
||||||
# The "release" folder has a structure similar OBS' one on Windows
|
|
||||||
set(RELEASE_DIR "${PROJECT_SOURCE_DIR}/release")
|
|
||||||
|
|
||||||
add_custom_command(TARGET obs-websocket POST_BUILD
|
|
||||||
# If config is Release or RelWithDebInfo, package release files
|
|
||||||
COMMAND if $<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E make_directory
|
|
||||||
"${RELEASE_DIR}/obs-plugins/${ARCH_NAME}"
|
|
||||||
)
|
|
||||||
|
|
||||||
COMMAND if $<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E copy_directory
|
|
||||||
"${PROJECT_SOURCE_DIR}/data"
|
|
||||||
"${RELEASE_DIR}/data/obs-plugins/obs-websocket"
|
|
||||||
)
|
|
||||||
|
|
||||||
COMMAND if $<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E copy
|
|
||||||
"$<TARGET_FILE:obs-websocket>"
|
|
||||||
"${RELEASE_DIR}/obs-plugins/${ARCH_NAME}"
|
|
||||||
)
|
|
||||||
|
|
||||||
# In Release or RelWithDebInfo mode, copy Qt image format plugins
|
|
||||||
COMMAND if $<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E make_directory
|
|
||||||
"${RELEASE_DIR}/bin/${ARCH_NAME}/imageformats"
|
|
||||||
)
|
|
||||||
COMMAND if $<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E copy
|
|
||||||
"${QTDIR}/plugins/imageformats/qicns.dll"
|
|
||||||
"${QTDIR}/plugins/imageformats/qico.dll"
|
|
||||||
"${QTDIR}/plugins/imageformats/qjpeg.dll"
|
|
||||||
"${QTDIR}/plugins/imageformats/qtiff.dll"
|
|
||||||
"${QTDIR}/plugins/imageformats/qwbmp.dll"
|
|
||||||
"${QTDIR}/plugins/imageformats/qwebp.dll"
|
|
||||||
"${RELEASE_DIR}/bin/${ARCH_NAME}/imageformats"
|
|
||||||
)
|
|
||||||
|
|
||||||
# If config is RelWithDebInfo, package PDB file for target
|
|
||||||
COMMAND if $<CONFIG:RelWithDebInfo>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E copy
|
|
||||||
"$<TARGET_PDB_FILE:obs-websocket>"
|
|
||||||
"${RELEASE_DIR}/obs-plugins/${ARCH_NAME}"
|
|
||||||
)
|
|
||||||
|
|
||||||
# In the Debug configuration, copy to obs-studio dev environment for immediate testing
|
|
||||||
COMMAND if $<CONFIG:Debug>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E copy
|
|
||||||
"$<TARGET_FILE:obs-websocket>"
|
|
||||||
"${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/rundir/$<CONFIG>/obs-plugins/${ARCH_NAME}"
|
|
||||||
)
|
|
||||||
|
|
||||||
COMMAND if $<CONFIG:Debug>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E copy
|
|
||||||
"$<TARGET_PDB_FILE:obs-websocket>"
|
|
||||||
"${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/rundir/$<CONFIG>/obs-plugins/${ARCH_NAME}"
|
|
||||||
)
|
|
||||||
|
|
||||||
COMMAND if $<CONFIG:Debug>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E make_directory
|
|
||||||
"${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/rundir/$<CONFIG>/data/obs-plugins/obs-websocket"
|
|
||||||
)
|
|
||||||
|
|
||||||
COMMAND if $<CONFIG:Debug>==1 (
|
|
||||||
"${CMAKE_COMMAND}" -E copy_directory
|
|
||||||
"${PROJECT_SOURCE_DIR}/data"
|
|
||||||
"${LIBOBS_INCLUDE_DIR}/../${OBS_BUILDDIR_ARCH}/rundir/$<CONFIG>/data/obs-plugins/obs-websocket"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
# Linux-specific build settings and tasks
|
|
||||||
if(UNIX AND NOT APPLE)
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
|
|
||||||
target_compile_options(obs-websocket PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers)
|
|
||||||
|
|
||||||
set_target_properties(obs-websocket PROPERTIES PREFIX "")
|
|
||||||
target_link_libraries(obs-websocket obs-frontend-api)
|
|
||||||
|
|
||||||
# Manually set permissions for locales
|
|
||||||
file(GLOB locale_files data/locale/*.ini)
|
|
||||||
set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
|
|
||||||
OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
|
||||||
|
|
||||||
# Manually set file permissions for binary
|
|
||||||
install(TARGETS obs-websocket LIBRARY
|
|
||||||
DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/obs-plugins"
|
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|
|
||||||
|
|
||||||
# OBS on Ubuntu installs into a different directory than most linux distros
|
|
||||||
if(${USE_UBUNTU_FIX})
|
|
||||||
install(TARGETS obs-websocket LIBRARY
|
|
||||||
DESTINATION "/usr/lib/obs-plugins"
|
|
||||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(FILES ${locale_files}
|
|
||||||
DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/obs/obs-plugins/obs-websocket/locale")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# MacOS-specific build settings and tasks
|
|
||||||
if(APPLE)
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -fvisibility=default")
|
|
||||||
|
|
||||||
set(CMAKE_SKIP_RPATH TRUE)
|
|
||||||
set_target_properties(obs-websocket PROPERTIES PREFIX "")
|
|
||||||
target_link_libraries(obs-websocket "${OBS_FRONTEND_LIB}")
|
|
||||||
endif()
|
endif()
|
||||||
|
41
README.md
41
README.md
@ -1,3 +1,5 @@
|
|||||||
|
<!-- markdownlint-disable no-inline-html -->
|
||||||
|
|
||||||
# obs-websocket
|
# obs-websocket
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
@ -6,19 +8,20 @@
|
|||||||
|
|
||||||
WebSocket API for OBS Studio.
|
WebSocket API for OBS Studio.
|
||||||
|
|
||||||
[](https://github.com/obsproject/obs-websocket/actions/workflows/main.yml)
|
|
||||||
[](https://discord.gg/WBaSQ3A)
|
[](https://discord.gg/WBaSQ3A)
|
||||||
[](https://opencollective.com/obs-websocket-dev)
|
[](https://opencollective.com/obs-websocket-dev)
|
||||||
|
|
||||||
## Downloads
|
## Downloads
|
||||||
|
|
||||||
Binaries for Windows, MacOS, and Linux are available in the [Releases](https://github.com/obsproject/obs-websocket/releases) section.
|
**obs-websocket is now included by default with OBS Studio 28.0.0 and above. As such, there should be no need to download obs-websocket if you have OBS Studio > 28.0.0.**
|
||||||
|
|
||||||
|
Binaries **for OBS Studio < 28.0.0** on Windows, MacOS, and Linux are available in the [Releases](https://github.com/obsproject/obs-websocket/releases) section.
|
||||||
|
|
||||||
## Using obs-websocket
|
## Using obs-websocket
|
||||||
|
|
||||||
It is **highly recommended** to protect obs-websocket with a password against unauthorized control. To do this, open the "Websocket server settings" dialog under OBS' "Tools" menu. In the settings dialogs, you can enable or disable authentication and set a password for it.
|
It is **highly recommended** to keep obs-websocket protected with a password against unauthorized control. obs-websocket generates a password for you automatically when you load it for the first time. To change this, open the "obs-websocket Settings" dialog under OBS' "Tools" menu. In the settings dialog, you can enable or disable authentication and set a password for it.
|
||||||
|
|
||||||
(Psst. You can use `--websocket_port`(value), `--websocket_password`(value), and `--websocket_debug`(flag) on the command line to override the configured values.)
|
(Psst. You can use `--websocket_port`(value), `--websocket_password`(value), `--websocket_debug`(flag) and `--websocket_ipv4_only`(flag) on the command line to override the configured values.)
|
||||||
|
|
||||||
### Possible use cases
|
### Possible use cases
|
||||||
|
|
||||||
@ -27,14 +30,33 @@ It is **highly recommended** to protect obs-websocket with a password against un
|
|||||||
- Automate scene switching with a third-party program (e.g. : auto-pilot, foot pedal, ...)
|
- Automate scene switching with a third-party program (e.g. : auto-pilot, foot pedal, ...)
|
||||||
|
|
||||||
### Client software
|
### Client software
|
||||||
- (No known clients supporting 5.0.0 at the moment. Ping us in the Discord if you have one!)
|
|
||||||
|
- [Macro Deck](https://macrodeck.org/)
|
||||||
|
- [Touch Portal](https://www.touch-portal.com/)
|
||||||
|
- [Twitchat](https://twitchat.fr/)
|
||||||
|
- [OBS-web](https://github.com/Niek/obs-web) - hosted client at [obs-web.niek.tv/](http://obs-web.niek.tv/)
|
||||||
|
- [Streamer.bot](https://streamer.bot/)
|
||||||
|
- [Deckboard](https://deckboard.app/)
|
||||||
|
- [OBS Blade](https://github.com/Kounex/obs_blade)
|
||||||
|
- [Aitum](https://aitum.tv/)
|
||||||
|
- [Kruiz Control](https://github.com/Kruiser8/Kruiz-Control)
|
||||||
|
- [Bitfocus Companion Module](https://bitfocus.io/companion/)
|
||||||
|
- [MacroGraph](https://github.com/Brendonovich/macrograph) - hosted client [here](https://macrograph.brendonovich.dev/)
|
||||||
|
- [MATRIC](https://matricapp.com/)
|
||||||
|
|
||||||
### Client libraries (for developers)
|
### Client libraries (for developers)
|
||||||
|
|
||||||
Here's a list of available language APIs for obs-websocket:
|
Here's a list of available language APIs for obs-websocket:
|
||||||
|
|
||||||
- Python 3.7+ (Asyncio): [simpleobsws](https://github.com/IRLToolkit/simpleobsws/tree/master) by IRLToolkit
|
- Python 3.7+ (Asyncio): [simpleobsws](https://github.com/IRLToolkit/simpleobsws/tree/master) by IRLToolkit
|
||||||
- Rust: [obws](https://github.com/dnaka91/obws/tree/v5-api) by dnaka91
|
- Python 3.10+ (Non-Asyncio): [obsws-python](https://pypi.org/project/obsws-python) by aatikturk and onyx-and-iris
|
||||||
- Godot 3.4.x: [obs-websocket-gd](https://github.com/you-win/obs-websocket-gd) by you-win
|
- Rust: [obws](https://github.com/dnaka91/obws) by dnaka91
|
||||||
|
- Godot 4.0.x: [obs-websocket-gd](https://github.com/you-win/obs-websocket-gd) by you-win
|
||||||
|
- Javascript (Node and web): [obs-websocket-js](https://github.com/obs-websocket-community-projects/obs-websocket-js) by OBS Websocket Community
|
||||||
|
- C (uses obs-websocket-js): [v8-libwebsocket-obs-websocket](https://github.com/dgatwood/v8-libwebsocket-obs-websocket)
|
||||||
|
- Go: [goobs](https://github.com/andreykaipov/goobs) by andreykaipov
|
||||||
|
- Dart/Flutter (can target all supported platforms): [obs_websocket](https://github.com/faithoflifedev/obs_websocket) by faithoflifedev
|
||||||
|
- Java: [obs-websocket-java](https://github.com/obs-websocket-community-projects/obs-websocket-java) by OBS Websocket Community
|
||||||
|
|
||||||
The 5.x server is a typical WebSocket server running by default on port 4455 (the port number can be changed in the Settings dialog under `Tools`).
|
The 5.x server is a typical WebSocket server running by default on port 4455 (the port number can be changed in the Settings dialog under `Tools`).
|
||||||
The protocol we use is documented in [PROTOCOL.md](docs/generated/protocol.md).
|
The protocol we use is documented in [PROTOCOL.md](docs/generated/protocol.md).
|
||||||
@ -45,12 +67,11 @@ We'd like to know what you're building with obs-websocket! If you do something i
|
|||||||
|
|
||||||
### Code Contributors
|
### Code Contributors
|
||||||
|
|
||||||
This project exists thanks to [all the people](graphs/contributors) who contribute. [Contribute](wiki/Contributing-Guidelines).
|
This project exists thanks to [all the people](https://github.com/obsproject/obs-websocket/graphs/contributors) who contribute. [Contribute Code](https://github.com/obsproject/obs-websocket/wiki/Contributing-Guidelines).
|
||||||
<a href="https://github.com/obsproject/obs-websocket/graphs/contributors"><img src="https://opencollective.com/obs-websocket-dev/contributors.svg?width=890&button=false" /></a>
|
|
||||||
|
|
||||||
### Financial Contributors
|
### Financial Contributors
|
||||||
|
|
||||||
Become a financial contributor and help us sustain our community. [Contribute](https://opencollective.com/obs-websocket-dev/contribute)
|
Become a financial contributor and help us sustain our community. [Contribute Financially](https://opencollective.com/obs-websocket-dev/contribute)
|
||||||
|
|
||||||
#### Individuals
|
#### Individuals
|
||||||
|
|
||||||
|
@ -1,107 +0,0 @@
|
|||||||
# This module can be copied and used by external plugins for OBS
|
|
||||||
#
|
|
||||||
# Once done these will be defined:
|
|
||||||
#
|
|
||||||
# LIBOBS_FOUND
|
|
||||||
# LIBOBS_INCLUDE_DIRS
|
|
||||||
# LIBOBS_LIBRARIES
|
|
||||||
|
|
||||||
find_package(PkgConfig QUIET)
|
|
||||||
if (PKG_CONFIG_FOUND)
|
|
||||||
pkg_check_modules(_OBS QUIET obs libobs)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
||||||
set(_lib_suffix 64)
|
|
||||||
else()
|
|
||||||
set(_lib_suffix 32)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(DEFINED CMAKE_BUILD_TYPE)
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
||||||
set(_build_type_base "debug")
|
|
||||||
else()
|
|
||||||
set(_build_type_base "release")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_path(LIBOBS_INCLUDE_DIR
|
|
||||||
NAMES obs.h
|
|
||||||
HINTS
|
|
||||||
ENV obsPath${_lib_suffix}
|
|
||||||
ENV obsPath
|
|
||||||
${obsPath}
|
|
||||||
PATHS
|
|
||||||
/usr/include /usr/local/include /opt/local/include /sw/include
|
|
||||||
PATH_SUFFIXES
|
|
||||||
libobs
|
|
||||||
)
|
|
||||||
|
|
||||||
function(find_obs_lib base_name repo_build_path lib_name)
|
|
||||||
string(TOUPPER "${base_name}" base_name_u)
|
|
||||||
|
|
||||||
if(DEFINED _build_type_base)
|
|
||||||
set(_build_type_${repo_build_path} "${_build_type_base}/${repo_build_path}")
|
|
||||||
set(_build_type_${repo_build_path}${_lib_suffix} "${_build_type_base}${_lib_suffix}/${repo_build_path}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_library(${base_name_u}_LIB
|
|
||||||
NAMES ${_${base_name_u}_LIBRARIES} ${lib_name} lib${lib_name}
|
|
||||||
HINTS
|
|
||||||
ENV obsPath${_lib_suffix}
|
|
||||||
ENV obsPath
|
|
||||||
${obsPath}
|
|
||||||
${_${base_name_u}_LIBRARY_DIRS}
|
|
||||||
PATHS
|
|
||||||
/usr/lib /usr/local/lib /opt/local/lib /sw/lib
|
|
||||||
PATH_SUFFIXES
|
|
||||||
lib${_lib_suffix} lib
|
|
||||||
libs${_lib_suffix} libs
|
|
||||||
bin${_lib_suffix} bin
|
|
||||||
../lib${_lib_suffix} ../lib
|
|
||||||
../libs${_lib_suffix} ../libs
|
|
||||||
../bin${_lib_suffix} ../bin
|
|
||||||
# base repo non-msvc-specific search paths
|
|
||||||
${_build_type_${repo_build_path}}
|
|
||||||
${_build_type_${repo_build_path}${_lib_suffix}}
|
|
||||||
build/${repo_build_path}
|
|
||||||
build${_lib_suffix}/${repo_build_path}
|
|
||||||
# base repo msvc-specific search paths on windows
|
|
||||||
build${_lib_suffix}/${repo_build_path}/Debug
|
|
||||||
build${_lib_suffix}/${repo_build_path}/RelWithDebInfo
|
|
||||||
build/${repo_build_path}/Debug
|
|
||||||
build/${repo_build_path}/RelWithDebInfo
|
|
||||||
)
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
find_obs_lib(LIBOBS libobs obs)
|
|
||||||
|
|
||||||
if(MSVC)
|
|
||||||
find_obs_lib(W32_PTHREADS deps/w32-pthreads w32-pthreads)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(Libobs DEFAULT_MSG LIBOBS_LIB LIBOBS_INCLUDE_DIR)
|
|
||||||
mark_as_advanced(LIBOBS_INCLUDE_DIR LIBOBS_LIB)
|
|
||||||
|
|
||||||
if(LIBOBS_FOUND)
|
|
||||||
if(MSVC)
|
|
||||||
if (NOT DEFINED W32_PTHREADS_LIB)
|
|
||||||
message(FATAL_ERROR "Could not find the w32-pthreads library" )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(W32_PTHREADS_INCLUDE_DIR ${LIBOBS_INCLUDE_DIR}/../deps/w32-pthreads)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(LIBOBS_INCLUDE_DIRS ${LIBOBS_INCLUDE_DIR} ${W32_PTHREADS_INCLUDE_DIR})
|
|
||||||
set(LIBOBS_LIBRARIES ${LIBOBS_LIB} ${W32_PTHREADS_LIB})
|
|
||||||
include(${LIBOBS_INCLUDE_DIR}/../cmake/external/ObsPluginHelpers.cmake)
|
|
||||||
|
|
||||||
# allows external plugins to easily use/share common dependencies that are often included with libobs (such as FFmpeg)
|
|
||||||
if(NOT DEFINED INCLUDED_LIBOBS_CMAKE_MODULES)
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LIBOBS_INCLUDE_DIR}/../cmake/Modules/")
|
|
||||||
set(INCLUDED_LIBOBS_CMAKE_MODULES true)
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Could not find the libobs library" )
|
|
||||||
endif()
|
|
188
cmake/legacy.cmake
Normal file
188
cmake/legacy.cmake
Normal file
@ -0,0 +1,188 @@
|
|||||||
|
project(obs-websocket VERSION 5.5.2)
|
||||||
|
set(OBS_WEBSOCKET_RPC_VERSION 1)
|
||||||
|
|
||||||
|
option(ENABLE_WEBSOCKET "Enable building OBS with websocket plugin" ON)
|
||||||
|
|
||||||
|
add_library(obs-websocket-api INTERFACE)
|
||||||
|
add_library(OBS::websocket-api ALIAS obs-websocket-api)
|
||||||
|
|
||||||
|
target_sources(obs-websocket-api INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/lib/obs-websocket-api.h>
|
||||||
|
$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}/obs-websocket-api.h>)
|
||||||
|
|
||||||
|
target_link_libraries(obs-websocket-api INTERFACE OBS::libobs)
|
||||||
|
|
||||||
|
target_include_directories(obs-websocket-api INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/lib>
|
||||||
|
$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}>)
|
||||||
|
|
||||||
|
set_target_properties(obs-websocket-api PROPERTIES PUBLIC_HEADER lib/obs-websocket-api.h)
|
||||||
|
|
||||||
|
export_target(obs-websocket-api)
|
||||||
|
|
||||||
|
if(NOT ENABLE_WEBSOCKET OR NOT ENABLE_UI)
|
||||||
|
message(STATUS "OBS: DISABLED obs-websocket")
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Plugin tests flag
|
||||||
|
option(PLUGIN_TESTS "Enable plugin runtime tests" OFF)
|
||||||
|
|
||||||
|
# Find Qt
|
||||||
|
find_qt(COMPONENTS Core Widgets Svg Network)
|
||||||
|
|
||||||
|
# Find nlohmann JSON
|
||||||
|
find_package(nlohmann_json 3 REQUIRED)
|
||||||
|
|
||||||
|
# Find qrcodegencpp
|
||||||
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
|
||||||
|
find_package(qrcodegencpp REQUIRED)
|
||||||
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG OFF)
|
||||||
|
|
||||||
|
# Find WebSocket++
|
||||||
|
find_package(Websocketpp 0.8 REQUIRED)
|
||||||
|
|
||||||
|
# Find Asio
|
||||||
|
find_package(Asio 1.12.1 REQUIRED)
|
||||||
|
|
||||||
|
# Tell websocketpp not to use system boost
|
||||||
|
add_definitions(-DASIO_STANDALONE)
|
||||||
|
|
||||||
|
# Configure files
|
||||||
|
configure_file(src/plugin-macros.h.in plugin-macros.generated.h)
|
||||||
|
|
||||||
|
# Setup target
|
||||||
|
add_library(obs-websocket MODULE)
|
||||||
|
add_library(OBS::websocket ALIAS obs-websocket)
|
||||||
|
|
||||||
|
set_target_properties(
|
||||||
|
obs-websocket
|
||||||
|
PROPERTIES AUTOMOC ON
|
||||||
|
AUTOUIC ON
|
||||||
|
AUTORCC ON)
|
||||||
|
|
||||||
|
if(_QT_VERSION EQUAL 6 AND OS_WINDOWS)
|
||||||
|
set_target_properties(obs-websocket PROPERTIES AUTORCC_OPTIONS "--format-version;1")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(obs-websocket PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
|
target_sources(
|
||||||
|
obs-websocket
|
||||||
|
PRIVATE src/obs-websocket.cpp
|
||||||
|
src/obs-websocket.h
|
||||||
|
src/Config.cpp
|
||||||
|
src/Config.h
|
||||||
|
src/forms/SettingsDialog.cpp
|
||||||
|
src/forms/SettingsDialog.h
|
||||||
|
src/forms/ConnectInfo.cpp
|
||||||
|
src/forms/ConnectInfo.h
|
||||||
|
src/forms/resources.qrc
|
||||||
|
src/WebSocketApi.cpp
|
||||||
|
src/WebSocketApi.h
|
||||||
|
src/websocketserver/WebSocketServer.cpp
|
||||||
|
src/websocketserver/WebSocketServer_Protocol.cpp
|
||||||
|
src/websocketserver/WebSocketServer.h
|
||||||
|
src/websocketserver/rpc/WebSocketSession.h
|
||||||
|
src/websocketserver/types/WebSocketCloseCode.h
|
||||||
|
src/websocketserver/types/WebSocketOpCode.h
|
||||||
|
src/eventhandler/EventHandler.cpp
|
||||||
|
src/eventhandler/EventHandler_General.cpp
|
||||||
|
src/eventhandler/EventHandler_Config.cpp
|
||||||
|
src/eventhandler/EventHandler_Scenes.cpp
|
||||||
|
src/eventhandler/EventHandler_Inputs.cpp
|
||||||
|
src/eventhandler/EventHandler_Transitions.cpp
|
||||||
|
src/eventhandler/EventHandler_Filters.cpp
|
||||||
|
src/eventhandler/EventHandler_Outputs.cpp
|
||||||
|
src/eventhandler/EventHandler_SceneItems.cpp
|
||||||
|
src/eventhandler/EventHandler_MediaInputs.cpp
|
||||||
|
src/eventhandler/EventHandler_Ui.cpp
|
||||||
|
src/eventhandler/EventHandler.h
|
||||||
|
src/eventhandler/types/EventSubscription.h
|
||||||
|
src/requesthandler/RequestHandler.cpp
|
||||||
|
src/requesthandler/RequestHandler_General.cpp
|
||||||
|
src/requesthandler/RequestHandler_Config.cpp
|
||||||
|
src/requesthandler/RequestHandler_Sources.cpp
|
||||||
|
src/requesthandler/RequestHandler_Scenes.cpp
|
||||||
|
src/requesthandler/RequestHandler_Inputs.cpp
|
||||||
|
src/requesthandler/RequestHandler_Transitions.cpp
|
||||||
|
src/requesthandler/RequestHandler_Filters.cpp
|
||||||
|
src/requesthandler/RequestHandler_SceneItems.cpp
|
||||||
|
src/requesthandler/RequestHandler_Outputs.cpp
|
||||||
|
src/requesthandler/RequestHandler_Stream.cpp
|
||||||
|
src/requesthandler/RequestHandler_Record.cpp
|
||||||
|
src/requesthandler/RequestHandler_MediaInputs.cpp
|
||||||
|
src/requesthandler/RequestHandler_Ui.cpp
|
||||||
|
src/requesthandler/RequestHandler.h
|
||||||
|
src/requesthandler/RequestBatchHandler.cpp
|
||||||
|
src/requesthandler/RequestBatchHandler.h
|
||||||
|
src/requesthandler/rpc/Request.cpp
|
||||||
|
src/requesthandler/rpc/Request.h
|
||||||
|
src/requesthandler/rpc/RequestBatchRequest.cpp
|
||||||
|
src/requesthandler/rpc/RequestBatchRequest.h
|
||||||
|
src/requesthandler/rpc/RequestResult.cpp
|
||||||
|
src/requesthandler/rpc/RequestResult.h
|
||||||
|
src/requesthandler/types/RequestStatus.h
|
||||||
|
src/requesthandler/types/RequestBatchExecutionType.h
|
||||||
|
src/utils/Crypto.cpp
|
||||||
|
src/utils/Crypto.h
|
||||||
|
src/utils/Json.cpp
|
||||||
|
src/utils/Json.h
|
||||||
|
src/utils/Obs.cpp
|
||||||
|
src/utils/Obs_StringHelper.cpp
|
||||||
|
src/utils/Obs_NumberHelper.cpp
|
||||||
|
src/utils/Obs_ArrayHelper.cpp
|
||||||
|
src/utils/Obs_ObjectHelper.cpp
|
||||||
|
src/utils/Obs_SearchHelper.cpp
|
||||||
|
src/utils/Obs_ActionHelper.cpp
|
||||||
|
src/utils/Obs.h
|
||||||
|
src/utils/Obs_VolumeMeter.cpp
|
||||||
|
src/utils/Obs_VolumeMeter.h
|
||||||
|
src/utils/Obs_VolumeMeter_Helpers.h
|
||||||
|
src/utils/Platform.cpp
|
||||||
|
src/utils/Platform.h
|
||||||
|
src/utils/Compat.cpp
|
||||||
|
src/utils/Compat.h
|
||||||
|
src/utils/Utils.h)
|
||||||
|
|
||||||
|
target_link_libraries(
|
||||||
|
obs-websocket
|
||||||
|
PRIVATE OBS::libobs
|
||||||
|
OBS::frontend-api
|
||||||
|
OBS::websocket-api
|
||||||
|
Qt::Core
|
||||||
|
Qt::Widgets
|
||||||
|
Qt::Svg
|
||||||
|
Qt::Network
|
||||||
|
nlohmann_json::nlohmann_json
|
||||||
|
Websocketpp::Websocketpp
|
||||||
|
Asio::Asio
|
||||||
|
qrcodegencpp::qrcodegencpp)
|
||||||
|
|
||||||
|
target_compile_features(obs-websocket PRIVATE cxx_std_17)
|
||||||
|
|
||||||
|
set_target_properties(obs-websocket PROPERTIES FOLDER "plugins/obs-websocket")
|
||||||
|
|
||||||
|
if(PLUGIN_TESTS)
|
||||||
|
target_compile_definitions(obs-websocket PRIVATE PLUGIN_TESTS)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Random other things
|
||||||
|
if(WIN32)
|
||||||
|
add_definitions(-D_WEBSOCKETPP_CPP11_STL_)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
target_compile_options(obs-websocket PRIVATE /wd4267 /wd4996)
|
||||||
|
target_link_options(obs-websocket PRIVATE "LINKER:/IGNORE:4099")
|
||||||
|
else()
|
||||||
|
target_compile_options(
|
||||||
|
obs-websocket
|
||||||
|
PRIVATE
|
||||||
|
-Wall
|
||||||
|
"$<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-error=format-overflow>"
|
||||||
|
"$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang>:-Wno-error=null-pointer-subtraction;-Wno-error=deprecated-declarations>"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Final CMake helpers
|
||||||
|
setup_plugin_target(obs-websocket)
|
||||||
|
setup_target_resources(obs-websocket "obs-plugins/obs-websocket")
|
28
cmake/macos/Info.plist.in
Normal file
28
cmake/macos/Info.plist.in
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>obs-websocket</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.obsproject.obs-websocket</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>obs-websocket</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>BNDL</string>
|
||||||
|
<key>CFBundleSupportedPlatforms</key>
|
||||||
|
<array>
|
||||||
|
<string>MacOSX</string>
|
||||||
|
</array>
|
||||||
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
|
||||||
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
<string>(c) 2016-${CURRENT_YEAR} Stéphane Lepin, Kyle Manning</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
14
cmake/obs-websocket-api.cmake
Normal file
14
cmake/obs-websocket-api.cmake
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
add_library(obs-websocket-api INTERFACE)
|
||||||
|
add_library(OBS::websocket-api ALIAS obs-websocket-api)
|
||||||
|
|
||||||
|
target_sources(obs-websocket-api INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/lib/obs-websocket-api.h>
|
||||||
|
$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}/obs-websocket-api.h>)
|
||||||
|
|
||||||
|
target_link_libraries(obs-websocket-api INTERFACE OBS::libobs)
|
||||||
|
|
||||||
|
target_include_directories(obs-websocket-api INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/lib>"
|
||||||
|
"$<INSTALL_INTERFACE:${OBS_INCLUDE_DESTINATION}>")
|
||||||
|
|
||||||
|
set_target_properties(obs-websocket-api PROPERTIES PREFIX "" PUBLIC_HEADER lib/obs-websocket-api.h)
|
||||||
|
|
||||||
|
target_export(obs-websocket-api)
|
8
cmake/obs-websocket-apiConfig.cmake.in
Normal file
8
cmake/obs-websocket-apiConfig.cmake.in
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
@PACKAGE_INIT@
|
||||||
|
|
||||||
|
include(CMakeFindDependencyMacro)
|
||||||
|
|
||||||
|
find_dependency(libobs REQUIRED)
|
||||||
|
|
||||||
|
include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
|
||||||
|
check_required_components("@PROJECT_NAME@")
|
35
data/locale/af-ZA.ini
Normal file
35
data/locale/af-ZA.ini
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Afstandbeheer van OBS deur WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket-bedienerinstellings"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Inpropinstellings"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Aktiveer WebSocket-diens"
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Bedienerinstellings"
|
||||||
|
OBSWebSocket.Settings.Password="Bedienerwagwoord"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Genereer wagwoord"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Bedienerpoort"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Waarskuwing: Tans regstreeks"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Dit lyk of ’n afvoer (stroom, opname, ens.) tans aktief is."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Is u seker u wil u verbindingsinligting laat sien?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Waarskuwing: potensiële beveiligingsprobleem"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websok bewaar die bedienerwagwoord as platteks. Dit word ten sterkste aanbeveel om ’n wagwoord wat deur obs-websok geskep is te gebruik."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Is u seker u wil u eie wagwoord gebruik?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Fout: Ongeldige opstalling"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="U moet ’n wagwoord van meet as 6 karakters gebruik."
|
||||||
|
OBSWebSocket.SessionTable.Title="Gekoppelde WebSocket-sessies"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Afstandsadres"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Sessieduur"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Boodskappe In/Uit"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Geïdentifiseer"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Verwyder?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Verwyder"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket-verbindingsinligting"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopieer"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Bediener-IP (beste skatting)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Bedienerpoort"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Bedienerwagwoord"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Koppel QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nuwe WebSocket-koppeling"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Kliënt %1 geïdentifiseer."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket-waarmerkfout"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Kliënt %1 kon nie waarmerk nie."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket-kliënt is ontkoppel"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Kliënt %1 is ontkoppel."
|
41
data/locale/ar-SA.ini
Normal file
41
data/locale/ar-SA.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="التحكم عن بعد في استوديو OBS من خلال WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="إعدادات خادم WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="إعدادات الإضافات"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="تمكين خادم WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="تمكين تنبيهات شريط النظام"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="تمكين سجلات التصحيح"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="تمكين تسجيل التصحيح للجلسة الحالية لـ OBS. لا تستمر عند اعادة الفتح.\nاستخدم --websocket_debug للتفعيل عند فتح البرنامج."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="إعدادات الخادم"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="تمكين المصادقة"
|
||||||
|
OBSWebSocket.Settings.Password="كلمة مرور الخادم"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="إنشاء كلمة مرور"
|
||||||
|
OBSWebSocket.Settings.ServerPort="منفذ الخادم"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="إظهار معلومات الاتصال"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="تحذير: البث المباشر جاري"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="يبدو أن المخرجات (البث والتسجيل الخ) نشطة حاليا."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="هل أنت متأكد من أنك تريد إظهار معلومات الاتصال الخاصة بك؟"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="تحذير: مشكلة أمان محتملة"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="يخزن obs-websocket كلمة مرور الخادم كنص عادي. يوصى بشدة استخدام كلمة المرور التي تم إنشاؤها من قبل obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="هل أنت متأكد من أنك تريد استخدام كلمة المرور الخاصة بك؟"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="خطأ:إعدادات غير صالحة"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="يجب عليك استخدام كلمة مرور تتكون من 6 أحرف أو أكثر."
|
||||||
|
OBSWebSocket.SessionTable.Title="جلسات WebSocket متصلة"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="العنوان البعيد"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="مدة الجلسة"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="الرسائل الداخلة/الخارجة"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="المعرِّف"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="طرد؟"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="طرد"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="معلومات اتصال WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="نسخ"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="عنوان IP الخادم (أفضل تخمين)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="منفذ الخادم"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="كلمة مرور الخادم"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[تم تعطيل المصادقة]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR الاتصال"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="اتصال WebSocket جديد"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="تم تحديد العميل %1."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="فشل مصادقة WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="فشل العميل %1 في المصادقة."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="تم قطع اتصال عميل WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="العميل %1 قطع الاتصال."
|
41
data/locale/be-BY.ini
Normal file
41
data/locale/be-BY.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Аддаленае кіраванне OBS Studio праз WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Налады сервера WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Налады плагіна"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Уключыць сервер WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Уключыць апавяшчэнні ў вобласці апавяшчэнняў"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Уключыць журнал адладкі"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Уключае журнал адладкі толькі для бягучага сеансу OBS. Пасля перазапуску будзе выключана.\nКаб праграма запускалася з уключанай наладай, выкарыстайце параметр --websocket_debug"
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Налады сервера"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Уключыць аўтэнтыфікацыю"
|
||||||
|
OBSWebSocket.Settings.Password="Пароль сервера"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Згенераваць"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Порт сервера"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Паказаць звесткі пра злучэнне"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Увага: ідзе трансляцыя"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Выглядае, што ў бягучы момант ідзе вывад (стрым, запіс і г. д.)."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Ці вы ўпэўненыя, што хочаце паказаць вашы звесткі пра злучэнне?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Увага: магчымая небяспека"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket захоўвае пароль сервера ў выглядзе звычайнага тэксту. Настойліва рэкамендуецца выкарыстоўваць пароль, які згенеруе obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Ці вы ўпэўненыя, што хочаце карыстацца сваім паролем?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Увага: памылковая канфігурацыя"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Пароль павінен утрымліваць 6 або больш сімвалаў."
|
||||||
|
OBSWebSocket.SessionTable.Title="Злучаныя сеансы WebSocket"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Аддалены адрас"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Даўжыня сеансу"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Паведамленні I/O"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Ідэнтыфікавана"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Выгнаць?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Выгнаць"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Звесткі пра злучэнне WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Скапіяваць"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP сервера (найлепшая здагадка)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Порт сервера"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Пароль сервера"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[аўтэнтыфікацыя адкл.]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR-код злучэння"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Новае злучэнне WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Кліент %1 ідэнтыфікаваны."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Збой аўтэнтыфікацыі WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Кліент %1 не прайшоў аўтэнтыфікацыю."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Кліент WebSocket адключаны"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Кліент %1 адключаны."
|
41
data/locale/ca-ES.ini
Normal file
41
data/locale/ca-ES.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Control remot de l'OBS Studio mitjançant WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Configuració del servidor WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Configuració del complement"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Habilita el servidor WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Habilita les notificacions a la barra de tasques"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Habilita l'informe de depuració"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Habilita l'informe de depuració només per a la instància actual de l'OBS. No persisteix en inicis posteriors.\nUtilitzeu --websocket_debug si us cal que el canvi sigui persistent."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Configuració del servidor"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Habilita l'autenticació"
|
||||||
|
OBSWebSocket.Settings.Password="Contrasenya del servidor"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Genera una contrasenya"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Port del servidor"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Mostra la informació de connexió"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Atenció: Actualment en directe"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Sembla que una sortida (retransmissió, gravació, etc.) està actualment activa."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Segur que voleu mostrar la vostra informació de connexió?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Atenció: Risc potencial de seguretat"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket emmagatzema la contrasenya del servidor com a text pla. És altament recomanable l'ús d'una contrasenya generada automàticament."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Segur que voleu utilitzar la vostra contrasenya?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Error: Configuració no vàlida"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Utilitzeu una contrasenya de 6 o més caràcters."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sessions de WebSocket connectades"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Adreça remota"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Durada de la sessió"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Missatges d'entrada/sortida"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identificat"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Expulsar?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Expulsa"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Informació de connexió del servidor WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Copia"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Adreça IP (més acurada)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Port"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Contrasenya"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autenticació inhabilitada]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR de la connexió"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Connexió nova de WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Client %1 identificat."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Ha fallat l'autenticació del servidor WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Ha fallat l'autenticació del client %1."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Client desconnectat del servidor WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Client %1 desconnectat."
|
41
data/locale/cs-CZ.ini
Normal file
41
data/locale/cs-CZ.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Vzdálené ovládání OBS Studia přes WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Nastavení WebSocket serveru"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Nastavení pluginu"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Povolit WebSocketový server"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Povolit upozornění v systémové liště"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Povolit podrobné protokolování"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Zapne podrobné protokolování pro aktuální instanci OBS. Nastavení není zachováno mezi spuštěními.\nPoužijte --websocket_debug pro povlení při spuštění."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Nastavení serveru"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Povolit přihlašování"
|
||||||
|
OBSWebSocket.Settings.Password="Heslo serveru"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Vygenerovat heslo"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Port serveru"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Zobrazit info o připojení"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Varování: Aktuálně vysíláte"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Vypadá to, že výstup (vysílání, nahrávání etc.) je právě aktivní."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Opravdu si přejete zobrazit údaje k připojení?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Varování: Potencionální bezpečnostní problém"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket ukládá heslo jako prostý text. Důrazně doporučujeme použití hesla generovaného pomocí obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Opravdu si přejete použít vaše vlastní heslo?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Chyba: Neplatná konfigurace"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Musíte použít heslo o délce nejméně 6 znaků."
|
||||||
|
OBSWebSocket.SessionTable.Title="Připojené relace WebSocketu"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Vzdálená adresa"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Délka relace"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Zprávy do/z"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identifikované"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Vykopnout?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Vykopnout"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Připojení k WebSocket serveru"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopírovat"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP adresa serveru (nejlepší odhad)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Port serveru"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Heslo serveru"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Přihlášení zakázáno]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR pro připojení"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nové WebSocket připojení"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klient %1 identifikován."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Chyba přihlášení k WebSocketu"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Klient %1 nebyl přihlášen"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket klient se odpojil"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Klient %1 se odpojil."
|
41
data/locale/da-DK.ini
Normal file
41
data/locale/da-DK.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Fjernstyring af OBS Studio via WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket-serverindstillinger"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Plugin-indstillinger"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Aktivér WebSocket-server"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Aktivér Systembakke Alarmer"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Aktivér Fejlfindingslogning"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Aktivér fejlfindingslogning for den aktuelle forekomst af OBS. Vedvarer ikke ved indlæsning.\nBrug --websocket_debug til at aktivere ved indlæsning."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Serverindstillinger"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Aktivér godkendelse"
|
||||||
|
OBSWebSocket.Settings.Password="Serveradgangskode"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Generér adgangskode"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Serverport"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Vis forbindelsesinfo"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Advarsel: Live i øjeblikket"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Det ser ud til, at et output (stream, optagelse mv.) pt. er aktiv."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Sikker på, at din forbindelsesinfo skal vises?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Advarsel: Potentielt sikkerhedsproblem"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket gemmer serverens adgangskode som alm. tekst. Det anbefales kraftigt at bruge en adgangskode genereret af obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Sikker på, at din egen adgangskoder skal bruges?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Fejl: Ugyldig opsætning"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="En adgangskode på mindst 6 tegn skal bruges."
|
||||||
|
OBSWebSocket.SessionTable.Title="Forbundne WebSocket-sessioner"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Fjernadresse"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Sessionsvarighed"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Beskeder Ind/Ud"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identificeret"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Fjern?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Fjern"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket-forbindelsesinfo"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopiér"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Server-IP (bedste gæt)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Serverport"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Serveradgangskode"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Godk. deaktiveret]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Forbindelses-QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Ny WebSocket-forbindelse"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klient %1 identificeret."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket godkendelsesfejl"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Klienten %1 kunne ikke godkendes."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket-klient frakoblet"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Klient %1 frakoblet."
|
41
data/locale/de-DE.ini
Normal file
41
data/locale/de-DE.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="OBS Studio per WebSocket fernsteuern"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket-Servereinstellungen"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Plugineinstellungen"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocket-Server aktivieren"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Warnungen im Infobereich aktivieren"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Debug-Logging aktivieren"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Aktiviert Debug-Logging für die aktuelle OBS-Instanz.\nVerwenden Sie „--websocket_debug“, damit die Option beim Starten aktiviert wird."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Servereinstellungen"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Authentifizierung aktivieren"
|
||||||
|
OBSWebSocket.Settings.Password="Serverpasswort"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Passwort generieren"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Serverport"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Verbindungsinformationen anzeigen"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Achtung: Zurzeit live"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Derzeit ist eine Ausgabe (Stream, Aufnahme, etc.) aktiv."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Möchten Sie wirklich Ihre Verbindungsinformationen anzeigen?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Achtung: Mögliches Sicherheitsproblem"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket speichert das Serverpasswort unverschlüsselt, daher ist ein von obs-websocket generiertes Passwort sehr zu empfehlen."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Möchten Sie wirklich ein eigenes Passwort verwenden?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Fehler: Ungültige Konfiguration"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Sie müssen ein Passwort mit mindestens 6 Zeichen verwenden."
|
||||||
|
OBSWebSocket.SessionTable.Title="Verbundene WebSocket-Sitzungen"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Remote-Adresse"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Sitzungsdauer"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Nachrichten rein/raus"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identifiziert"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Entfernen?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Entfernen"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket-Verbindungsinformationen"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopieren"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Server-IP (Geschätzt)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Serverport"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Serverpasswort"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="Authentifizierung deaktiviert"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR-Code zum Verbinden"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Neue WebSocket-Verbindung"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Client %1 identifiziert."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket-Authentifizierungsfehler"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Client %1 konnte sich nicht authentifizieren."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket-Client getrennt"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Client %1 getrennt."
|
41
data/locale/el-GR.ini
Normal file
41
data/locale/el-GR.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Απομακρυσμένος έλεγχος του OBS Studio μέσω WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Ρυθμίσεις Διακομιστή WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Ρυθμίσεις Προσθέτων"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Ενεργοποίηση διακομιστή WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Ενεργοποίηση Ειδοποιήσεων στο System Tray"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Ενεργοποίηση καταγραφής σφαλμάτων"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Ενεργοποιεί την καταγραφή σφαλμάτων για την τρέχουσα εικόνα του OBS. Δεν επιμένει κατά τη φόρτωση.\nΧρησιμοποίησε το --websocket_debug για να ενεργοποιηθεί κατά τη φόρτωση."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Ρυθμίσεις Διακομιστή"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Ενεργοποίηση Επαλήθευσης Στοιχείων"
|
||||||
|
OBSWebSocket.Settings.Password="Κωδικός Διακομιστή"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Δημιουργία Κωδικού"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Θύρα Διακομιστή"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Εμφάνιση Πληροφοριών Σύνδεσης"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Προειδοποίηση: Ενεργό επί του Παρόντος"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Φαίνεται ότι μια έξοδος (ροή, εγγραφή, κλπ.) είναι ενεργή αυτή τη στιγμή."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Είστε βέβαιοι ότι θέλετε να εμφανιστούν οι πληροφορίες σύνδεσης σας?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Προειδοποίηση: Πιθανό Πρόβλημα Ασφαλείας"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="Το obs-websocket αποθηκεύει τον κωδικό πρόσβασης του διακομιστή ως απλό κείμενο. Χρησιμοποιώντας έναν κωδικό πρόσβασης που δημιουργείται από το obs-websocket συνιστάται ιδιαίτερα."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Είστε βέβαιοι ότι θέλετε να χρησιμοποιήσετε το δικό σας κωδικό πρόσβασης?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Σφάλμα: Μη Έγκυρη Ρύθμιση"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Πρέπει να χρησιμοποιήσετε έναν κωδικό πρόσβασης με 6 ή περισσότερους χαρακτήρες."
|
||||||
|
OBSWebSocket.SessionTable.Title="Συνδεδεμένες Συνεδρίες WebSocket"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Απομακρυσμένη Διεύθυνση"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Διάρκεια Συνεδρίας"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Εισερχόμενα/Εξερχόμενα Μηνύματα"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Ταυτοποιήθηκε"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Διακοπή?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Διακοπή"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Πληροφορίες Σύνδεσης WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Αντιγραφή"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP Διακομιστή (Βέλτιστη Εκτίμηση)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Θύρα Διακομιστή"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Κωδικός Διακομιστή"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Ταυτοποίηση Απενεργοποιημένη]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Σύνδεση με QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Νέα Σύνδεση WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Ο πελάτης %1 ταυτοποιήθηκε."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Αποτυχία Ταυτοποίησης WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Αποτυχία ταυτοποίησης του πελάτη %1."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Αποσυνδέθηκε ο Πελάτης του WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Ο πελάτης %1 αποσυνδέθηκε."
|
1
data/locale/en-GB.ini
Normal file
1
data/locale/en-GB.ini
Normal file
@ -0,0 +1 @@
|
|||||||
|
#
|
@ -1,6 +1,6 @@
|
|||||||
OBSWebSocket.Plugin.Description="Remote-control of OBS Studio through WebSocket"
|
OBSWebSocket.Plugin.Description="Remote-control of OBS Studio through WebSocket"
|
||||||
|
|
||||||
OBSWebSocket.Settings.DialogTitle="obs-websocket Settings"
|
OBSWebSocket.Settings.DialogTitle="WebSocket Server Settings"
|
||||||
|
|
||||||
OBSWebSocket.Settings.PluginSettingsTitle="Plugin Settings"
|
OBSWebSocket.Settings.PluginSettingsTitle="Plugin Settings"
|
||||||
OBSWebSocket.Settings.ServerEnable="Enable WebSocket server"
|
OBSWebSocket.Settings.ServerEnable="Enable WebSocket server"
|
||||||
@ -45,6 +45,3 @@ OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket Authenticati
|
|||||||
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Client %1 failed to authenticate."
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Client %1 failed to authenticate."
|
||||||
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket Client Disconnected"
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket Client Disconnected"
|
||||||
OBSWebSocket.TrayNotification.Disconnected.Body="Client %1 disconnected."
|
OBSWebSocket.TrayNotification.Disconnected.Body="Client %1 disconnected."
|
||||||
|
|
||||||
OBSWebSocket.Server.StartFailed.Title="WebSocket Server Failure"
|
|
||||||
OBSWebSocket.Server.StartFailed.Message="The WebSocket server failed to start. TCP port %1 may already be in use elsewhere on this system by another application. Try setting a different TCP port in the WebSocket server settings, or stop any application that could be using this port.\n Error message: %2"
|
|
||||||
|
41
data/locale/es-ES.ini
Normal file
41
data/locale/es-ES.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Control remoto de OBS Studio a través de WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Ajustes del servidor WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Ajustes del plugin"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Habilitar servidor WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Habilitar alertas en la bandeja del sistema"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Habilitar registro de depuración"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Habilita el registro de depuración para la instancia actual de OBS. No persiste al cargar.\nUse --websocket_debug para activar al cargar."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Ajustes del servidor"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Habilitar autenticación"
|
||||||
|
OBSWebSocket.Settings.Password="Contraseña del servidor"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Generar contraseña"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Puerto del servidor"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Mostrar información de conexión"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Advertencia: Actualmente en directo"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Parece que una salida (emisión, grabación, etc.) está activa."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="¿Estás seguro de que quieres mostrar tu información de conexión?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Advertencia: Problema potencial de seguridad"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket almacena la contraseña del servidor como texto plano. El uso de una contraseña generada por obs-websocket es altamente recomendable."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="¿Está seguro de que desea utilizar su propia contraseña?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Error: Configuración no válida"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Debe utilizar una contraseña de 6 o más caracteres."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sesiones conectadas de WebSocket"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Dirección remota"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Duración de la sesión"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Entrada/Salida de mensajes"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identificado"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="¿Expulsar?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Expulsar"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Información de conexión de WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Copiar"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP del servidor (mejor propuesta)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Puerto del servidor"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Contraseña del servidor"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autenticación desactivada]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR de conexión"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nueva conexión WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Cliente %1 identificado."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Fallo de autenticación WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="El cliente %1 no se pudo autenticar."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Cliente WebSocket desconectado"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Cliente %1 desconectado."
|
41
data/locale/et-EE.ini
Normal file
41
data/locale/et-EE.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="OBS Studio kaugjuhtimine WebSocketi kaudu"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket serveri seaded"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Plugina seaded"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Luba WebSocket server"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Luba hoiatused tegumireal"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Luba silumislogimine"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Lubab OBS-i praeguse eksemplari silumislogimise. Ei püsi laadimisel.\nLaadimisel lubamiseks kasutage --websocket_debug."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Serveri seaded"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Luba autentimine"
|
||||||
|
OBSWebSocket.Settings.Password="Serveri salasõna"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Loo salasõna"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Serveri port"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Näita ühenduse infot"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Hoiatus: hetkel otseülekandes"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Näib, et väljund (voogedastus, salvestus jne) on hetkel aktiivne."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Kas oled kindel, et soovid oma ühenduse teavet näidata?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Hoiatus: võimalik turvaprobleem"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket salvestab serveri salasõna lihtsa tekstina. obs-websocket'i poolt loodud salasõna kasutamine on väga soovitatav."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Kas oled kindel, et soovid kasutada oma salasõna?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Viga: vigane konfiguratsioon"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Pead kasutama salasõna, mis koosneb 6 või enamast tähemärgist."
|
||||||
|
OBSWebSocket.SessionTable.Title="Ühendatud WebSocket'i seansid"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Kaugjuhtimise aadress"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Seansi kestvus"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Sõnumid sisse/välja"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Tuvastatud"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Eemalda?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Eemalda"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket'i ühenduse info"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopeeri"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Serveri IP (parim oletus)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Sreveri port"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Serveri salasõna"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autentimine keelatud]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Ühenda QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Uus WebSocket'i ühendus"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klient %1 tuvastatud."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket autentimise tõrge"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Kliendi %1 autentimine ebaõnnestus."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket kliendi ühendus katkenud"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Kliendi %1 ühendus katkenud."
|
40
data/locale/eu-ES.ini
Normal file
40
data/locale/eu-ES.ini
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="OBS Studioren urruneko kontrolatzailea WebSocket-en bidez"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Plugin Ezarpenak"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocket zerbitzaria gaitu"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Aktibatu sistema-erretiluko alertak"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Gaitu arazketa erregistroa"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="OBSren uneko instantzian arazketa erregistroa gaitzen du. Berriro irekitzerakoan ez da mantenduko . \nErabili --websocket_debug kargatzerakoan gaitzeko."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Zerbitzariaren Ezarpenak"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Autentifikazioa aktibatu"
|
||||||
|
OBSWebSocket.Settings.Password="Zerbitzari pasahitza"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Pasahitza sortu"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Zerbitzari portua"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Konexio-informazioa erakutsi"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Adi: Zuzenean zaude"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Irteera bat (stream, grabazioa, etab.) aktibo dagoela badirudi."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Ziur zaude konexio-informazioa erakutsi nahi duzula?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Adi: Segurtasun arazo potentziala"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket-ek zerbitzariaren pasahitza testu sinple gisa gordetzen du. obs-websocket bidez sortutako pasahitza erabiltzea gomendatzen da."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Ziur zaude zure pasahitza erabili nahi duzula?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Errorea: konfigurazio baliogabea"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="6 karaktere edo gehiagoko pasahitza erabili behar duzu."
|
||||||
|
OBSWebSocket.SessionTable.Title="Konektatutako WebSocket saioak"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Urruneko helbidea"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Saioaren iraupena"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Sarrera-/irteera-mezuak"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identifikatuta"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Kanporatu?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Kanporatu"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket konexio-informazioa"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopiatu"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Zerbitzariaren IP-a (proposamen hoberena)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Zerbitzari portua"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Zerbitzari pasahitza"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autorizazioa desgaituta]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Konexioaren QR kodea"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="WebSocket konexio berria"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="%1 bezeroa identifikatuta."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket Autentikazioan hutsegitea"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="%1 bezeroak autentifikatzen huts egin du."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket Bezeroa deskonektatu da"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="%1 bezeroa deskonektatu da."
|
41
data/locale/fa-IR.ini
Normal file
41
data/locale/fa-IR.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="کنترل از راه دور OBS Studio از طریق WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="تنظیمات سرور سوکت وب"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="تنظیمات پلاگین"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="سرور سوکت وب را فعال کنید"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="هشدارهای سینی سیستم را فعال کنید"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="فعال کردن گزارش اشکال زدایی"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="ثبت اشکال زدایی را برای نمونه فعلی OBS فعال می کند. در بارگذاری ادامه نمییابد.\n برای فعال کردن در بارگذاری از --websocket_debug استفاده کنید."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="تنظیمات سرور"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="فعال کردن احراز هویت"
|
||||||
|
OBSWebSocket.Settings.Password="رمز سرور"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="ایجاد رمز عبور"
|
||||||
|
OBSWebSocket.Settings.ServerPort="پورت سرور"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="نمایش اطلاعات اتصال"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="هشدار: در حال حاضر زنده است"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="به نظر می رسد که یک خروجی (جریان، ضبط و غیره) در حال حاضر فعال است."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="آیا مطمئن هستید که می خواهید اطلاعات اتصال خود را نشان دهید؟"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="هشدار: مشکل امنیتی احتمالی"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket رمز عبور سرور را به صورت متن ساده ذخیره می کند. استفاده از رمز عبور تولید شده توسط obs-websocket بسیار توصیه می شود."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="آیا مطمئن هستید که می خواهید از رمز عبور خود استفاده کنید؟"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="خطا: پیکربندی نامعتبر است"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="باید از رمز عبور 6 کاراکتر یا بیشتر استفاده کنید."
|
||||||
|
OBSWebSocket.SessionTable.Title="جلسات سوکت وب متصل"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="آدرس از راه دور"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="مدت زمان جلسه"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="پیام های ورودی/خارجی"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="تایید هویت شده"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="لگد زدن؟"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="اخراج"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="اطلاعات اتصال سوکت وب"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="رونوشت"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP سرور (بهترین حدس)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="پورت سرور"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="رمز سرور"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[احراز غیر فعال]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR را وصل کنید"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="اتصال سوکت وب جدید"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="سرویس گیرنده %1 شناسایی شد."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="خرابی تأیید اعتبار سوکت وب"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="سرویس گیرنده %1 احراز هویت نشد."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="سرویس گیرنده سوکت وب قطع شد"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="سرویس گیرنده %1 قطع شد."
|
41
data/locale/fi-FI.ini
Normal file
41
data/locale/fi-FI.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="OBS Studion etähallinta WebSocketin kautta"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket-palvelimen asetukset"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Liitännäisen asetukset"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Ota WebSocket-palvelin käyttöön"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Ota ilmoitusalueen ilmoitukset käyttöön"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Ota vianjäljityslokitus käyttöön"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Ottaa käyttöön OBS:n virheenkorjauksen lokin. Ei kuormituksen aikana.\nKäytä --websocket_debug ottaaksesi latauksen käyttöön."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Palvelimen asetukset"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Ota tunnistautuminen käyttöön"
|
||||||
|
OBSWebSocket.Settings.Password="Palvelimen salasana"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Luo salasana"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Palvelimen portti"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Näytä yhteyden tiedot"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Varoitus: Suora lähetys"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Näyttää siltä, että jokin lähetys (suoratoisto, tallennus jne.) on tällä hetkellä aktiivinen."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Oletko varma, että haluat näyttää sinun yhteyden tiedot?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Varoitus: Mahdollinen tietoturvaongelma"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket tallentaa palvelimen salasanan pelkkänä tekstinä. Obs-websocketin luoman salasanan käyttäminen on erittäin suositeltavaa."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Haluatko varmasti käyttää omaa salasanaasi?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Virhe: Virheellinen määritys"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Sinun täytyy käyttää salasanaa, jossa on vähintään 6 merkkiä."
|
||||||
|
OBSWebSocket.SessionTable.Title="Yhdistetyt WebSocket-istunnot"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Etäosoite"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Istunnon kesto"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Viestejä sisään/ulos"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Tunnistettu"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Potki?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Potki"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket-yhteystiedot"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopioi"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Palvelimen IP (paras arvaus)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Palvelimen portti"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Palvelimen salasana"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Todennus poistettu]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Yhdistä QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Uusi WebSocket-yhteys"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Asiakas %1 tunnistettu."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket-tunnistusvirhe"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Asiakas %1 todennus epäonnistui."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket-asiakas katkaisi yhteyden"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Asiakas %1 on katkaistu."
|
37
data/locale/fil-PH.ini
Normal file
37
data/locale/fil-PH.ini
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Remote-control ng OBS Studio sa pamamagitan ng WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Mga Setting Ng WebSocket Server"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Mga Setting ng Plugin"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Paganahin ang WebSocket server"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Paganahin ang System Tray Alerto"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Paganahin ang Debug Log"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Paganahin ang debug log para sa kasalukuyang instance ng OBS. Hindi nagpapatuloy sa pag-load.\nGumamit ng --websocket_debug upang paganahin ang pag-load."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Mga setting ng Server"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Paggamit ng Pagpapatunay"
|
||||||
|
OBSWebSocket.Settings.Password="Password ng server"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Mag-Generate ng Password"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Ipakita ang Impormasyon sa Pagkonekta"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Babala: Kasalukuyang nakalive"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Lumalabas na kasalukuyang aktibo ang isang output (stream, recording, atbp.)."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Sigurado ka bang gusto mong ipakita ang iyong impormasyon sa pagkonekta?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Babala: Potensyal na Isyu sa Seguridad"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="Iniimbak ng obs-websocket ang password ng server bilang plain text. Ang paggamit ng password na nabuo ng obs-websocket ay lubos na inirerekomenda."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Sigurado ka bang gusto mong gamitin ang iyong sariling password?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Error: Di-wastong Configuration"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Dapat kang gumamit ng password na 6 o higit pang mga character."
|
||||||
|
OBSWebSocket.SessionTable.Title="Nakakonektang WebSocket Session"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Tagal ng Session"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Mga Mensahe In/Out"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Kilalanin."
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Sipa?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Sipa"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Impormasyon ng WebSocket Connect"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopyahin"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Password ng server"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Naka-disable ang Auth]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Ikonekta ang QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Bagong Koneksyon sa WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Natukoy ang %1 ng kliyente."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Nabigo sa Pagpapatunay ang WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Nabigo ang kliyenteng %1 na patotohanan."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Nadiskonekta ang WebSocket Client"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Nadiskonekta ang kliyenteng %1."
|
41
data/locale/fr-FR.ini
Normal file
41
data/locale/fr-FR.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Contrôle à distance d'OBS Studio via WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Paramètres du serveur WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Paramètres du plugin"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Activer le serveur WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Activer les alertes de la zone de notification"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Activer les journaux de débogage"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Active la journalisation du débogage pour l'instance actuelle d'OBS. Ne persiste pas au chargement.\nUtilisez --websocket_debug pour l'activer lors du chargement."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Paramètres du serveur"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Utiliser l'authentification"
|
||||||
|
OBSWebSocket.Settings.Password="Mot de passe du serveur"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Générer un mot de passe"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Port du serveur"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Afficher les informations de connexion"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Avertissement : Actuellement en direct"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Il semble qu'une sortie (stream, enregistrement, etc.) soit actuellement active."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Êtes-vous sûr de vouloir afficher vos informations de connexion ?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Avertissement : Problème potentiel de sécurité"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket enregistre le mot de passe du serveur en texte brut. L'utilisation d'un mot de passe généré par obs-websocket est fortement recommandée."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Êtes-vous sûr(e) de vouloir utiliser votre propre mot de passe ?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Erreur : Configuration invalide"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Vous devez utiliser un mot de passe de 6 caractères ou plus."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sessions WebSocket connectées"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Adresse distante"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Durée de session"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Messages entrant/sortant"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identifié"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Expulser ?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Expulser"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Informations de connexion WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Copier"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP du serveur (meilleure estimation)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Port serveur"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Mot de passe du serveur"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Authentification désactivée]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR code de connexion"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nouvelle connexion WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Client %1 identifié."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Échec de l'authentification WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Échec d'authentification du client %1."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Client WebSocket déconnecté"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Client %1 déconnecté."
|
6
data/locale/gl-ES.ini
Normal file
6
data/locale/gl-ES.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Configuración do servidor"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Copiar"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Porto do Servidor"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Contrasinal do Servidor"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Cliente %1 identificado."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Cliente %1 desconectado."
|
41
data/locale/he-IL.ini
Normal file
41
data/locale/he-IL.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="שליטה מרחוק על OBS Studio באמצעות WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="הגדרות שרת WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="הגדרות תוסף"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="הפעלת שרת WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="הפעלת התראות במגש המערכת"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="הפעלת לוג איתור באגים"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="מאפשר לוג איתור באגים עבור ההפעלה הנוכחית של OBS. לא ממשיך לפעול בעת הפעלה.\nיש להשתמש ב --websocket_debug בכדי לאפשר בעת ההפעלה."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="הגדרות שרת"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="שימוש באימות"
|
||||||
|
OBSWebSocket.Settings.Password="סיסמת שרת"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="יצירת סיסמה"
|
||||||
|
OBSWebSocket.Settings.ServerPort="פורט שרת"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="הצגת מידע חיבור"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="אזהרה: שידור חי פעיל"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="נראה כי פלט (שידור חי, הקלטה וכו') פעיל כרגע."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="האם ברצונך להציג את המידע על החיבור שלך?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="אזהרה: בעיית אבטחה אפשרית"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket שומר את סיסמת השרת שלך כטקסט רגיל. מומלץ להשתמש בסיסמה שנוצרה ע\"י obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="האם ברצונך להשתמש בסיסמה שלך?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="שגיאה: תצורה לא חוקית"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="חובה להשתמש בסיסמה עם 6 תווים או יותר."
|
||||||
|
OBSWebSocket.SessionTable.Title="הפעלות WebSocket מחוברות"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="כתובת מרוחקת"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="משך זמן הפעלה"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="הודעות פנים/חוץ"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="מזוהים"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="בעט?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="בעט"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="מידע חיבור WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="העתקה"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="כתובת IP שרת (הניחוש המוצלח ביותר)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="פורט שרת"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="סיסמת שרת"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[אימות מושבת]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="חיבור QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="חיבור WebSocket חדש"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="לקוח %1 זוהה."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="אימות WebSocket נכשל"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="לקוח %1 נכשל באימות"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="לקוח WebSocket התנתק"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="לקוח %1 התנתק."
|
41
data/locale/hi-IN.ini
Normal file
41
data/locale/hi-IN.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="WebSocket के माध्यम से OBS स्टूडियो का रिमोट-कंट्रोल"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="वेबसॉकेट सर्वर सेटिंग्स"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="प्लगइन सेटिंग्स"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocket सर्वर सक्षम करें"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="सिस्टम ट्रे अलर्ट सक्षम करें"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="डिबग लॉगिंग सक्रिय करें"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="OBS के वर्तमान इंसटैन्स के लिए डीबग लॉगिंग सक्षम करता है. लोड होने पर कायम नहीं रहता है.\n लोड होने पर सक्षम करने के लिए --websocket_debug का उपयोग करें."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="सर्वर सेटिंग"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="प्रमाणीकरण सक्षम करें"
|
||||||
|
OBSWebSocket.Settings.Password="सर्वर का पासवर्ड"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="पासवर्ड बनाएं"
|
||||||
|
OBSWebSocket.Settings.ServerPort="सर्वर पोर्ट"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="कनेक्ट जानकारी दिखाएं"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="चेतावनी: वर्तमान में लाइव"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="ऐसा प्रतीत होता है कि कोई एक आउटपुट (स्ट्रीम, रिकॉर्डिंग, आदि) वर्तमान में सक्रिय है."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="क्या आप वाकई अपनी कनेक्ट जानकारी दिखाना चाहते हैं?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="चेतावनी : संभावित सुरक्षा समस्या"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket सर्वर पासवर्ड को प्लेन टेक्स्ट के रूप में स्टोर करता है. obs-websocket द्वारा उत्पन्न पासवर्ड का उपयोग करने की अत्यधिक अनुशंसा की जाती है."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="क्या आप वाकई स्वयं का पासवर्ड प्रयोग करना चाहते हैं?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="त्रुटि : अमान्य कॉन्फ़िगरेशन"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="आपको 6 या अधिक वर्णों वाले पासवर्ड का उपयोग करना चाहिए."
|
||||||
|
OBSWebSocket.SessionTable.Title="कनेक्टेड वेबसॉकेट सत्र"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="रिमोट ऐड्रेस"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="सत्र अवधि"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="संदेश इन/आउट"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="पहचाना हुआ"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="निकालें?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="निकालें"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket कनेक्ट जानकारी दिखाएं"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="प्रतिलिपि"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="सर्वर IP (सर्वश्रेष्ठ अनुमान)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="सर्वर पोर्ट"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="सर्वर का पासवर्ड"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[पहुँच अक्षम]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR से जुड़ें"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="नया WebSocket कनेक्शन"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="क्लाइंट %1 की पहचान की गई."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket सत्यापन विफलता"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="क्लाइंट %1प्रमाणित करने में विफल रहा."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="वेबसॉकेट क्लाइंट डिस्कनेक्ट हो गया"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="क्लाइंट %1 डिस्कनेक्ट हो गया."
|
10
data/locale/hr-HR.ini
Normal file
10
data/locale/hr-HR.ini
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
OBSWebSocket.Settings.DialogTitle="Postavke servera WebSocket"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Pogreška: Neispravna konfiguracija"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Lozinka mora sadržavati barem 6 znakova."
|
||||||
|
OBSWebSocket.SessionTable.Title="Spojene sesije WebSocketa"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Udaljena adresa"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Trajanje sesije"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Ulaz/izlaz poruka"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopiraj"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Vrata servera"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Lozinka servera"
|
41
data/locale/hu-HU.ini
Normal file
41
data/locale/hu-HU.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Az OBS Studio távvezérlése WebSocketen keresztül"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket-kiszolgáló beállításai"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Bővítménybeállítások"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocket-kiszolgáló engedélyezése"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Rendszertálca-riasztások bekapcsolása"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Hibakeresési naplózás bekapcsolása"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Bekapcsolja a hibakeresési naplózást a jelenlegi OBS-példánynál. Betöltéskor nem marad meg.\nA betöltéskor történő bekapcsoláshoz használja a --websocket_debug kapcsolót."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Kiszolgálóbeállítások"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Hitelesítés bekapcsolása"
|
||||||
|
OBSWebSocket.Settings.Password="Kiszolgáló jelszava"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Jelszó előállítása"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Kiszolgáló portja"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Kapcsolódási információ megjelenítése"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Figyelmeztetés: Élő adásban van"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Úgy néz ki, hogy egy kimenet (közvetítés, felvétel, stb.) jelenleg aktív."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Biztos, hogy megjeleníti a kapcsolódási információkat?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Figyelmeztetés: lehetséges biztonsági probléma"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="Az obs-websocket titkosítatlan szövegként tárolja a kiszolgáló jelszavát. Ajánlatos egy az obs-websocket általelőállított jelsztó használni."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Biztos, hogy a saját jelszavát használja?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Hiba: Érvénytelen konfiguráció"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Legalább 6 karakterből álló jelszót kell használnia."
|
||||||
|
OBSWebSocket.SessionTable.Title="Kapcsolódott WebSocket munkamenetek"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Távoli cím"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Munkamenet hossza"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Bejövő és kimenő üzenetek"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Azonosított"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Kirúgás?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Kirúgás"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket kapcsolati információk"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Másolás"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Kiszolgáló IP (legjobb tipp)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Kiszolgáló portja"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Kiszolgáló jelszava"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Hitelesítés kikapcsolva]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Kapcsolódási QR-kód"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Új WebSocket-kapcsolat"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="A(z) %1 kliens azonosítva."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket hitelesítési hiba"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="A(z) %1 kliens hitelesítése sikertelen."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="A WebSocket-kliens bontotta a kapcsolatot"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="A(z) %1 kliens bontotta a kapcsolatot"
|
41
data/locale/hy-AM.ini
Normal file
41
data/locale/hy-AM.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="OBS Studio-ի հեռակառավարումը WebSocket-ի միջոցով"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket Սպասարկչի Կարգավորումները"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Միացնիչի կարգավորումներ"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Միացնել WebSocket սերվերը"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Միացնել սկուտեղի ծանուցումները"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Միացնել վրիպազերծման գրանցումը"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Միացնում է վրիպազերծման գրանցումը ընթացիկ OBS օրինակի համար: Չի պահպանվում գործարկման ժամանակ:\nՕգտագործեք --websocket_debug՝ գործարկման ժամանակ միացնելու համար:"
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Սերվերի կարգավորումներ"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Միացնել նույնականացումը"
|
||||||
|
OBSWebSocket.Settings.Password="Սերվերի գաղտնաբառը"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Ստեղծել գաղտնաբառը"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Սերվերի պորտ"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Ցույց տալ կապի մանրամասները"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Զգուշացում։ Հիմա ուղիղ եթեր"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Կարծես թե ելքը (հոսք, գրել և այլն) ներկայումս ակտիվ է:"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Իսկապե՞ս ուզում եք ցույց տալ ձեր կապի մանրամասները:"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Զգուշացում։ Հնարավոր անվտանգության խնդիր"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket-ը պահպանում է սերվերի գաղտնաբառը պարզ տեքստով: Խիստ խորհուրդ է տրվում օգտագործել obs-websock-ի կողմից ստեղծված գաղտնաբառը:"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Վստա՞հ եք, որ ցանկանում եք օգտագործել ձեր սեփական գաղտնաբառը:"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Սխալ։ Անվավեր կոնֆիգուրացիա"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Դուք պետք է օգտագործեք 6 կամ ավելի նիշից բաղկացած գաղտնաբառ:"
|
||||||
|
OBSWebSocket.SessionTable.Title="Միացված WebSocket նիստեր"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Ջնջված հասցե"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Նիստի տևողությունը"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Ներս/Դուրս հաղորդագրություններ"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Ճանաչված"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Վտարե՞լ:"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Վտարել"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket կապի մանրամասները"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Պատճենել"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Սերվերի ԻԱ (լավագույն ենթադրություն)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Սերվերի պորտ"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Սերվերի գաղտնաբառը"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Թույլտվությունն անջատված է]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Միացման ԱԱ կոդը"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Նոր WebSocket կապ"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Հաճախորդը ճանաչվեց %1:"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket վավերացման սխալ"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="%1 հաճախորդը չհաջողվեց նույնականացնել:"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket հաճախորդն անջատված է"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="%1 հաճախորդն անջատվել է:"
|
41
data/locale/id-ID.ini
Normal file
41
data/locale/id-ID.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Kendali jarak jauh OBS Studio melalui WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Pengaturan Server WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Pengaturan Plugin"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Aktifkan server WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Aktifkan Peringatan Baki Sistem"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Aktifkan Pencatatan Awakutu"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Aktifkan pencatatan awakutu untuk permintaan OBS saat ini. Tidak terus aktif saat memuat.\nGunakan --websocket_debug agar diaktifkan saat memuat."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Pengaturan Server"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Aktifkan Autentikasi"
|
||||||
|
OBSWebSocket.Settings.Password="Kata Sandi Server"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Buat Kata Sandi"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Port Server"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Tampilkan Informasi Koneksi"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Peringatan: Saat Ini Siaran Langsung"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Sepertinya sebuah output (stream, rekaman, dll.) sedang aktif."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Anda yakin ingin melihat informasi koneksi Anda?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Peringatan: Potensi Masalah Keamanan"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket menyimpan kata sandi server sebagai teks biasa. Sangat disarankan untuk menggunakan kata sandi yang diciptakan oleh obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Apakah Anda yakin ingin menggunakan kata sandi sendiri?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Galat: Konfigurasi Tidak Berlaku"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Anda harus menggunakan kata sandi yang minimal 6 karakter atau lebih."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sesi WebSocket yang Terhubung"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Alamat Kendali"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Durasi Sesi"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Pesan Masuk/Keluar"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Teridentifikasi"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Putuskan?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Putuskan"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Informasi Koneksi WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Salin"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP Server (Tebakan Terbaik)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Port Server"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Kata Sandi Server"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autentikasi Dinonaktifkan]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Hubungkan QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Koneksi WebSocket Baru"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klien %1 teridentifikasi."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Autentikasi WebSocket Gagal"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Klien %1 gagal mengautentikasi."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Klien WebSocket Terputus"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Klien %1 terputus."
|
41
data/locale/it-IT.ini
Normal file
41
data/locale/it-IT.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Controllo remoto di OBS Studio tramite WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Impostazioni server WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Impostazioni del plugin"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Abilita il server WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Abilita avvisi sulla barra delle applicazioni"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Abilita registrazione debug"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Abilita la registrazione debug per l'istanza attuale di OBS.\nNon rimane attiva per il prossimo caricamento.\nUsa --websocket_debug per abilitarla al caricamento."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Impostazioni server"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Abilita autenticazione"
|
||||||
|
OBSWebSocket.Settings.Password="Password server"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Genera password"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Porta server"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Visualizza informazioni di connessione"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Attenzione: attualmente in diretta"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Sembra che sia attualmente attivo un output (stream, registrazione, ecc.)."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Sei sicuro di voler visualizzare le tue informazioni di connessione?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Avvertimento: potenziale problema di sicurezza"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket memorizza la password del server come testo normale.\nTi consigliamo vivamente di usare una password generata da obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Sei sicuro di voler usare la tua password?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Errore: configurazione non valida"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="È necessario usare una password di 6 o più caratteri."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sessioni WebSocket connesse"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Indirizzo remoto"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Durata sessione"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Messaggi in entrata/uscita"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identificato"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Chiudere?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Chiudi"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Informazioni sulla connessione WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Copia"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP server (miglior ipotesi)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Porta server"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Password server"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autorizzazione disabilitata]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR connessione"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nuova connessione WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Identificato client %1."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Errore di autenticazione WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Il client %1 non è riuscito ad autenticarsi."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Client WebSocket disconnesso"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Client %1 disconnesso."
|
41
data/locale/ja-JP.ini
Normal file
41
data/locale/ja-JP.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="WebSocketを介したOBS Studioのリモートコントロール"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket サーバー設定"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="プラグイン設定"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocketサーバーを有効にする"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="システムトレイアラートを有効にする"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="デバッグログを有効にする"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="現在のOBSインスタンスに対してデバッグログを有効にします。ロード時には持続しません。\nロード時に有効にするには --websocket_debug を使用します。"
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="サーバー設定"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="認証を有効にする"
|
||||||
|
OBSWebSocket.Settings.Password="サーバーパスワード"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="パスワードを生成"
|
||||||
|
OBSWebSocket.Settings.ServerPort="サーバーポート"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="接続情報を表示"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="警告: 現在出力中"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="出力 (配信、録画など) が現在アクティブになっているようです。"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="接続情報を表示してもよろしいですか?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="警告: 潜在的なセキュリティの問題"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocketはサーバーのパスワードをプレーンテキストとして保存します。 obs-websocketによって生成されたパスワードを使用することを強くお勧めします。"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="自分が設定したパスワードを使用してもよろしいですか?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="エラー: 無効な設定です"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="6文字以上のパスワードを使用する必要があります。"
|
||||||
|
OBSWebSocket.SessionTable.Title="接続されているWebSocketセッション"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="リモートアドレス"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="セッション時間"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="メッセージ In/Out"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="識別"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="キック?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="キック"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket接続情報"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="コピー"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="サーバーIP (推測)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="サーバーポート"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="サーバーパスワード"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[認証無効]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="接続用QRコード"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="新しいWebSocket接続"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="クライアント %1 が識別されました。"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket認証失敗"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="クライアント %1 の認証に失敗しました。"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocketクライアントが切断されました"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="クライアント %1 が切断されました。"
|
41
data/locale/ka-GE.ini
Normal file
41
data/locale/ka-GE.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="OBS Studio-ს დაშორებულად მართვა WebSocket-ით"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket-სერვერის პარამეტრები"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="მოდულის პარამეტრები"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocket-სერვერის ჩართვა"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="სისტემური არეში ცნობების ჩართვა"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="გამართვის აღრიცხვის ჩართვა"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="აღირიცხება ამ გაშვებული OBS-ის ჩანაწერები გაუმართაობის მოსაგვარებლად. გაშვებისას არ ნარჩუნდება.\nგამოიყენეთ --websocket_debug გაშვებისას ჩასართავად."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="სერვერის პარამეტრები"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="ანგარიშზე შესვლით"
|
||||||
|
OBSWebSocket.Settings.Password="სერვერის პაროლი"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="პაროლის შედგენა"
|
||||||
|
OBSWebSocket.Settings.ServerPort="სერვერის პორტი"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="კავშირის შესახებ"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="გაფრთხილება: პირდაპირ ეთერშია"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="როგორც ჩანს, გამოტანა (ნაკადის, ჩანაწერის და სხვ.) ეთერში გადის."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="ნამდვილად გსურთ კავშირის მონაცემების გამოჩენა?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="ყურადღება: სავარაუდო საფრთხე"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket სერვერის პაროლს ტექსტის სახით. დაჟინებით გირჩევთ, გამოიყენოთ obs-websocket-ით შედგენილი პაროლი."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="ნამდვილად გსურთ საკუთარი პაროლის გამოყენება?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="შეცდომა: არასწორი გამართვა"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="პაროლი უნდა შეიცავდეს 6 ან მეტ სიმბოლოს."
|
||||||
|
OBSWebSocket.SessionTable.Title="დაკავშირებული WebSocket-სეანსები"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="დაშორებული მისამართი"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="სეანსის ხანგრძლივობა"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="მიღებ./გაგზ. შეტყობინებები"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="ამოცნობილი"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="გაითიშოს?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="გათიშვა"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket-კავშირის შესახებ"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="ასლი"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="სერვერის-IP (თვითდადგენით)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="სერვერის პორტი"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="სერვერის პაროლი"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[ანგარიშზე შეუსვლელად]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="კავშირის QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="ახალი WebSocket-კავშირი"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="კლიენტი %1 აღმოშენილია."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket-შესვლის დამოწმება ვერ მოხერხდა"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="კლიენტი %1 ვერ დამოწმდა."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket-კლიენტი გამოითიშა"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="კლიენტი %1 გამოთიშეულია."
|
41
data/locale/kmr-TR.ini
Normal file
41
data/locale/kmr-TR.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Rêveberina ji dûr ve ya OBS Studio bi riya WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Sazkariyên rajekar a WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Sazkariyên pêvekê"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Rajekarê WebSocket çalak bike"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Hişyariyên darika pergalê çalak bike"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Têketinê serrastkirinê çalak bike"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Têketinê serrastkirinê çalak bike ji bo danişîna heyî ya OBS. Li ser barkirinê nadomîne.\nBikaranîna --websocket_debug rê dide bo çalakkirina barkirinê."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Sazkariyên rajekar"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Rastandinê çalak bike"
|
||||||
|
OBSWebSocket.Settings.Password="Borînpeyva rajekar"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Borînpeyvê çê bike"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Dergeha rajekar"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Zanyariyên girêdanê nîşan bide"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Hişyarî: Weşan zindî ye"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Xuye dike ku deraneke (weşan, tomarkirin, hwd.) niha çalak e."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Ma tu bi rastî dixwazî zanyariya girêdana xwe nîşan bidî?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Hişyarî: Pirsgirêka ewlekariya potansiyel"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket borînpeyva rajekarê wekî nivîsek sade hiltîne. Bikaranîna borînpeyva ku ji hêla obs-websocket ve hatî çêkirin pir tê pêşniyar kirin."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Ma tu dixwazî ku borînpeyva xwe bi kar bînî?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Çewtî: Pevsazkirin ne derbasdar e"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Divê tu borînpeyvekê bi kar bînî ku ji 6 an jî bêtir tîpan be."
|
||||||
|
OBSWebSocket.SessionTable.Title="Danişînên WebSocket ên girêdayî"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Navnîşana ji dûr ve"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Dirêjahiya danişînê"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Peyamên Çûyî/Hatî"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Naskirî"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Derxîne?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Derxîne"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Zanyariyên girêdanê WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Jê bigire"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP ya rajekar (Çêtirîn texmîn)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Dergeha rajekar"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Borînpeyva rajekar"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Rastandin neçalak e]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR girê bide"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Girêdana bû ya WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Rajegir %1 hate naskirin."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Rastandina WebSocket têk çû"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Rastandina rajegir %1 têk çû."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Girêdana rajegira WebSocket qut bû"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Girêdana rajegir %1 qut bû."
|
41
data/locale/ko-KR.ini
Normal file
41
data/locale/ko-KR.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="WebSocket으로 OBS Studio를 원격 제어"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket 서버 설정"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="플러그인 설정"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocket 서버 사용"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="시스템 트레이 알림 사용"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="디버그 기록 사용"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="OBS의 현재 인스턴스에 대해 디버그 기록을 활성화합니다. 불러오는 중에는 기록이 중단됩니다.\n불러오는 중에도 활성화하려면 --websocket_debug 인자를 이용하십시오."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="서버 설정"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="인증 기능 사용"
|
||||||
|
OBSWebSocket.Settings.Password="서버 비밀번호"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="비밀번호 생성"
|
||||||
|
OBSWebSocket.Settings.ServerPort="서버 포트"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="서버 정보 표시"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="경고: 현재 활성화 중"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="현재 출력(스트림, 녹화 등)이 활성화된 것으로 보입니다."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="정말로 연결 정보를 표시하시겠습니까?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="경고: 잠재적 보안 문제"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket은 서버 비밀번호를 평문으로 저장합니다. obs-websocket에서 생성한 비밀번호를 사용하는 것을 적극 권장합니다."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="정말로 직접 설정한 비밀번호를 사용하시겠습니까?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="오류: 설정이 유효하지 않음"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="6자 이상의 비밀번호를 사용해야 합니다."
|
||||||
|
OBSWebSocket.SessionTable.Title="WebSocket 세션에 연결됨"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="원격 주소"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="세션 지속 시간"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="메시지 입출력"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="식별 기록"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="퇴장?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="퇴장"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket 연결 정보"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="복사"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="서버 IP (추정)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="서버 포트"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="서버 비밀번호"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[인증 사용 안 함]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="연결 QR코드"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="새 WebSocket 연결"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="클라이언트 %1 식별 성공."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket 인증 실패"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="클라이언트 %1 인증 실패."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket 클라이언트 연결 해제됨"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="클라이언트 %1 연결 해제됨."
|
41
data/locale/ms-MY.ini
Normal file
41
data/locale/ms-MY.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Kawalan-jauh OBS Studio melalui WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Tetapan Pelayan WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Tetapan Pemalam"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Benarkan pelayan WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Benarkan Amaran Talam Sistem"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Benarkan Pegelogan Nyahpepijat"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Membenarkan pengelogan nyahpepijat bagi kejadian OBS semasa. Tidak ditetapkan ketika muat.\nGuna --websocket_debug untuk didayakan ketika muat."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Tetapan Pelayan"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Benarkan Pengesahihan"
|
||||||
|
OBSWebSocket.Settings.Password="Kata Laluan Pelayan"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Jana Kata Lauan"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Port Pelayan"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Tunjuk Maklumat Sambungan"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Amaran: Sedang Berlangsung"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Nampaknya ada output (strim, rakaman, dll.) masih aktif."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Anda pasti mahu menunjukkan maklumat sambungan anda?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Amaran: Isu Keselamatan Mungkin Ada"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket menyimpan kata laluan pelayan dalam bentuk teks biasa. Menggunakan kata laluan yang dijana oleh obs-websocket iadalah sangat disarankan."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Adakah anda pasti mahu menggunakan kata laluan anda sendiri?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Ralat: Konfigurasi Tidak Sah"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Anda mesti guna satu kata laluan yang terdiri daripada 6 atau lebih aksara."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sesi WebSocket Bersambung"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Alamat Jauh"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Tempoh Sesi"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Mesej Masuk/Keluar"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Dikenal Pasti"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Tendang?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Tendang"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Maklumat Sambungan WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Salin"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP Pelayan (Tekaan Terbaik)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Port Pelayan"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Kata Laluan Pelayan"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Izin Dilumpuh]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR Sambungan"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Sambungan WebSocket Baharu"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klien %1 dikenal past."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Kegagalan Pengesahihan WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Klien %1 gagal disahihkan."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Klien WebSocket Terputus"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Klien %1 terputus."
|
25
data/locale/nb-NO.ini
Normal file
25
data/locale/nb-NO.ini
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket-tjenerinnstillinger"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Utvidelsesinnstillinger"
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Tjenerinnstillinger"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Skru på autentisering"
|
||||||
|
OBSWebSocket.Settings.Password="Server Passord"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Generer Passord"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Vis tilkoblingsinfo"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Advarsel: For øyeblikket på direktesending"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Advarsel: Potensielt sikkerhetsproblem"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Feil: Ugyldig konfigurasjon"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Du må bruke et passord på minst 6 tegn."
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Ekstern adresse"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Øktens varighet"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Innboks/Utboks"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identifisert"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket-tilkoblingsinfo"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopier"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Tjenerens IP (beste gjetning)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Tjenerport"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Tjenerpassord"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR-tilkobling"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Ny WebSocket-tilkobling"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klient %1 er identifisert."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket-klient koblet fra"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Klient %1 koblet fra."
|
41
data/locale/nl-NL.ini
Normal file
41
data/locale/nl-NL.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Op afstand bediening van OBS Studio via WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket Server Instellingen"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Plugin instellingen"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocket server inschakelen"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Systeemtray meldingen inschakelen"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Activeer debug logging"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Schakelt debug logboekregistratie in voor de huidige instantie van OBS. Blijft niet meer te laden.\nGebruik --websocket_debug om bij laden in te schakelen."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Serverinstellingen"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Authenticatie inschakelen"
|
||||||
|
OBSWebSocket.Settings.Password="Server wachtwoord"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Wachtwoord genereren"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Serverpoort"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Toon verbindingsinformatie"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Waarschuwing: Op dit moment live"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Het lijkt erop dat een output (stream, opname, etc.) momenteel actief is."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Weet je zeker dat je je verbindingsinformatie wilt laten zien?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Waarschuwing: potentieel beveiligingsprobleem"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket slaat het serverwachtwoord op als platte tekst. Het gebruik van een wachtwoord dat wordt gegenereerd door een obs-websocket wordt sterk aanbevolen."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Weet u zeker dat u uw eigen wachtwoord wilt gebruiken?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Fout: ongeldige configuratie"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="U moet een wachtwoord gebruiken van 6 of meer tekens."
|
||||||
|
OBSWebSocket.SessionTable.Title="Verbonden WebSocket Sessies"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Extern adres"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Sessie duur"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Berichten In/Uit"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Geïdentificeerd"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Verwijderen?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Verwijderen"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket verbindingsinformatie"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopiëren"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Server IP (Beste inschatting)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Serverpoort"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Serverwachtwoord"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Authenticatie Uitgeschakeld]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR koppelen"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nieuwe WebSocket verbinding"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Client %1 geïdentificeerd."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket Authenticatie Fout"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Authenticatie van client %1 mislukt."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket Client losgekoppeld"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Client %1 ontkoppeld."
|
41
data/locale/pl-PL.ini
Normal file
41
data/locale/pl-PL.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Zdalna kontrola OBS Studio przez WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Ustawienia serwera WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Ustawienia wtyczki"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Włącz serwer WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Włącz powiadomienia w zasobniku systemowym"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Włącz logowanie debugowania"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Włącza logowanie debugowania dla bieżącej instancji OBS. Opcja nie jest włączana przy ładowaniu aplikacji.\nUżyj --websocket_debug, aby włączyć logowanie debugowania przy ładowaniu aplikacji."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Ustawienia serwera"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Włącz uwierzytelnianie"
|
||||||
|
OBSWebSocket.Settings.Password="Hasło serwera"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Wygeneruj hasło"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Port serwera"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Pokaż informacje połączenia"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Ostrzeżenie: Trwa transmisja lub nagranie"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Wygląda na to, że trwa transmisja lub nagrywanie."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Czy na pewno chcesz pokazać informacje połączenia?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Ostrzeżenie: Potencjalny problem bezpieczeństwa"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket przechowuje hasło serwera jako zwykły tekst. Wysoce zalecane jest użycie hasła generowanego przez obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Czy na pewno chcesz użyć własnego hasła?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Błąd: Nieprawidłowa konfiguracja"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Hasło musi zawierać 6 lub więcej znaków."
|
||||||
|
OBSWebSocket.SessionTable.Title="Podłączone sesje WebSocket"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Adres zdalny"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Czas trwania sesji"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Wiadomości przychodzące/wychodzące"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Zidentyfikowany"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Odłączyć?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Odłącz"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Informacje o połączeniu WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopiuj"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP serwera (ustalone w miarę możliwości)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Port serwera"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Hasło serwera"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autoryzacja wyłączona]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Kod QR połączenia"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nowe połączenie WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klient %1 zidentyfikowany."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Błąd uwierzytelniania WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Klient %1 nie został uwierzytelniony."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Klient WebSocket odłączony"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Klient %1 odłączony."
|
41
data/locale/pt-BR.ini
Normal file
41
data/locale/pt-BR.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Controle remoto do OBS Studio através de WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Configurações do servidor WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Configurações de Plugin"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Ativar servidor WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Ativar Alertas da Bandeja do Sistema"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Habilitar log de depuração"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Ativa o registro de depuração para a instância atual do OBS. Não persiste ao carregar.\nUse --websocket_debug para ativar no carregamento."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Configurações de Servidor"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Habilitar Autenticação"
|
||||||
|
OBSWebSocket.Settings.Password="Senha de Servidor"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Gerar Senha"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Porta de Servidor"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Mostrar Informações de Conexão"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Aviso: Atualmente Ao Vivo"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Parece que uma saída (stream, gravação, etc.) está atualmente ativa."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Tem certeza de que deseja mostrar suas informações de conexão?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Aviso: Problema de Segurança Potencial"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket armazena a senha do servidor como texto sem formatação. Usar uma senha gerada pela obs-websocket é altamente recomendada."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Tem certeza de que deseja usar a sua própria senha?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Erro: Configuração Inválida"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Você deve usar uma senha que tenha 6 ou mais caracteres."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sessões WebSocket Conectadas"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Endereço Remoto"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Duração de Sessão"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Mensagens"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identificada"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Expulsar?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Expulsar"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Informação de Conexão WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Copiar"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP do servidor (Melhor Chute)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Porta de Servidor"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Senha de Servidor"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autenticação Desativada]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR da conexão"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nova Conexão de WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Cliente %1 identificado."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Falha na Autenticação de WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Cliente %1 falhou na autenticação."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Cliente WebSocket Desconectado"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Cliente %1 desconectado."
|
41
data/locale/pt-PT.ini
Normal file
41
data/locale/pt-PT.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Controlo remoto do OBS Studio através de WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Definições do servidor WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Configurações do plugin"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Ativar servidor WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Ativar alertas da bandeja do sistema"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Ativar registo de depuração"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Ativa o registro de depuração para a instância atual do OBS. Não persiste no arranque.\nUse --websocket_debug para ativar no arranque."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Configurações do servidor"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Ativar autenticação"
|
||||||
|
OBSWebSocket.Settings.Password="Senha do servidor"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Gerar senha"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Porta do servidor"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Mostrar informações de conexão"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Aviso: Atualmente ao vivo"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Parece que uma saída (transmissão, gravação, etc.) está atualmente ativa."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Tem certeza de que deseja mostrar as suas informações de ligação?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Aviso: Possível problema de segurança"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="O obs-websocket armazena a senha do servidor como texto sem formatação. É altamente recomendado usar uma senha gerada pelo obs-websocket ."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Tem a certeza de que deseja usar as suas próprias senhas?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Erro: Configuração inválida"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Deve usar uma senha que tenha 6 ou mais caracteres."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sessões WebSocket ligadas"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Endereço remoto"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Duração da sessão"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Entrada/Saída de mensagens"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identificado"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Expulsar?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Expulsar"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Informação de ligação WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Copiar"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP do servidor (melhor cálculo)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Porta do servidor"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Senha do servidor"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autenticação desativada]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Código QR de ligação"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nova conexão de WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Cliente %1 identificado."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Falha na autenticação de WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Cliente %1 falhou na autenticação."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Cliente WebSocket desligado"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Cliente %1 desligado."
|
41
data/locale/ro-RO.ini
Normal file
41
data/locale/ro-RO.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Control de la distanță pentru OBS Studio prin WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Setări pentru serverul WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Setări pentru plugin"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Activează serverul WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Activează alertele din bara de sistem"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Activează jurnalizarea pentru depanare"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Activează jurnalizarea pentru depanare în cazul instanței actuale de OBS. Nu persistă la încărcare.\nFolosește --websocket_debug pentru a activa la încărcare."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Setări pentru server"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Activează autentificarea"
|
||||||
|
OBSWebSocket.Settings.Password="Parola serverului"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Generează parola"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Portul serverului"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Afișează informațiile conexiunii"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Avertisment: În prezent în direct"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Se pare că un output (stream, înregistrare etc.) este activ în prezent."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Sigur vrei să afișezi informațiile de conectare?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Avertisment: Potențială problemă de securitate"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket stochează parola serverului ca text simplu. Este foarte recomandat să folosiți o parolă generată de obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Sigur vrei să-ți folosești propria parolă?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Eroare: Configurație invalidă"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Trebuie să folosești o parolă care să aibă 6 sau mai multe caractere."
|
||||||
|
OBSWebSocket.SessionTable.Title="Sesiuni WebSocket conectate"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Adresă la distanță"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Durata sesiunii"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Mesaje de intrare/ieșire"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identificat"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Înlături?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Înlătură"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Informațiile conexiunii WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Copiază"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP-ul serverului (cea mai bună presupunere)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Portul serverului"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Parola serverului"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autentificare dezactivată]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR de conectare"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="O nouă conexiune WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Clientul %1 identificat."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Eroare de autentificare WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Client %1 nu a reușit să se autentifice."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Client WebSocket deconectat"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Clientul %1 s-a deconectat."
|
41
data/locale/ru-RU.ini
Normal file
41
data/locale/ru-RU.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Удалённое управление OBS Studio по WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Настройки сервера WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Настройки плагина"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Включить сервер WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Включить оповещения в трее"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Включить отладочный журнал"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Включает ведение журнала отладки для текущего экземпляра OBS. Не сохраняется при запуске.\nИспользуйте --websocket_debug для включения при запуске."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Настройки сервера"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Включить вход в аккаунт"
|
||||||
|
OBSWebSocket.Settings.Password="Пароль сервера"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Создать пароль"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Порт сервера"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Показать сведения о подключении"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Предупреждение: Сейчас в эфире"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Похоже, что вывод (поток, запись и т. д.) в настоящее время уже выбран."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Уверены, что хотите показать ваши сведения о подключении?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Предупреждение: Потенциальная проблема безопасности"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket хранит пароль сервера в виде обычного текста. Настоятельно рекомендуется использовать пароль, сгенерированный obs-websock."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Уверены, что хотите использовать собственый пароль?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Ошибка: Неверная конфигурация"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Вы должны использовать пароль длиной 6 или более символов."
|
||||||
|
OBSWebSocket.SessionTable.Title="Подключённые сеансы WebSocket"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Удалённый адрес"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Длительность сеанса"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Вх./исх. сообщения"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Распознано"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Выгнать?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Выгнать"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Сведения о подключении WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Копировать"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP сервера (вероятный)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Порт сервера"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Пароль сервера"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Вход отключён]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR-код подключения"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Новое подключение WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Клиент %1 распознан."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Ошибка входа WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Клиент %1 не смог войти."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Клиент WebSocket отключился"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Клиент %1 отключился."
|
22
data/locale/si-LK.ini
Normal file
22
data/locale/si-LK.ini
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="පේනුවේ සැකසුම්"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="නිදොස්කරණ සටහන් තැබීම සබල කරන්න"
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="සේවාදායකයේ සැකසුම්"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="සත්යාපනය සබල කරන්න"
|
||||||
|
OBSWebSocket.Settings.Password="සේවාදායකයේ මුරපදය"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="මුරපදය උත්පාදනය"
|
||||||
|
OBSWebSocket.Settings.ServerPort="සේවාදායකයේ තොට"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="සබඳතාවේ තොරතුරු පෙන්වන්න"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="අවවාදයයි: දැනට සජීවයි"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="දුරස්ථ ලිපිනය"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="වාරයේ පරාසය"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="පණිවිඩ එන/යන"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="හඳුනා ගැනිණි"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="පිටපතක්"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="සේවාදායකයේ අ.ජා.කෙ. (අනුමානය)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="සේවාදායකයේ තොට"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="සේවාදායකයේ මුරපදය"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[සත්යාපනය අබලයි]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="සබැඳුමට QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="දැන් %1 අනුග්රාහකය හඳුනයි."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="%1 අනුග්රාහකය සත්යාපනයට අසමත්!"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="%1 අනුග්රාහකය විසන්ධියි."
|
41
data/locale/sk-SK.ini
Normal file
41
data/locale/sk-SK.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Vzdialené ovládanie OBS Štúdia cez WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Serverové nastavenia WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Nastavenia pluginu"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Zapnúť WebSocket server"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Zapnúť notifikácie zo systémovej lišty"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Zapnúť debug logovanie"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Zapne debug logovanie pre momentálnu inštanciu OBS. Nezotrvá po načítaní.\nPoužite --websocket_debug pre zapnutie pri načítaní."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Nastavenia servera"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Zapnúť autentifikáciu"
|
||||||
|
OBSWebSocket.Settings.Password="Serverové heslo"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Vygenerovať heslo"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Serverový port"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Zobraziť info pripojenia"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Varovanie: Momentálne naživo"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Zdá sa, že nejaký výstup (stream, nahrávanie, atď.) je momentálne aktívny."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Ste si istí, že chcete zobraziť info vašeho pripojenia?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Varovanie: Potenciálny bezpečnostný problém"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket ukladá serverové heslo ako obyčajný text. Použitie vygenerovaného hesla pre obs-websocket je vysoko odporúčané."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Ste si istí, že chcete použiť svoje vlastné heslo?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Chyba: Neplatná konfigurácia"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Musíte zadať heslo, ktoré má 6 alebo viac znakov."
|
||||||
|
OBSWebSocket.SessionTable.Title="Pripojené WebSocket relácie"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Vzdialená adresa"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Travnie relácie"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Správy dnu/von"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identifikovaný"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Vyhodiť?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Vyhodiť"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Info WebSocket pripojenia"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopírovať"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP servera (najlepší odhad)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Serverový port"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Serverové heslo"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autentifikácia vypnutá]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR kód pripojenia"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nové WebSocket pripojenie"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klient %1 identifikovaný."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Zlyhanie WebSocket autentifikácie"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Klientovi %1 sa nepodarilo autentifikovať."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket klient odpojený"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Klient %1 odpojený."
|
41
data/locale/sl-SI.ini
Normal file
41
data/locale/sl-SI.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Oddaljeni nadzor OBS Studia prek WebSocketa"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Nastavitve strežnika WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Nastavitve vtičnika"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Omogoči strežnik WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Omogoči opozorila v sistemskem pladnju"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Omogoči beleženje napak"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Omogoči beleženje dogodkov za potrebe razhroščevanja v trenutno zagnani inačici OBS. Ne vztraja ob nalaganju.\nUporabbite --websocket_debug, da to možnost omogočite ob nalaganju."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Nastavitve strežnika"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Omogoči overjanje"
|
||||||
|
OBSWebSocket.Settings.Password="Geslo strežnika"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Tvori geslo"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Vrata strežnika"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Pokaži podatke o povezavi"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Opozorilo: trenutno v živo"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Kaže, da je izhod (tok, posnetek itn.) trenutno dejaven."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Ali ste prepričani, da želite pokazati svoje podatke za povezavo?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Opozorilo: potencialna varnostna težava"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket hrani geslo strežnika kot navadno besedilo. Uporaba gesla, ki ga ustvari obs-websocket je zato zelo priporočena."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Ali ste prepričani, da želite uporabiti lastno geslo?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Napaka: neveljavna prilagoditev"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Uporabiti morate geslo z vsaj 6 znaki."
|
||||||
|
OBSWebSocket.SessionTable.Title="Povezane seje WebSocket"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Oddaljen naslov"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Trajanje seje"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Sporočila V/I"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identificirano"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Odvrzi?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Odvrzi"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Podatki o povezavi WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopiraj"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP strežnika (naj-domneva)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Vrata strežnika"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Geslo strežnika"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Overjanje onemog.]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Koda QR za povezavo"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Nova povezava WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Odjemalec %1 identificiran."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Spodletelo ovetjanje WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Odjemalec %1 ni prestal overjanja."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Odjemalec WebSocket je prekinil povezavo"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Odjemalec %1 ni več povezan."
|
41
data/locale/sv-SE.ini
Normal file
41
data/locale/sv-SE.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Fjärrkontroll av OBS Studio via WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket-serverinställningar"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Insticksprogramsinställningar"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Aktivera WebSocket-server"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Aktivera systemfältsmeddelanden"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Aktivera felsökningsloggning"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Aktiverar felsökningsloggning för den aktuella instansen av OBS. Stannar inte igång vid inläsning.\nAnvänd --websocket_debug för att aktivera vid inläsning."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Serverinställningar"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Aktivera autentisering"
|
||||||
|
OBSWebSocket.Settings.Password="Serverlösenord"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Generera lösenord"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Serverport"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Visa anslutningsinformation"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Varning: Direktsändning pågår"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Det verkar som om en utmatning (ström, inspelning, etc.) är för närvarande aktiv."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Är du säker på att du vill visa din anslutningsinformation?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Varning: Potentiellt säkerhetsproblem"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket lagrar serverns lösenord som vanlig text. Det kommenderas starkt att använda ett lösenord som genereras av obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Är du säker på att du vill använda ditt eget lösenord?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Fel: Ogiltig konfiguration"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Du måste använda ett lösenord som har 6 eller fler tecken."
|
||||||
|
OBSWebSocket.SessionTable.Title="Anslutna WebSocket-sessioner"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Fjärradress"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Sessionens varaktighet"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Meddelanden in/ut"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Identifierad"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Sparka ut?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Sparka ut"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Anslutningsinfo för WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopiera"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Server-IP (uppskattad)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Serverport"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Serverlösenord"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Autentisering inaktiverad]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR för anslutning"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Ny WebSocket-anslutning"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Klient %1 har identifierats."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Autentisering av WebSocket misslyckades"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Klient %1 misslyckades att autentiseras."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket-klient frånkopplades"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Klient %1 frånkopplades."
|
41
data/locale/tr-TR.ini
Normal file
41
data/locale/tr-TR.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="WebSocket aracılığıyla uzaktan OBS Studio"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket Suncusu Ayarları"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Eklenti Ayarları"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="WebSocket sunucuyu etkinleştir"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Sistem Tepsi Uyarılarını Etkinleştir"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Hata Ayıklama Günlüğünü Etkinleştir"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="OBS'in geçerli örneği için hata ayıklama günlüğünü etkinleştirir. Yüklemede kalıcı değildir.\nYüklemede etkinleştirmek için -- websocket_debug kullanın."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Sunucu Ayarları"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Kimlik Doğrulamasını Etkinleştir"
|
||||||
|
OBSWebSocket.Settings.Password="Sunucu Parolası"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Parola oluştur"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Sunucu Portu"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Bağlanma Bilgilerini Göster"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Uyarı: Şu Anda Canlı"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Şu anda bir çıkış (yayın, kayıt, vb.) aktif görünüyor."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Bağlanma bilgilerinizi göstermek istediğinizden emin misiniz?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Uyarı: Olası Güvenlik Sorunu"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket sunucu parolasını düz metin olarak saklar. Obs-websocket tarafından oluşturulan bir parola kullanılması şiddetle tavsiye edilir."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Kendi parolanızı kullanmak istediğinizden emin misiniz?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Hata: Geçersiz Yapılandırma"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="6 veya daha fazla karakterden oluşan bir şifre kullanmalısınız."
|
||||||
|
OBSWebSocket.SessionTable.Title="Bağlı WebSocket Oturumları"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Uzaktaki Adres"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Oturum Süresi"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Gelen/Giden Mesajlar"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Tanımlandı"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Çıkarılsın mı?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Çıkar"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket Bağlanma Bilgileri"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Kopyala"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="Sunucu IP (En İyi Tahmin)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Sunucu Portu"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Sunucu Parolası"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Doğrulama Devre Dışı]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Kare Kod ile Bağlan"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Yeni WebSocket Bağlantısı"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="%1 istemcisi tanımlandı."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket Kimlik Doğrulama Hatası"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="%1 istemcisinin kimlik doğrulaması başarısız oldu."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket İstemcisinin Bağlantısı Kesildi"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="%1 istemcisinin bağlantısı kesildi."
|
9
data/locale/tt-RU.ini
Normal file
9
data/locale/tt-RU.ini
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Сервер көйләүләре"
|
||||||
|
OBSWebSocket.Settings.Password="Сервер серсүзе"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Серсүзне ясау"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Сервер порты"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Чыгарыргамы?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Чыгару"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Күчермә алу"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Сервер порты"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Сервер серсүзе"
|
2
data/locale/ug-CN.ini
Normal file
2
data/locale/ug-CN.ini
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
OBSWebSocket.Settings.GeneratePassword="ئىم ھاسىللا"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="كۆچۈر"
|
41
data/locale/uk-UA.ini
Normal file
41
data/locale/uk-UA.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Віддалене керування OBS Studio через WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Налаштування WebSocket сервера"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Налаштування плагіна"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Увімкнути сервер WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Увімкнути сповіщення у системному лотку"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Увімкнути журнал налагодження"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Вмикає журналювання налагодження для поточного екземпляра OBS. Не зберігається під час завантаження.\nВикористовуйте --websocket_debug для увімкнення під час завантаження."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Налаштування сервера"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Увімкнути автентифікацію"
|
||||||
|
OBSWebSocket.Settings.Password="Пароль сервера"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Згенерувати пароль"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Порт сервера"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Показати відомості про з'єднання"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Попередження: Трансляція наживо"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Схоже, що вивід (потік, запис тощо) зараз активний."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Ви впевнені, що хочете показати ваші відомості про з'єднання?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Попередження: Імовірна проблема безпеки"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket зберігає пароль сервера у вигляді звичайного тексту. Радимо використовувати пароль, згенерований в obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Ви впевнені, що хочете використовувати власний пароль?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Помилка: неправильна конфігурація"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Ви повинні використовувати пароль, що складається з 6 або більше символів."
|
||||||
|
OBSWebSocket.SessionTable.Title="Під'єднані сеанси WebSocket"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Віддалена адреса"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Тривалість сеансу"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Повідомлення вводу/виводу"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Визначені"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="Роз'єднати?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="Роз'єднати"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Відомості про з'єднання WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="Скопіювати"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP сервера (найкращий збіг)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Порт сервера"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Пароль сервера"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[Автентифікацію вимкнено]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="QR-код під'єднання"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Нове з'єднання WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Ідентифікатор клієнта %1."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Помилка автентифікації WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Клієнт %1 не зміг автентифікуватися."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Клієнт WebSocket від'єднаний"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Клієнт %1 від'єднаний."
|
37
data/locale/vi-VN.ini
Normal file
37
data/locale/vi-VN.ini
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="Điều khiển từ xa OBS Studio thông qua WebSocket"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="Cài đặt máy chủ WebSocket"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="Thiết đặt trình cắm"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="Bật máy chủ WebSocket"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="Bật cảnh báo khay hệ thống"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="Bật ghi nhật ký gỡ lỗi"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="Cho phép ghi nhật ký gỡ lỗi cho phiên bản OBS hiện tại. Không tồn tại khi tải.\nUde --websocket gỡ lỗi để bật khi tải."
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="Thiết đặt máy chủ"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="Bật xác thực"
|
||||||
|
OBSWebSocket.Settings.Password="Mật khẩu máy chủ"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="Tạo mật khẩu"
|
||||||
|
OBSWebSocket.Settings.ServerPort="Cổng máy chủ"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="Hiện thông tin kết nối"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="Cảnh báo: Hiện đang chạy"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="Có vẻ như một đầu ra (luồng, bản ghi, v.v.) hiện đang hoạt động."
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="Bạn có chắc chắn muốn hiển thị thông tin kết nối của mình không?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="Cảnh báo: Vấn đề bảo mật tiềm ẩn"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket lưu trữ mật khẩu máy chủ dưới dạng văn bản thuần túy. Bạn nên sử dụng mật khẩu được tạo bởi obs-websocket."
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="Bạn có chắc bạn muốn sử dụng mật khẩu của mình?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="Lỗi: Thiết lập không hợp lệ"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="Bạn phải sử dụng mật khẩu có 6 ký tự trở lên."
|
||||||
|
OBSWebSocket.SessionTable.Title="Các phiên WebSocket được kết nối"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="Địa chỉ từ xa"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="Thời lượng phiên"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="Tin nhắn vào/ra"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="Định dạng"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="Thông tin kết nối WebSocket"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="IP Máy chủ (Gợi ý tốt nhất)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="Cổng máy chủ"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="Mật khẩu máy chủ"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="Kết nối bằng mã QR"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="Tạo cổng kết nối WebSocket mới"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="Máy khách %1 được xác định."
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="Lỗi xác thực WebSocket"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="Máy khách %1 không xác thực được."
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="Máy khách WebSocket bị ngắt kết nối"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="Máy khách %1 bị ngắt kết nối."
|
41
data/locale/zh-CN.ini
Normal file
41
data/locale/zh-CN.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="通过 WebSocket 远程控制 OBS Studio"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket 服务器设置"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="插件设置"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="开启 WebSocket 服务器"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="开启系统托盘提醒"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="开启调试日志"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="开启当前 OBS 实例的调试日志。下次启动时需重新设置。\n使用 --websocket_debug 在启动 OBS 时开启日志。"
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="服务器设置"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="开启身份认证"
|
||||||
|
OBSWebSocket.Settings.Password="服务器密码"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="生成密码"
|
||||||
|
OBSWebSocket.Settings.ServerPort="服务器端口"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="显示连接信息"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="警告:正在直播"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="似乎输出(串流、录像等)正在进行。"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="您确定要显示您的连接信息吗?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="警告:潜在安全问题"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket 会以明文形式储存服务器密码。强烈建议使用 obs-websocket 生成的密码。"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="您确定要使用自定义密码吗?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="错误:无效的配置"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="您的密码必须包含 6 个或以上的字符。"
|
||||||
|
OBSWebSocket.SessionTable.Title="已连接的 WebSocket 会话"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="远程地址"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="会话持续时间"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="消息传入/传出"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="已识别"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="踢出?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="踢出"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket 连接信息"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="复制"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="服务器 IP(最佳猜测)"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="服务器端口"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="服务器密码"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[身份认证已停用]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="连接 QR 码"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="新 WebSocket 连接"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="客户端%1已识别 。"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket 认证失败"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="%1 客户端认证失败。"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket 客户端已断开"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="%1 客户端已断开。"
|
41
data/locale/zh-TW.ini
Normal file
41
data/locale/zh-TW.ini
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
OBSWebSocket.Plugin.Description="透過 WebSocket 遠端控制 OBS Studio"
|
||||||
|
OBSWebSocket.Settings.DialogTitle="WebSocket 伺服器設定"
|
||||||
|
OBSWebSocket.Settings.PluginSettingsTitle="外掛程式設定"
|
||||||
|
OBSWebSocket.Settings.ServerEnable="啟用 WebSocket 伺服器"
|
||||||
|
OBSWebSocket.Settings.AlertsEnable="啟用系統匣通知"
|
||||||
|
OBSWebSocket.Settings.DebugEnable="啟用除錯日誌"
|
||||||
|
OBSWebSocket.Settings.DebugEnableHoverText="啟用目前 OBS 實體的除錯日誌。下次啟動時需重新設定。\n使用 --websocket_debug 在啟動 OBS 時啟用日誌。"
|
||||||
|
OBSWebSocket.Settings.ServerSettingsTitle="伺服器設定"
|
||||||
|
OBSWebSocket.Settings.AuthRequired="啟用認證"
|
||||||
|
OBSWebSocket.Settings.Password="伺服器密碼"
|
||||||
|
OBSWebSocket.Settings.GeneratePassword="產生密碼"
|
||||||
|
OBSWebSocket.Settings.ServerPort="伺服器連線埠"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfo="顯示連線資訊"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningTitle="警告:目前正在直播"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningMessage="似乎正在進行輸出(串流、錄影等等)。"
|
||||||
|
OBSWebSocket.Settings.ShowConnectInfoWarningInfoText="您確定要顯示連線資訊嗎?"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningTitle="警告:潛在安全問題"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningMessage="obs-websocket 會以明文方式儲存伺服器密碼。強烈建議使用 obs-websocket 產生的密碼。"
|
||||||
|
OBSWebSocket.Settings.Save.UserPasswordWarningInfoText="您確定要使用自己的密碼嗎?"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorTitle="錯誤:設定無效"
|
||||||
|
OBSWebSocket.Settings.Save.PasswordInvalidErrorMessage="您必須使用 6 個字元以上的密碼。"
|
||||||
|
OBSWebSocket.SessionTable.Title="連線的 WebSocket 工作階段"
|
||||||
|
OBSWebSocket.SessionTable.RemoteAddressColumnTitle="遠端地址"
|
||||||
|
OBSWebSocket.SessionTable.SessionDurationColumnTitle="工作階段時長"
|
||||||
|
OBSWebSocket.SessionTable.MessagesInOutColumnTitle="訊息進出"
|
||||||
|
OBSWebSocket.SessionTable.IdentifiedTitle="已辨認階段"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonColumnTitle="驅逐?"
|
||||||
|
OBSWebSocket.SessionTable.KickButtonText="驅逐"
|
||||||
|
OBSWebSocket.ConnectInfo.DialogTitle="WebSocket 連線資訊"
|
||||||
|
OBSWebSocket.ConnectInfo.CopyText="複製"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerIp="(最可能的)伺服器 IP"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPort="伺服器連線埠"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPassword="伺服器密碼"
|
||||||
|
OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText="[已停用認證]"
|
||||||
|
OBSWebSocket.ConnectInfo.QrTitle="連線 QR 碼"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Title="新的 WebSocket 工作階段"
|
||||||
|
OBSWebSocket.TrayNotification.Identified.Body="已辨認 %1 用戶端。"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Title="WebSocket 認證失敗"
|
||||||
|
OBSWebSocket.TrayNotification.AuthenticationFailed.Body="%1 用戶端無法進行認證。"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Title="WebSocket 用戶端已斷線"
|
||||||
|
OBSWebSocket.TrayNotification.Disconnected.Body="%1 用戶端已斷線。"
|
1
deps/asio
vendored
1
deps/asio
vendored
Submodule deps/asio deleted from b73dc1d2c0
1
deps/json
vendored
1
deps/json
vendored
Submodule deps/json deleted from a34e011e24
1
deps/qr
vendored
1
deps/qr
vendored
Submodule deps/qr deleted from 8518684c0f
1
deps/websocketpp
vendored
1
deps/websocketpp
vendored
Submodule deps/websocketpp deleted from 56123c8759
@ -1,11 +1,15 @@
|
|||||||
# obs-websocket documentation
|
# obs-websocket documentation
|
||||||
|
|
||||||
This is the documentation for obs-websocket. Run build_docs.sh to auto generate the latest docs from the `src` directory. There are 3 components to the docs generation:
|
## If you're looking for the documentation page, it's [here](generated/protocol.md)
|
||||||
|
|
||||||
|
This is the documentation for obs-websocket. Run `build_docs.sh` to auto generate the latest docs from the `src` directory. There are 3 components to the docs generation:
|
||||||
|
|
||||||
- `comments/comments.js`: Generates the `work/comments.json` file from the code comments in the src directory.
|
- `comments/comments.js`: Generates the `work/comments.json` file from the code comments in the src directory.
|
||||||
- `docs/process_comments.py`: Processes `work/comments.json` to create `generated/protocol.json`, which is a machine-readable documentation format that can be used to create obs-websocket client libraries.
|
- `docs/process_comments.py`: Processes `work/comments.json` to create `generated/protocol.json`, which is a machine-readable documentation format that can be used to create obs-websocket client libraries.
|
||||||
- `docs/generate_md.py`: Processes `generated/protocol.json` to create `generated/protocol.md`, which is the actual human-readable documentation.
|
- `docs/generate_md.py`: Processes `generated/protocol.json` to create `generated/protocol.md`, which is the actual human-readable documentation.
|
||||||
|
|
||||||
Some notes about documenting:
|
Some notes about documenting:
|
||||||
|
|
||||||
- The `complexity` comment line is a suggestion to the user about how much knowledge about OBS's inner workings is required to safely use the associated feature. `1` for easy, `5` for megadeath-expert.
|
- The `complexity` comment line is a suggestion to the user about how much knowledge about OBS's inner workings is required to safely use the associated feature. `1` for easy, `5` for megadeath-expert.
|
||||||
- The `rpcVersion` comment line is used to specify the latest available version that the feature is available in. If a feature is deprecated, then the placeholder value of `-1` should be replaced with the last RPC version that the feature will be available in. Manually specifying an RPC version automatically adds the `Deprecated` line to the entry in `generated/protocol.md`.
|
- The `rpcVersion` comment line is used to specify the latest available version that the feature is available in. If a feature is deprecated, then the placeholder value of `-1` should be replaced with the last RPC version that the feature will be available in. Manually specifying an RPC version automatically adds the `Deprecated` line to the entry in `generated/protocol.md`.
|
||||||
- The description can be multiple lines, but must be contained above the first documentation property (the lines starting with `@`).
|
- The description can be multiple lines, but must be contained above the first documentation property (the lines starting with `@`).
|
||||||
@ -13,13 +17,15 @@ Some notes about documenting:
|
|||||||
- `Array` types follow this format: `Array<subtype>`, for example `Array<String>` to specify an array of strings.
|
- `Array` types follow this format: `Array<subtype>`, for example `Array<String>` to specify an array of strings.
|
||||||
|
|
||||||
Formatting notes:
|
Formatting notes:
|
||||||
|
|
||||||
- Fields should have their columns aligned. So in a request, the columns of all `@requestField`s should be aligned.
|
- Fields should have their columns aligned. So in a request, the columns of all `@requestField`s should be aligned.
|
||||||
- We suggest looking at how other enums/events/requests have been documented before documenting one of your own, to get a general feel of how things have been formatted.
|
- We suggest looking at how other enums/events/requests have been documented before documenting one of your own, to get a general feel of how things have been formatted.
|
||||||
|
|
||||||
## Creating enum documentation
|
## Creating enum documentation
|
||||||
|
|
||||||
Enums follow this code comment format:
|
Enums follow this code comment format:
|
||||||
```
|
|
||||||
|
```js
|
||||||
/**
|
/**
|
||||||
* [description]
|
* [description]
|
||||||
*
|
*
|
||||||
@ -33,7 +39,8 @@ Enums follow this code comment format:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Example code comment:
|
Example code comment:
|
||||||
```
|
|
||||||
|
```js
|
||||||
/**
|
/**
|
||||||
* The initial message sent by obs-websocket to newly connected clients.
|
* The initial message sent by obs-websocket to newly connected clients.
|
||||||
*
|
*
|
||||||
@ -45,12 +52,14 @@ Example code comment:
|
|||||||
* @api enums
|
* @api enums
|
||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
- This is the documentation for the `WebSocketOpCode::Hello` enum identifier.
|
- This is the documentation for the `WebSocketOpCode::Hello` enum identifier.
|
||||||
|
|
||||||
## Creating event documentation
|
## Creating event documentation
|
||||||
|
|
||||||
Events follow this code comment format:
|
Events follow this code comment format:
|
||||||
```
|
|
||||||
|
```js
|
||||||
/**
|
/**
|
||||||
* [description]
|
* [description]
|
||||||
*
|
*
|
||||||
@ -68,7 +77,8 @@ Events follow this code comment format:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Example code comment:
|
Example code comment:
|
||||||
```
|
|
||||||
|
```js
|
||||||
/**
|
/**
|
||||||
* Studio mode has been enabled or disabled.
|
* Studio mode has been enabled or disabled.
|
||||||
*
|
*
|
||||||
@ -87,7 +97,8 @@ Example code comment:
|
|||||||
## Creating request documentation
|
## Creating request documentation
|
||||||
|
|
||||||
Requests follow this code comment format:
|
Requests follow this code comment format:
|
||||||
```
|
|
||||||
|
```js
|
||||||
/**
|
/**
|
||||||
* [description]
|
* [description]
|
||||||
*
|
*
|
||||||
@ -105,10 +116,12 @@ Requests follow this code comment format:
|
|||||||
* @api requests
|
* @api requests
|
||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
- The optional flag is a `?` that prefixes the field name, telling the docs processor that the field is optionally specified.
|
- The optional flag is a `?` that prefixes the field name, telling the docs processor that the field is optionally specified.
|
||||||
|
|
||||||
Example code comment:
|
Example code comment:
|
||||||
```
|
|
||||||
|
```js
|
||||||
/**
|
/**
|
||||||
* Gets the value of a "slot" from the selected persistent data realm.
|
* Gets the value of a "slot" from the selected persistent data realm.
|
||||||
*
|
*
|
||||||
|
@ -9,7 +9,9 @@ enumTypeOrder = [
|
|||||||
'WebSocketCloseCode',
|
'WebSocketCloseCode',
|
||||||
'RequestBatchExecutionType',
|
'RequestBatchExecutionType',
|
||||||
'RequestStatus',
|
'RequestStatus',
|
||||||
'EventSubscription'
|
'EventSubscription',
|
||||||
|
'ObsMediaInputAction',
|
||||||
|
'ObsOutputState'
|
||||||
]
|
]
|
||||||
|
|
||||||
categoryOrder = [
|
categoryOrder = [
|
||||||
@ -30,7 +32,6 @@ categoryOrder = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
requestFieldHeader = """
|
requestFieldHeader = """
|
||||||
|
|
||||||
**Request Fields:**
|
**Request Fields:**
|
||||||
|
|
||||||
| Name | Type | Description | Value Restrictions | ?Default Behavior |
|
| Name | Type | Description | Value Restrictions | ?Default Behavior |
|
||||||
@ -38,7 +39,6 @@ requestFieldHeader = """
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
responseFieldHeader = """
|
responseFieldHeader = """
|
||||||
|
|
||||||
**Response Fields:**
|
**Response Fields:**
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
@ -46,7 +46,6 @@ responseFieldHeader = """
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
dataFieldHeader = """
|
dataFieldHeader = """
|
||||||
|
|
||||||
**Data Fields:**
|
**Data Fields:**
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
@ -130,6 +129,8 @@ def get_enums(enums):
|
|||||||
ret += '- Added in v{}\n'.format(enumIdentifier['initialVersion'])
|
ret += '- Added in v{}\n'.format(enumIdentifier['initialVersion'])
|
||||||
if enumIdentifier != enum['enumIdentifiers'][-1]:
|
if enumIdentifier != enum['enumIdentifiers'][-1]:
|
||||||
ret += '\n---\n\n'
|
ret += '\n---\n\n'
|
||||||
|
else:
|
||||||
|
ret += '\n'
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def get_requests_toc(requests):
|
def get_requests_toc(requests):
|
||||||
@ -143,7 +144,7 @@ def get_requests_toc(requests):
|
|||||||
if not len(requestsOut):
|
if not len(requestsOut):
|
||||||
continue
|
continue
|
||||||
categoryFragment = get_fragment(category, False)
|
categoryFragment = get_fragment(category, False)
|
||||||
ret += '- [{}](#{})\n'.format(category, categoryFragment)
|
ret += '- [{} Requests](#{}-requests)\n'.format(category, categoryFragment)
|
||||||
for request in requestsOut:
|
for request in requestsOut:
|
||||||
requestType = request['requestType']
|
requestType = request['requestType']
|
||||||
requestTypeFragment = get_fragment(requestType, False)
|
requestTypeFragment = get_fragment(requestType, False)
|
||||||
@ -161,7 +162,7 @@ def get_requests(requests):
|
|||||||
if not len(requestsOut):
|
if not len(requestsOut):
|
||||||
continue
|
continue
|
||||||
categoryFragment = get_fragment(category)
|
categoryFragment = get_fragment(category)
|
||||||
ret += '\n\n## {}\n\n'.format(category)
|
ret += '## {} Requests\n\n'.format(category)
|
||||||
for request in requestsOut:
|
for request in requestsOut:
|
||||||
requestType = request['requestType']
|
requestType = request['requestType']
|
||||||
requestTypeFragment = get_fragment(requestType)
|
requestTypeFragment = get_fragment(requestType)
|
||||||
@ -193,6 +194,8 @@ def get_requests(requests):
|
|||||||
|
|
||||||
if request != requestsOut[-1]:
|
if request != requestsOut[-1]:
|
||||||
ret += '\n---\n\n'
|
ret += '\n---\n\n'
|
||||||
|
else:
|
||||||
|
ret += '\n'
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def get_events_toc(events):
|
def get_events_toc(events):
|
||||||
@ -206,7 +209,7 @@ def get_events_toc(events):
|
|||||||
if not len(eventsOut):
|
if not len(eventsOut):
|
||||||
continue
|
continue
|
||||||
categoryFragment = get_fragment(category, False)
|
categoryFragment = get_fragment(category, False)
|
||||||
ret += '- [{}](#{})\n'.format(category, categoryFragment)
|
ret += '- [{} Events](#{}-events)\n'.format(category, categoryFragment)
|
||||||
for event in eventsOut:
|
for event in eventsOut:
|
||||||
eventType = event['eventType']
|
eventType = event['eventType']
|
||||||
eventTypeFragment = get_fragment(eventType, False)
|
eventTypeFragment = get_fragment(eventType, False)
|
||||||
@ -224,7 +227,7 @@ def get_events(events):
|
|||||||
if not len(eventsOut):
|
if not len(eventsOut):
|
||||||
continue
|
continue
|
||||||
categoryFragment = get_fragment(category)
|
categoryFragment = get_fragment(category)
|
||||||
ret += '## {}\n\n'.format(category)
|
ret += '## {} Events\n\n'.format(category)
|
||||||
for event in eventsOut:
|
for event in eventsOut:
|
||||||
eventType = event['eventType']
|
eventType = event['eventType']
|
||||||
eventTypeFragment = get_fragment(eventType)
|
eventTypeFragment = get_fragment(eventType)
|
||||||
@ -247,6 +250,8 @@ def get_events(events):
|
|||||||
|
|
||||||
if event != eventsOut[-1]:
|
if event != eventsOut[-1]:
|
||||||
ret += '\n---\n\n'
|
ret += '\n---\n\n'
|
||||||
|
else:
|
||||||
|
ret += '\n'
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
# Actual code
|
# Actual code
|
||||||
@ -264,40 +269,41 @@ except IOError:
|
|||||||
with open('../generated/protocol.json', 'r') as f:
|
with open('../generated/protocol.json', 'r') as f:
|
||||||
protocol = json.load(f)
|
protocol = json.load(f)
|
||||||
|
|
||||||
output = "<!-- This file was automatically generated. Do not edit directly! -->\n\n"
|
output = "<!-- This file was automatically generated. Do not edit directly! -->\n"
|
||||||
|
output += "<!-- markdownlint-disable no-bare-urls -->\n"
|
||||||
|
|
||||||
# Insert introduction partial
|
# Insert introduction partial
|
||||||
output += read_file('partials/introduction.md')
|
output += read_file('partials/introduction.md')
|
||||||
logging.info('Inserted introduction section.')
|
logging.info('Inserted introduction section.')
|
||||||
|
|
||||||
output += '\n\n'
|
output += '\n'
|
||||||
|
|
||||||
# Generate enums MD
|
# Generate enums MD
|
||||||
output += read_file('partials/enumsHeader.md')
|
output += read_file('partials/enumsHeader.md')
|
||||||
|
output += '\n'
|
||||||
output += get_enums_toc(protocol['enums'])
|
output += get_enums_toc(protocol['enums'])
|
||||||
output += '\n\n'
|
output += '\n'
|
||||||
output += get_enums(protocol['enums'])
|
output += get_enums(protocol['enums'])
|
||||||
logging.info('Inserted enums section.')
|
logging.info('Inserted enums section.')
|
||||||
|
|
||||||
output += '\n\n'
|
|
||||||
|
|
||||||
# Generate events MD
|
# Generate events MD
|
||||||
output += read_file('partials/eventsHeader.md')
|
output += read_file('partials/eventsHeader.md')
|
||||||
|
output += '\n'
|
||||||
output += get_events_toc(protocol['events'])
|
output += get_events_toc(protocol['events'])
|
||||||
output += '\n\n'
|
output += '\n'
|
||||||
output += get_events(protocol['events'])
|
output += get_events(protocol['events'])
|
||||||
logging.info('Inserted events section.')
|
logging.info('Inserted events section.')
|
||||||
|
|
||||||
output += '\n\n'
|
|
||||||
|
|
||||||
# Generate requests MD
|
# Generate requests MD
|
||||||
output += read_file('partials/requestsHeader.md')
|
output += read_file('partials/requestsHeader.md')
|
||||||
|
output += '\n'
|
||||||
output += get_requests_toc(protocol['requests'])
|
output += get_requests_toc(protocol['requests'])
|
||||||
output += '\n\n'
|
output += '\n'
|
||||||
output += get_requests(protocol['requests'])
|
output += get_requests(protocol['requests'])
|
||||||
logging.info('Inserted requests section.')
|
logging.info('Inserted requests section.')
|
||||||
|
|
||||||
output += '\n\n'
|
if output.endswith('\n\n'):
|
||||||
|
output = output[:-1]
|
||||||
|
|
||||||
# Write new protocol MD
|
# Write new protocol MD
|
||||||
with open('../generated/protocol.md', 'w') as f:
|
with open('../generated/protocol.md', 'w') as f:
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# Enums
|
# Enums
|
||||||
|
|
||||||
These are enumeration declarations, which are referenced throughout obs-websocket's protocol.
|
These are enumeration declarations, which are referenced throughout obs-websocket's protocol.
|
||||||
|
|
||||||
### Enumerations Table of Contents
|
## Enumerations Table of Contents
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# Events
|
# Events
|
||||||
|
|
||||||
### Events Table of Contents
|
## Events Table of Contents
|
||||||
|
@ -1,28 +1,34 @@
|
|||||||
# Main Table of Contents
|
|
||||||
- [obs-websocket 5.0.0 Protocol](#obs-websocket-500-protocol)
|
# obs-websocket 5.x.x Protocol
|
||||||
- [Connecting to obs-websocket](#connecting-to-obs-websocket)
|
|
||||||
- [Connection steps](#connection-steps)
|
## Main Table of Contents
|
||||||
- [Creating an authentication string](#creating-an-authentication-string)
|
|
||||||
- [Base message types](#message-types)
|
- [General Intro](#general-intro)
|
||||||
- [OpCode 0 Hello](#hello-opcode-0)
|
- [Design Goals](#design-goals)
|
||||||
- [OpCode 1 Identify](#identify-opcode-1)
|
- [Connecting to obs-websocket](#connecting-to-obs-websocket)
|
||||||
- [OpCode 2 Identified](#identified-opcode-2)
|
- [Connection steps](#connection-steps)
|
||||||
- [OpCode 3 Reidentify](#reidentify-opcode-3)
|
- [Connection Notes](#connection-notes)
|
||||||
- [OpCode 5 Event](#event-opcode-5)
|
- [Creating an authentication string](#creating-an-authentication-string)
|
||||||
- [OpCode 6 Request](#request-opcode-6)
|
- [Message Types (OpCodes)](#message-types-opcodes)
|
||||||
- [OpCode 7 RequestResponse](#requestresponse-opcode-7)
|
- [Hello (OpCode 0)](#hello-opcode-0)
|
||||||
- [OpCode 8 RequestBatch](#requestbatch-opcode-8)
|
- [Identify (OpCode 1)](#identify-opcode-1)
|
||||||
- [OpCode 9 RequestBatchResponse](#requestbatchresponse-opcode-9)
|
- [Identified (OpCode 2)](#identified-opcode-2)
|
||||||
- [Enums](#enums)
|
- [Reidentify (OpCode 3)](#reidentify-opcode-3)
|
||||||
|
- [Event (OpCode 5)](#event-opcode-5)
|
||||||
|
- [Request (OpCode 6)](#request-opcode-6)
|
||||||
|
- [RequestResponse (OpCode 7)](#requestresponse-opcode-7)
|
||||||
|
- [RequestBatch (OpCode 8)](#requestbatch-opcode-8)
|
||||||
|
- [RequestBatchResponse (OpCode 9)](#requestbatchresponse-opcode-9)
|
||||||
|
- [Enumerations](#enums)
|
||||||
- [Events](#events)
|
- [Events](#events)
|
||||||
- [Requests](#requests)
|
- [Requests](#requests)
|
||||||
|
|
||||||
# obs-websocket 5.0.0 Protocol
|
|
||||||
|
|
||||||
## General Intro
|
## General Intro
|
||||||
|
|
||||||
obs-websocket provides a feature-rich RPC communication protocol, giving access to much of OBS's feature set. This document contains everything you should know in order to make a connection and use obs-websocket's functionality to the fullest.
|
obs-websocket provides a feature-rich RPC communication protocol, giving access to much of OBS's feature set. This document contains everything you should know in order to make a connection and use obs-websocket's functionality to the fullest.
|
||||||
|
|
||||||
### Design Goals
|
### Design Goals
|
||||||
|
|
||||||
- Abstraction of identification, events, requests, and batch requests into dedicated message types
|
- Abstraction of identification, events, requests, and batch requests into dedicated message types
|
||||||
- Conformity of request naming using similar terms like `Get`, `Set`, `Get[x]List`, `Start[x]`, `Toggle[x]`
|
- Conformity of request naming using similar terms like `Get`, `Set`, `Get[x]List`, `Start[x]`, `Toggle[x]`
|
||||||
- Conformity of OBS data field names like `sourceName`, `sourceKind`, `sourceType`, `sceneName`, `sceneItemName`
|
- Conformity of OBS data field names like `sourceName`, `sourceKind`, `sourceType`, `sceneName`, `sceneItemName`
|
||||||
@ -31,13 +37,14 @@ obs-websocket provides a feature-rich RPC communication protocol, giving access
|
|||||||
- PubSub system - Allow clients to specify which events they do or don't want to receive from OBS
|
- PubSub system - Allow clients to specify which events they do or don't want to receive from OBS
|
||||||
- RPC versioning - Client and server negotiate the latest version of the obs-websocket protocol to communicate with.
|
- RPC versioning - Client and server negotiate the latest version of the obs-websocket protocol to communicate with.
|
||||||
|
|
||||||
|
|
||||||
## Connecting to obs-websocket
|
## Connecting to obs-websocket
|
||||||
|
|
||||||
Here's info on how to connect to obs-websocket
|
Here's info on how to connect to obs-websocket
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Connection steps
|
### Connection steps
|
||||||
|
|
||||||
These steps should be followed precisely. Failure to connect to the server as instructed will likely result in your client being treated in an undefined way.
|
These steps should be followed precisely. Failure to connect to the server as instructed will likely result in your client being treated in an undefined way.
|
||||||
|
|
||||||
- Initial HTTP request made to the obs-websocket server.
|
- Initial HTTP request made to the obs-websocket server.
|
||||||
@ -54,7 +61,7 @@ These steps should be followed precisely. Failure to connect to the server as in
|
|||||||
|
|
||||||
- The server receives and processes the `Identify` sent by the client.
|
- The server receives and processes the `Identify` sent by the client.
|
||||||
- If authentication is required and the `Identify` message data does not contain an `authentication` string, or the string is not correct, the connection is closed with `WebSocketCloseCode::AuthenticationFailed`
|
- If authentication is required and the `Identify` message data does not contain an `authentication` string, or the string is not correct, the connection is closed with `WebSocketCloseCode::AuthenticationFailed`
|
||||||
- If the client has requested an `rpcVersion` which the server cannot use, the connection is closed with `WebSocketCloseCode::UnsupportedRpcVersion`. This system allows both the server and client to have seamless backwards compatability.
|
- If the client has requested an `rpcVersion` which the server cannot use, the connection is closed with `WebSocketCloseCode::UnsupportedRpcVersion`. This system allows both the server and client to have seamless backwards compatibility.
|
||||||
- If any other parameters are malformed (invalid type, etc), the connection is closed with an appropriate close code.
|
- If any other parameters are malformed (invalid type, etc), the connection is closed with an appropriate close code.
|
||||||
|
|
||||||
- Once identification is processed on the server, the server responds to the client with an [OpCode 2 `Identified`](#identified-opcode-2).
|
- Once identification is processed on the server, the server responds to the client with an [OpCode 2 `Identified`](#identified-opcode-2).
|
||||||
@ -64,6 +71,7 @@ These steps should be followed precisely. Failure to connect to the server as in
|
|||||||
- At any time after a client has been identified, it may send an [OpCode 3 `Reidentify`](#reidentify-opcode-3) message to update certain allowed session parameters. The server will respond in the same way it does during initial identification.
|
- At any time after a client has been identified, it may send an [OpCode 3 `Reidentify`](#reidentify-opcode-3) message to update certain allowed session parameters. The server will respond in the same way it does during initial identification.
|
||||||
|
|
||||||
#### Connection Notes
|
#### Connection Notes
|
||||||
|
|
||||||
- If a binary frame is received when using the `obswebsocket.json` (default) subprotocol, or a text frame is received while using the `obswebsocket.msgpack` subprotocol, the connection is closed with `WebSocketCloseCode::MessageDecodeError`.
|
- If a binary frame is received when using the `obswebsocket.json` (default) subprotocol, or a text frame is received while using the `obswebsocket.msgpack` subprotocol, the connection is closed with `WebSocketCloseCode::MessageDecodeError`.
|
||||||
- The obs-websocket server listens for any messages containing a `request-type` field in the first level JSON from unidentified clients. If a message matches, the connection is closed with `WebSocketCloseCode::UnsupportedRpcVersion` and a warning is logged.
|
- The obs-websocket server listens for any messages containing a `request-type` field in the first level JSON from unidentified clients. If a message matches, the connection is closed with `WebSocketCloseCode::UnsupportedRpcVersion` and a warning is logged.
|
||||||
- If a message with a `messageType` is not recognized to the obs-websocket server, the connection is closed with `WebSocketCloseCode::UnknownOpCode`.
|
- If a message with a `messageType` is not recognized to the obs-websocket server, the connection is closed with `WebSocketCloseCode::UnknownOpCode`.
|
||||||
@ -72,11 +80,13 @@ These steps should be followed precisely. Failure to connect to the server as in
|
|||||||
---
|
---
|
||||||
|
|
||||||
### Creating an authentication string
|
### Creating an authentication string
|
||||||
|
|
||||||
obs-websocket uses SHA256 to transmit authentication credentials. The server starts by sending an object in the `authentication` field of its `Hello` message data. The client processes the authentication challenge and responds via the `authentication` string in the `Identify` message data.
|
obs-websocket uses SHA256 to transmit authentication credentials. The server starts by sending an object in the `authentication` field of its `Hello` message data. The client processes the authentication challenge and responds via the `authentication` string in the `Identify` message data.
|
||||||
|
|
||||||
For this guide, we'll be using `supersecretpassword` as the password.
|
For this guide, we'll be using `supersecretpassword` as the password.
|
||||||
|
|
||||||
The `authentication` object in `Hello` looks like this (example):
|
The `authentication` object in `Hello` looks like this (example):
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"challenge": "+IxH4CnCiqpX1rM9scsNynZzbOe4KhDeYcTNS3PDaeY=",
|
"challenge": "+IxH4CnCiqpX1rM9scsNynZzbOe4KhDeYcTNS3PDaeY=",
|
||||||
@ -85,6 +95,7 @@ The `authentication` object in `Hello` looks like this (example):
|
|||||||
```
|
```
|
||||||
|
|
||||||
To generate the authentication string, follow these steps:
|
To generate the authentication string, follow these steps:
|
||||||
|
|
||||||
- Concatenate the websocket password with the `salt` provided by the server (`password + salt`)
|
- Concatenate the websocket password with the `salt` provided by the server (`password + salt`)
|
||||||
- Generate an SHA256 binary hash of the result and base64 encode it, known as a base64 secret.
|
- Generate an SHA256 binary hash of the result and base64 encode it, known as a base64 secret.
|
||||||
- Concatenate the base64 secret with the `challenge` sent by the server (`base64_secret + challenge`)
|
- Concatenate the base64 secret with the `challenge` sent by the server (`base64_secret + challenge`)
|
||||||
@ -92,44 +103,50 @@ To generate the authentication string, follow these steps:
|
|||||||
|
|
||||||
For real-world examples of the `authentication` string creation, refer to the obs-websocket client libraries listed on the [README](README.md).
|
For real-world examples of the `authentication` string creation, refer to the obs-websocket client libraries listed on the [README](README.md).
|
||||||
|
|
||||||
|
|
||||||
## Message Types (OpCodes)
|
## Message Types (OpCodes)
|
||||||
|
|
||||||
The following message types are the low-level message types which may be sent to and from obs-websocket.
|
The following message types are the low-level message types which may be sent to and from obs-websocket.
|
||||||
|
|
||||||
Messages sent from the obs-websocket server or client may contain these first-level fields, known as the base object:
|
Messages sent from the obs-websocket server or client may contain these first-level fields, known as the base object:
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"op": number,
|
"op": number,
|
||||||
"d": object
|
"d": object
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `op` is a `WebSocketOpCode` OpCode.
|
- `op` is a `WebSocketOpCode` OpCode.
|
||||||
- `d` is an object of the data fields associated with the operation.
|
- `d` is an object of the data fields associated with the operation.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Hello (OpCode 0)
|
### Hello (OpCode 0)
|
||||||
|
|
||||||
- Sent from: obs-websocket
|
- Sent from: obs-websocket
|
||||||
- Sent to: Freshly connected websocket client
|
- Sent to: Freshly connected websocket client
|
||||||
- Description: First message sent from the server immediately on client connection. Contains authentication information if auth is required. Also contains RPC version for version negotiation.
|
- Description: First message sent from the server immediately on client connection. Contains authentication information if auth is required. Also contains RPC version for version negotiation.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"obsWebSocketVersion": string,
|
"obsWebSocketVersion": string,
|
||||||
"rpcVersion": number,
|
"rpcVersion": number,
|
||||||
"authentication": object(optional)
|
"authentication": object(optional)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `rpcVersion` is a version number which gets incremented on each **breaking change** to the obs-websocket protocol. Its usage in this context is to provide the current rpc version that the server would like to use.
|
- `rpcVersion` is a version number which gets incremented on each **breaking change** to the obs-websocket protocol. Its usage in this context is to provide the current rpc version that the server would like to use.
|
||||||
|
|
||||||
**Example Messages:**
|
**Example Messages:**
|
||||||
Authentication is required
|
Authentication is required
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"op": 0,
|
"op": 0,
|
||||||
"d": {
|
"d": {
|
||||||
"obsWebSocketVersion": "5.0.0",
|
"obsWebSocketVersion": "5.1.0",
|
||||||
"rpcVersion": 1,
|
"rpcVersion": 1,
|
||||||
"authentication": {
|
"authentication": {
|
||||||
"challenge": "+IxH4CnCiqpX1rM9scsNynZzbOe4KhDeYcTNS3PDaeY=",
|
"challenge": "+IxH4CnCiqpX1rM9scsNynZzbOe4KhDeYcTNS3PDaeY=",
|
||||||
@ -140,11 +157,12 @@ Authentication is required
|
|||||||
```
|
```
|
||||||
|
|
||||||
Authentication is not required
|
Authentication is not required
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"op": 0,
|
"op": 0,
|
||||||
"d": {
|
"d": {
|
||||||
"obsWebSocketVersion": "5.0.0",
|
"obsWebSocketVersion": "5.1.0",
|
||||||
"rpcVersion": 1
|
"rpcVersion": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -153,22 +171,26 @@ Authentication is not required
|
|||||||
---
|
---
|
||||||
|
|
||||||
### Identify (OpCode 1)
|
### Identify (OpCode 1)
|
||||||
|
|
||||||
- Sent from: Freshly connected websocket client
|
- Sent from: Freshly connected websocket client
|
||||||
- Sent to: obs-websocket
|
- Sent to: obs-websocket
|
||||||
- Description: Response to `Hello` message, should contain authentication string if authentication is required, along with PubSub subscriptions and other session parameters.
|
- Description: Response to `Hello` message, should contain authentication string if authentication is required, along with PubSub subscriptions and other session parameters.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"rpcVersion": number,
|
"rpcVersion": number,
|
||||||
"authentication": string(optional),
|
"authentication": string(optional),
|
||||||
"eventSubscriptions": number(optional) = (EventSubscription::All)
|
"eventSubscriptions": number(optional) = (EventSubscription::All)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `rpcVersion` is the version number that the client would like the obs-websocket server to use.
|
- `rpcVersion` is the version number that the client would like the obs-websocket server to use.
|
||||||
- `eventSubscriptions` is a bitmask of `EventSubscriptions` items to subscribe to events and event categories at will. By default, all event categories are subscribed, except for events marked as high volume. High volume events must be explicitly subscribed to.
|
- `eventSubscriptions` is a bitmask of `EventSubscriptions` items to subscribe to events and event categories at will. By default, all event categories are subscribed, except for events marked as high volume. High volume events must be explicitly subscribed to.
|
||||||
|
|
||||||
**Example Message:**
|
**Example Message:**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"op": 1,
|
"op": 1,
|
||||||
@ -183,19 +205,23 @@ Authentication is not required
|
|||||||
---
|
---
|
||||||
|
|
||||||
### Identified (OpCode 2)
|
### Identified (OpCode 2)
|
||||||
|
|
||||||
- Sent from: obs-websocket
|
- Sent from: obs-websocket
|
||||||
- Sent to: Freshly identified client
|
- Sent to: Freshly identified client
|
||||||
- Description: The identify request was received and validated, and the connection is now ready for normal operation.
|
- Description: The identify request was received and validated, and the connection is now ready for normal operation.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"negotiatedRpcVersion": number
|
"negotiatedRpcVersion": number
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- If rpc version negotiation succeeds, the server determines the RPC version to be used and gives it to the client as `negotiatedRpcVersion`
|
- If rpc version negotiation succeeds, the server determines the RPC version to be used and gives it to the client as `negotiatedRpcVersion`
|
||||||
|
|
||||||
**Example Message:**
|
**Example Message:**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"op": 2,
|
"op": 2,
|
||||||
@ -208,36 +234,43 @@ Authentication is not required
|
|||||||
---
|
---
|
||||||
|
|
||||||
### Reidentify (OpCode 3)
|
### Reidentify (OpCode 3)
|
||||||
|
|
||||||
- Sent from: Identified client
|
- Sent from: Identified client
|
||||||
- Sent to: obs-websocket
|
- Sent to: obs-websocket
|
||||||
- Description: Sent at any time after initial identification to update the provided session parameters.
|
- Description: Sent at any time after initial identification to update the provided session parameters.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"eventSubscriptions": number(optional) = (EventSubscription::All)
|
"eventSubscriptions": number(optional) = (EventSubscription::All)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- Only the listed parameters may be changed after initial identification. To change a parameter not listed, you must reconnect to the obs-websocket server.
|
- Only the listed parameters may be changed after initial identification. To change a parameter not listed, you must reconnect to the obs-websocket server.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Event (OpCode 5)
|
### Event (OpCode 5)
|
||||||
|
|
||||||
- Sent from: obs-websocket
|
- Sent from: obs-websocket
|
||||||
- Sent to: All subscribed and identified clients
|
- Sent to: All subscribed and identified clients
|
||||||
- Description: An event coming from OBS has occured. Eg scene switched, source muted.
|
- Description: An event coming from OBS has occured. Eg scene switched, source muted.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"eventType": string,
|
"eventType": string,
|
||||||
"eventIntent": number,
|
"eventIntent": number,
|
||||||
"eventData": object(optional)
|
"eventData": object(optional)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `eventIntent` is the original intent required to be subscribed to in order to receive the event.
|
- `eventIntent` is the original intent required to be subscribed to in order to receive the event.
|
||||||
|
|
||||||
**Example Message:**
|
**Example Message:**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"op": 5,
|
"op": 5,
|
||||||
@ -254,12 +287,14 @@ Authentication is not required
|
|||||||
---
|
---
|
||||||
|
|
||||||
### Request (OpCode 6)
|
### Request (OpCode 6)
|
||||||
|
|
||||||
- Sent from: Identified client
|
- Sent from: Identified client
|
||||||
- Sent to: obs-websocket
|
- Sent to: obs-websocket
|
||||||
- Description: Client is making a request to obs-websocket. Eg get current scene, create source.
|
- Description: Client is making a request to obs-websocket. Eg get current scene, create source.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"requestType": string,
|
"requestType": string,
|
||||||
"requestId": string,
|
"requestId": string,
|
||||||
@ -269,11 +304,12 @@ Authentication is not required
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Example Message:**
|
**Example Message:**
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"op": 6,
|
"op": 6,
|
||||||
"d": {
|
"d": {
|
||||||
"requestType": "SetCurrentScene",
|
"requestType": "SetCurrentProgramScene",
|
||||||
"requestId": "f819dcf0-89cc-11eb-8f0e-382c4ac93b9c",
|
"requestId": "f819dcf0-89cc-11eb-8f0e-382c4ac93b9c",
|
||||||
"requestData": {
|
"requestData": {
|
||||||
"sceneName": "Scene 12"
|
"sceneName": "Scene 12"
|
||||||
@ -285,12 +321,14 @@ Authentication is not required
|
|||||||
---
|
---
|
||||||
|
|
||||||
### RequestResponse (OpCode 7)
|
### RequestResponse (OpCode 7)
|
||||||
|
|
||||||
- Sent from: obs-websocket
|
- Sent from: obs-websocket
|
||||||
- Sent to: Identified client which made the request
|
- Sent to: Identified client which made the request
|
||||||
- Description: obs-websocket is responding to a request coming from a client.
|
- Description: obs-websocket is responding to a request coming from a client.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"requestType": string,
|
"requestType": string,
|
||||||
"requestId": string,
|
"requestId": string,
|
||||||
@ -298,27 +336,31 @@ Authentication is not required
|
|||||||
"responseData": object(optional)
|
"responseData": object(optional)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- The `requestType` and `requestId` are simply mirrors of what was sent by the client.
|
- The `requestType` and `requestId` are simply mirrors of what was sent by the client.
|
||||||
|
|
||||||
`requestStatus` object:
|
`requestStatus` object:
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"result": bool,
|
"result": bool,
|
||||||
"code": number,
|
"code": number,
|
||||||
"comment": string(optional)
|
"comment": string(optional)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `result` is `true` if the request resulted in `RequestStatus::Success`. False if otherwise.
|
- `result` is `true` if the request resulted in `RequestStatus::Success`. False if otherwise.
|
||||||
- `code` is a `RequestStatus` code.
|
- `code` is a `RequestStatus` code.
|
||||||
- `comment` may be provided by the server on errors to offer further details on why a request failed.
|
- `comment` may be provided by the server on errors to offer further details on why a request failed.
|
||||||
|
|
||||||
**Example Messages:**
|
**Example Messages:**
|
||||||
Successful Response
|
Successful Response
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"op": 7,
|
"op": 7,
|
||||||
"d": {
|
"d": {
|
||||||
"requestType": "SetCurrentScene",
|
"requestType": "SetCurrentProgramScene",
|
||||||
"requestId": "f819dcf0-89cc-11eb-8f0e-382c4ac93b9c",
|
"requestId": "f819dcf0-89cc-11eb-8f0e-382c4ac93b9c",
|
||||||
"requestStatus": {
|
"requestStatus": {
|
||||||
"result": true,
|
"result": true,
|
||||||
@ -329,11 +371,12 @@ Successful Response
|
|||||||
```
|
```
|
||||||
|
|
||||||
Failure Response
|
Failure Response
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"op": 7,
|
"op": 7,
|
||||||
"d": {
|
"d": {
|
||||||
"requestType": "SetCurrentScene",
|
"requestType": "SetCurrentProgramScene",
|
||||||
"requestId": "f819dcf0-89cc-11eb-8f0e-382c4ac93b9c",
|
"requestId": "f819dcf0-89cc-11eb-8f0e-382c4ac93b9c",
|
||||||
"requestStatus": {
|
"requestStatus": {
|
||||||
"result": false,
|
"result": false,
|
||||||
@ -347,12 +390,14 @@ Failure Response
|
|||||||
---
|
---
|
||||||
|
|
||||||
### RequestBatch (OpCode 8)
|
### RequestBatch (OpCode 8)
|
||||||
|
|
||||||
- Sent from: Identified client
|
- Sent from: Identified client
|
||||||
- Sent to: obs-websocket
|
- Sent to: obs-websocket
|
||||||
- Description: Client is making a batch of requests for obs-websocket. Requests are processed serially (in order) by the server.
|
- Description: Client is making a batch of requests for obs-websocket. Requests are processed serially (in order) by the server.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"requestId": string,
|
"requestId": string,
|
||||||
"haltOnFailure": bool(optional) = false,
|
"haltOnFailure": bool(optional) = false,
|
||||||
@ -360,18 +405,21 @@ Failure Response
|
|||||||
"requests": array<object>
|
"requests": array<object>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- When `haltOnFailure` is `true`, the processing of requests will be halted on first failure. Returns only the processed requests in [`RequestBatchResponse`](#requestbatchresponse-opcode-9).
|
- When `haltOnFailure` is `true`, the processing of requests will be halted on first failure. Returns only the processed requests in [`RequestBatchResponse`](#requestbatchresponse-opcode-9).
|
||||||
- Requests in the `requests` array follow the same structure as the `Request` payload data format, however `requestId` is an optional field.
|
- Requests in the `requests` array follow the same structure as the `Request` payload data format, however `requestId` is an optional field.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### RequestBatchResponse (OpCode 9)
|
### RequestBatchResponse (OpCode 9)
|
||||||
|
|
||||||
- Sent from: obs-websocket
|
- Sent from: obs-websocket
|
||||||
- Sent to: Identified client which made the request
|
- Sent to: Identified client which made the request
|
||||||
- Description: obs-websocket is responding to a request batch coming from the client.
|
- Description: obs-websocket is responding to a request batch coming from the client.
|
||||||
|
|
||||||
**Data Keys:**
|
**Data Keys:**
|
||||||
```
|
|
||||||
|
```txt
|
||||||
{
|
{
|
||||||
"requestId": string,
|
"requestId": string,
|
||||||
"results": array<object>
|
"results": array<object>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# Requests
|
# Requests
|
||||||
|
|
||||||
### Requests Table of Contents
|
## Requests Table of Contents
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,74 +0,0 @@
|
|||||||
#define MyAppName "obs-websocket"
|
|
||||||
#define MyAppVersion "@OBS_WEBSOCKET_VERSION@"
|
|
||||||
#define MyAppPublisher "obs-websocket"
|
|
||||||
#define MyAppURL "http://github.com/obsproject/obs-websocket"
|
|
||||||
|
|
||||||
[Setup]
|
|
||||||
; NOTE: The value of AppId uniquely identifies this application.
|
|
||||||
; Do not use the same AppId value in installers for other applications.
|
|
||||||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|
||||||
AppId={{117EE44F-48E1-49E5-A381-CC8D9195CF35}
|
|
||||||
AppName={#MyAppName}
|
|
||||||
AppVersion={#MyAppVersion}
|
|
||||||
AppPublisher={#MyAppPublisher}
|
|
||||||
AppPublisherURL={#MyAppURL}
|
|
||||||
AppSupportURL={#MyAppURL}
|
|
||||||
AppUpdatesURL={#MyAppURL}
|
|
||||||
DefaultDirName={code:GetDirName}
|
|
||||||
DefaultGroupName={#MyAppName}
|
|
||||||
OutputBaseFilename=obs-websocket-{#MyAppVersion}-Windows-Installer
|
|
||||||
Compression=lzma
|
|
||||||
SolidCompression=yes
|
|
||||||
DirExistsWarning=no
|
|
||||||
|
|
||||||
[Languages]
|
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
||||||
|
|
||||||
[Files]
|
|
||||||
Source: "..\release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
||||||
Source: "..\LICENSE"; Flags: dontcopy
|
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
||||||
|
|
||||||
[Icons]
|
|
||||||
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
|
|
||||||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
|
||||||
|
|
||||||
[Code]
|
|
||||||
procedure InitializeWizard();
|
|
||||||
var
|
|
||||||
GPLText: AnsiString;
|
|
||||||
Page: TOutputMsgMemoWizardPage;
|
|
||||||
begin
|
|
||||||
ExtractTemporaryFile('LICENSE');
|
|
||||||
LoadStringFromFile(ExpandConstant('{tmp}\LICENSE'), GPLText);
|
|
||||||
Page := CreateOutputMsgMemoPage(wpWelcome,
|
|
||||||
'License Information', 'Please review the license terms before installing obs-websocket',
|
|
||||||
'Press Page Down to see the rest of the agreement. Once you are aware of your rights, click Next to continue.',
|
|
||||||
String(GPLText)
|
|
||||||
);
|
|
||||||
end;
|
|
||||||
|
|
||||||
// Validate that obs-studio is installed before installing the plugin
|
|
||||||
function PrepareToInstall(var NeedsRestart: Boolean): String;
|
|
||||||
begin
|
|
||||||
Result := '';
|
|
||||||
|
|
||||||
if not DirExists(ExpandConstant('{app}\obs-plugins')) then
|
|
||||||
begin
|
|
||||||
Result := 'The selected install directory does not appear to be valid. Please install OBS Studio before installing {#MyAppName} or correct your install path.';
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
// credit where it's due :
|
|
||||||
// following function come from https://github.com/Xaymar/obs-studio_amf-encoder-plugin/blob/master/%23Resources/Installer.in.iss#L45
|
|
||||||
function GetDirName(Value: string): string;
|
|
||||||
var
|
|
||||||
InstallPath: string;
|
|
||||||
begin
|
|
||||||
// initialize default path, which will be returned when the following registry
|
|
||||||
// key queries fail due to missing keys or for some different reason
|
|
||||||
Result := '{commonpf}\obs-studio';
|
|
||||||
// query the first registry value; if this succeeds, return the obtained value
|
|
||||||
if RegQueryStringValue(HKLM32, 'SOFTWARE\OBS Studio', '', InstallPath) then
|
|
||||||
Result := InstallPath
|
|
||||||
end;
|
|
@ -1,3 +1,24 @@
|
|||||||
|
/*
|
||||||
|
obs-websocket
|
||||||
|
Copyright (C) 2020-2021 Kyle Manning <tt2468@gmail.com>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program. If not, see <https://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Similar example code can be found in ../../src/obs-websocket.cpp
|
||||||
|
// You can test that sample code by specifying -DPLUGIN_TESTS=TRUE
|
||||||
|
|
||||||
#include <obs-module.h>
|
#include <obs-module.h>
|
||||||
|
|
||||||
#include "../obs-websocket-api.h"
|
#include "../obs-websocket-api.h"
|
||||||
@ -9,8 +30,8 @@ obs_websocket_vendor vendor;
|
|||||||
|
|
||||||
bool obs_module_load(void)
|
bool obs_module_load(void)
|
||||||
{
|
{
|
||||||
blog(LOG_INFO, "Example obs-websocket-api plugin loaded!");
|
blog(LOG_INFO, "Example obs-websocket-api plugin loaded!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void example_request_cb(obs_data_t *request_data, obs_data_t *response_data, void *priv_data);
|
void example_request_cb(obs_data_t *request_data, obs_data_t *response_data, void *priv_data);
|
||||||
@ -24,6 +45,24 @@ void obs_module_post_load(void)
|
|||||||
|
|
||||||
if (!obs_websocket_vendor_register_request(vendor, "example_request", example_request_cb, NULL))
|
if (!obs_websocket_vendor_register_request(vendor, "example_request", example_request_cb, NULL))
|
||||||
blog(LOG_ERROR, "Failed to register `example_request` request with obs-websocket.");
|
blog(LOG_ERROR, "Failed to register `example_request` request with obs-websocket.");
|
||||||
|
|
||||||
|
uint api_version = obs_websocket_get_api_version();
|
||||||
|
if (api_version == 0) {
|
||||||
|
blog(LOG_ERROR, "Unable to fetch obs-websocket plugin API version.");
|
||||||
|
return;
|
||||||
|
} else if (api_version == 1) {
|
||||||
|
blog(LOG_WARNING, "Unsupported obs-websocket plugin API version for calling requests.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct obs_websocket_request_response *response = obs_websocket_call_request("GetVersion");
|
||||||
|
if (!response) {
|
||||||
|
blog(LOG_ERROR, "Failed to call GetVersion due to obs-websocket not being installed.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
blog(LOG_INFO, "[obs_module_post_load] Called GetVersion. Status Code: %u | Comment: %s | Response Data: %s",
|
||||||
|
response->status_code, response->comment, response->response_data);
|
||||||
|
obs_websocket_request_response_free(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
void obs_module_unload(void)
|
void obs_module_unload(void)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
obs-websocket
|
obs-websocket
|
||||||
Copyright (C) 2016-2021 Stephane Lepin <stephane.lepin@gmail.com>
|
Copyright (C) 2016-2021 Stephane Lepin <stephane.lepin@gmail.com>
|
||||||
Copyright (C) 2020-2021 Kyle Manning <tt2468@gmail.com>
|
Copyright (C) 2020-2022 Kyle Manning <tt2468@gmail.com>
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -22,60 +22,186 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
|
|
||||||
#include <obs.h>
|
#include <obs.h>
|
||||||
|
|
||||||
#define OBS_WEBSOCKET_API_VERSION 1
|
#define OBS_WEBSOCKET_API_VERSION 3
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef void* obs_websocket_vendor;
|
typedef void *obs_websocket_vendor;
|
||||||
typedef void (*obs_websocket_request_callback_function)(obs_data_t*, obs_data_t*, void*);
|
typedef void (*obs_websocket_request_callback_function)(obs_data_t *, obs_data_t *, void *);
|
||||||
|
typedef void (*obs_websocket_event_callback_function)(uint64_t, const char *, const char *, void *);
|
||||||
|
|
||||||
|
struct obs_websocket_request_response {
|
||||||
|
unsigned int status_code;
|
||||||
|
char *comment;
|
||||||
|
char *response_data; // JSON string, because obs_data_t* only supports array<object>, so conversions would break API.
|
||||||
|
};
|
||||||
|
|
||||||
|
/* ==================== INTERNAL DEFINITIONS ==================== */
|
||||||
|
|
||||||
struct obs_websocket_request_callback {
|
struct obs_websocket_request_callback {
|
||||||
obs_websocket_request_callback_function callback;
|
obs_websocket_request_callback_function callback;
|
||||||
void *priv_data;
|
void *priv_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline proc_handler_t *ph;
|
struct obs_websocket_event_callback {
|
||||||
|
obs_websocket_event_callback_function callback;
|
||||||
|
void *priv_data;
|
||||||
|
};
|
||||||
|
|
||||||
|
static proc_handler_t *_ph;
|
||||||
|
|
||||||
|
/* ==================== INTERNAL API FUNCTIONS ==================== */
|
||||||
|
|
||||||
static inline proc_handler_t *obs_websocket_get_ph(void)
|
static inline proc_handler_t *obs_websocket_get_ph(void)
|
||||||
{
|
{
|
||||||
proc_handler_t *global_ph = obs_get_proc_handler();
|
proc_handler_t *global_ph = obs_get_proc_handler();
|
||||||
assert(global_ph != NULL);
|
assert(global_ph != NULL);
|
||||||
|
|
||||||
calldata_t cd = {0};
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
if (!proc_handler_call(global_ph, "obs_websocket_api_get_ph", &cd))
|
if (!proc_handler_call(global_ph, "obs_websocket_api_get_ph", &cd))
|
||||||
blog(LOG_DEBUG, "Unable to fetch obs-websocket proc handler object. obs-websocket not installed?");
|
blog(LOG_DEBUG, "Unable to fetch obs-websocket proc handler object. obs-websocket not installed?");
|
||||||
proc_handler_t *ret = (proc_handler_t*)calldata_ptr(&cd, "ph");
|
proc_handler_t *ret = (proc_handler_t *)calldata_ptr(&cd, "ph");
|
||||||
calldata_free(&cd);
|
calldata_free(&cd);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool obs_websocket_run_simple_proc(obs_websocket_vendor vendor, const char *proc_name, calldata_t *cd)
|
static inline bool obs_websocket_ensure_ph(void)
|
||||||
{
|
{
|
||||||
if (!ph || !vendor || !proc_name || !strlen(proc_name) || !cd)
|
if (!_ph)
|
||||||
|
_ph = obs_websocket_get_ph();
|
||||||
|
return _ph != NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline bool obs_websocket_vendor_run_simple_proc(obs_websocket_vendor vendor, const char *proc_name, calldata_t *cd)
|
||||||
|
{
|
||||||
|
if (!obs_websocket_ensure_ph())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (!vendor || !proc_name || !strlen(proc_name) || !cd)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
calldata_set_ptr(cd, "vendor", vendor);
|
calldata_set_ptr(cd, "vendor", vendor);
|
||||||
|
|
||||||
proc_handler_call(ph, proc_name, cd);
|
proc_handler_call(_ph, proc_name, cd);
|
||||||
return calldata_bool(cd, "success");
|
return calldata_bool(cd, "success");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ALWAYS CALL VIA `obs_module_post_load()` CALLBACK!
|
/* ==================== GENERAL API FUNCTIONS ==================== */
|
||||||
|
|
||||||
|
// Gets the API version built with the obs-websocket plugin
|
||||||
|
static inline unsigned int obs_websocket_get_api_version(void)
|
||||||
|
{
|
||||||
|
if (!obs_websocket_ensure_ph())
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
|
|
||||||
|
if (!proc_handler_call(_ph, "get_api_version", &cd))
|
||||||
|
return 1; // API v1 does not include get_api_version
|
||||||
|
|
||||||
|
unsigned int ret = (unsigned int)calldata_int(&cd, "version");
|
||||||
|
|
||||||
|
calldata_free(&cd);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Calls an obs-websocket request. Free response with `obs_websocket_request_response_free()`
|
||||||
|
static inline struct obs_websocket_request_response *obs_websocket_call_request(const char *request_type, obs_data_t *request_data
|
||||||
|
#ifdef __cplusplus
|
||||||
|
= NULL
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if (!obs_websocket_ensure_ph())
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
const char *request_data_string = NULL;
|
||||||
|
if (request_data)
|
||||||
|
request_data_string = obs_data_get_json(request_data);
|
||||||
|
|
||||||
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
|
calldata_set_string(&cd, "request_type", request_type);
|
||||||
|
calldata_set_string(&cd, "request_data", request_data_string);
|
||||||
|
|
||||||
|
proc_handler_call(_ph, "call_request", &cd);
|
||||||
|
|
||||||
|
struct obs_websocket_request_response *ret = (struct obs_websocket_request_response *)calldata_ptr(&cd, "response");
|
||||||
|
|
||||||
|
calldata_free(&cd);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Free a request response object returned by `obs_websocket_call_request()`
|
||||||
|
static inline void obs_websocket_request_response_free(struct obs_websocket_request_response *response)
|
||||||
|
{
|
||||||
|
if (!response)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (response->comment)
|
||||||
|
bfree(response->comment);
|
||||||
|
if (response->response_data)
|
||||||
|
bfree(response->response_data);
|
||||||
|
bfree(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Register an event handler to receive obs-websocket events
|
||||||
|
static inline bool obs_websocket_register_event_callback(obs_websocket_event_callback_function event_callback, void *priv_data)
|
||||||
|
{
|
||||||
|
if (!obs_websocket_ensure_ph())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
struct obs_websocket_event_callback cb = {event_callback, priv_data};
|
||||||
|
|
||||||
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
|
calldata_set_ptr(&cd, "callback", &cb);
|
||||||
|
|
||||||
|
proc_handler_call(_ph, "register_event_callback", &cd);
|
||||||
|
|
||||||
|
bool ret = calldata_bool(&cd, "success");
|
||||||
|
|
||||||
|
calldata_free(&cd);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Unregister an existing event handler
|
||||||
|
static inline bool obs_websocket_unregister_event_callback(obs_websocket_event_callback_function event_callback, void *priv_data)
|
||||||
|
{
|
||||||
|
if (!obs_websocket_ensure_ph())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
struct obs_websocket_event_callback cb = {event_callback, priv_data};
|
||||||
|
|
||||||
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
|
calldata_set_ptr(&cd, "callback", &cb);
|
||||||
|
|
||||||
|
proc_handler_call(_ph, "unregister_event_callback", &cd);
|
||||||
|
|
||||||
|
bool ret = calldata_bool(&cd, "success");
|
||||||
|
|
||||||
|
calldata_free(&cd);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==================== VENDOR API FUNCTIONS ==================== */
|
||||||
|
|
||||||
|
// ALWAYS CALL ONLY VIA `obs_module_post_load()` CALLBACK!
|
||||||
// Registers a new "vendor" (Example: obs-ndi)
|
// Registers a new "vendor" (Example: obs-ndi)
|
||||||
static inline obs_websocket_vendor obs_websocket_register_vendor(const char *vendor_name)
|
static inline obs_websocket_vendor obs_websocket_register_vendor(const char *vendor_name)
|
||||||
{
|
{
|
||||||
ph = obs_websocket_get_ph();
|
if (!obs_websocket_ensure_ph())
|
||||||
if (!ph)
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
calldata_t cd = {0};
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
|
|
||||||
calldata_set_string(&cd, "name", vendor_name);
|
calldata_set_string(&cd, "name", vendor_name);
|
||||||
|
|
||||||
proc_handler_call(ph, "vendor_register", &cd);
|
proc_handler_call(_ph, "vendor_register", &cd);
|
||||||
obs_websocket_vendor ret = calldata_ptr(&cd, "vendor");
|
obs_websocket_vendor ret = calldata_ptr(&cd, "vendor");
|
||||||
calldata_free(&cd);
|
calldata_free(&cd);
|
||||||
|
|
||||||
@ -83,18 +209,16 @@ static inline obs_websocket_vendor obs_websocket_register_vendor(const char *ven
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Registers a new request for a vendor
|
// Registers a new request for a vendor
|
||||||
static inline bool obs_websocket_vendor_register_request(obs_websocket_vendor vendor, const char *request_type, obs_websocket_request_callback_function request_callback, void* priv_data)
|
static inline bool obs_websocket_vendor_register_request(obs_websocket_vendor vendor, const char *request_type,
|
||||||
|
obs_websocket_request_callback_function request_callback, void *priv_data)
|
||||||
{
|
{
|
||||||
calldata_t cd = {0};
|
struct obs_websocket_request_callback cb = {request_callback, priv_data};
|
||||||
|
|
||||||
struct obs_websocket_request_callback cb = {};
|
|
||||||
cb.callback = request_callback;
|
|
||||||
cb.priv_data = priv_data;
|
|
||||||
|
|
||||||
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
calldata_set_string(&cd, "type", request_type);
|
calldata_set_string(&cd, "type", request_type);
|
||||||
calldata_set_ptr(&cd, "callback", &cb);
|
calldata_set_ptr(&cd, "callback", &cb);
|
||||||
|
|
||||||
bool success = obs_websocket_run_simple_proc(vendor, "vendor_request_register", &cd);
|
bool success = obs_websocket_vendor_run_simple_proc(vendor, "vendor_request_register", &cd);
|
||||||
calldata_free(&cd);
|
calldata_free(&cd);
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
@ -103,11 +227,10 @@ static inline bool obs_websocket_vendor_register_request(obs_websocket_vendor ve
|
|||||||
// Unregisters an existing vendor request
|
// Unregisters an existing vendor request
|
||||||
static inline bool obs_websocket_vendor_unregister_request(obs_websocket_vendor vendor, const char *request_type)
|
static inline bool obs_websocket_vendor_unregister_request(obs_websocket_vendor vendor, const char *request_type)
|
||||||
{
|
{
|
||||||
calldata_t cd = {0};
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
|
|
||||||
calldata_set_string(&cd, "type", request_type);
|
calldata_set_string(&cd, "type", request_type);
|
||||||
|
|
||||||
bool success = obs_websocket_run_simple_proc(vendor, "vendor_request_unregister", &cd);
|
bool success = obs_websocket_vendor_run_simple_proc(vendor, "vendor_request_unregister", &cd);
|
||||||
calldata_free(&cd);
|
calldata_free(&cd);
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
@ -117,17 +240,18 @@ static inline bool obs_websocket_vendor_unregister_request(obs_websocket_vendor
|
|||||||
// Emits an event under the vendor's name
|
// Emits an event under the vendor's name
|
||||||
static inline bool obs_websocket_vendor_emit_event(obs_websocket_vendor vendor, const char *event_name, obs_data_t *event_data)
|
static inline bool obs_websocket_vendor_emit_event(obs_websocket_vendor vendor, const char *event_name, obs_data_t *event_data)
|
||||||
{
|
{
|
||||||
calldata_t cd = {0};
|
calldata_t cd = {0, 0, 0, 0};
|
||||||
|
|
||||||
calldata_set_string(&cd, "type", event_name);
|
calldata_set_string(&cd, "type", event_name);
|
||||||
calldata_set_ptr(&cd, "data", (void*)event_data);
|
calldata_set_ptr(&cd, "data", (void *)event_data);
|
||||||
|
|
||||||
bool success = obs_websocket_run_simple_proc(vendor, "vendor_event_emit", &cd);
|
bool success = obs_websocket_vendor_run_simple_proc(vendor, "vendor_event_emit", &cd);
|
||||||
calldata_free(&cd);
|
calldata_free(&cd);
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ==================== END API FUNCTIONS ==================== */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
195
src/Config.cpp
195
src/Config.cpp
@ -17,68 +17,80 @@ You should have received a copy of the GNU General Public License along
|
|||||||
with this program. If not, see <https://www.gnu.org/licenses/>
|
with this program. If not, see <https://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
#include <obs-frontend-api.h>
|
#include <obs-frontend-api.h>
|
||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "utils/Crypto.h"
|
#include "utils/Crypto.h"
|
||||||
#include "utils/Platform.h"
|
#include "utils/Platform.h"
|
||||||
|
#include "utils/Obs.h"
|
||||||
|
|
||||||
#define CONFIG_SECTION_NAME "OBSWebSocket"
|
#define CONFIG_SECTION_NAME "OBSWebSocket"
|
||||||
|
#define CONFIG_PARAM_FIRSTLOAD "FirstLoad"
|
||||||
|
#define CONFIG_PARAM_ENABLED "ServerEnabled"
|
||||||
|
#define CONFIG_PARAM_PORT "ServerPort"
|
||||||
|
#define CONFIG_PARAM_ALERTS "AlertsEnabled"
|
||||||
|
#define CONFIG_PARAM_AUTHREQUIRED "AuthRequired"
|
||||||
|
#define CONFIG_PARAM_PASSWORD "ServerPassword"
|
||||||
|
|
||||||
#define PARAM_FIRSTLOAD "FirstLoad"
|
#define CONFIG_FILE_NAME "config.json"
|
||||||
#define PARAM_ENABLED "ServerEnabled"
|
#define PARAM_FIRSTLOAD "first_load"
|
||||||
#define PARAM_PORT "ServerPort"
|
#define PARAM_ENABLED "server_enabled"
|
||||||
#define PARAM_ALERTS "AlertsEnabled"
|
#define PARAM_PORT "server_port"
|
||||||
#define PARAM_AUTHREQUIRED "AuthRequired"
|
#define PARAM_ALERTS "alerts_enabled"
|
||||||
#define PARAM_PASSWORD "ServerPassword"
|
#define PARAM_AUTHREQUIRED "auth_required"
|
||||||
|
#define PARAM_PASSWORD "server_password"
|
||||||
|
|
||||||
#define CMDLINE_WEBSOCKET_PORT "websocket_port"
|
#define CMDLINE_WEBSOCKET_PORT "websocket_port"
|
||||||
|
#define CMDLINE_WEBSOCKET_IPV4_ONLY "websocket_ipv4_only"
|
||||||
#define CMDLINE_WEBSOCKET_PASSWORD "websocket_password"
|
#define CMDLINE_WEBSOCKET_PASSWORD "websocket_password"
|
||||||
#define CMDLINE_WEBSOCKET_DEBUG "websocket_debug"
|
#define CMDLINE_WEBSOCKET_DEBUG "websocket_debug"
|
||||||
|
|
||||||
Config::Config() :
|
void Config::Load(json config)
|
||||||
PortOverridden(false),
|
|
||||||
PasswordOverridden(false),
|
|
||||||
FirstLoad(true),
|
|
||||||
ServerEnabled(true),
|
|
||||||
ServerPort(4455),
|
|
||||||
DebugEnabled(false),
|
|
||||||
AlertsEnabled(false),
|
|
||||||
AuthRequired(true),
|
|
||||||
ServerPassword("")
|
|
||||||
{
|
{
|
||||||
SetDefaultsToGlobalStore();
|
// Only load from plugin config directory if there hasn't been a migration
|
||||||
}
|
if (config.is_null()) {
|
||||||
|
std::string configFilePath = Utils::Obs::StringHelper::GetModuleConfigPath(CONFIG_FILE_NAME);
|
||||||
void Config::Load()
|
Utils::Json::GetJsonFileContent(configFilePath, config); // Fetch the existing config, which may not exist
|
||||||
{
|
|
||||||
config_t* obsConfig = GetConfigStore();
|
|
||||||
if (!obsConfig) {
|
|
||||||
blog(LOG_ERROR, "[Config::Load] Unable to fetch OBS config!");
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FirstLoad = config_get_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_FIRSTLOAD);
|
if (!config.is_object()) {
|
||||||
ServerEnabled = config_get_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_ENABLED);
|
blog(LOG_INFO, "[Config::Load] Existing configuration not found, using defaults.");
|
||||||
AlertsEnabled = config_get_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_ALERTS);
|
config = json::object();
|
||||||
ServerPort = config_get_uint(obsConfig, CONFIG_SECTION_NAME, PARAM_PORT);
|
}
|
||||||
AuthRequired = config_get_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_AUTHREQUIRED);
|
|
||||||
ServerPassword = config_get_string(obsConfig, CONFIG_SECTION_NAME, PARAM_PASSWORD);
|
if (config.contains(PARAM_FIRSTLOAD) && config[PARAM_FIRSTLOAD].is_boolean())
|
||||||
|
FirstLoad = config[PARAM_FIRSTLOAD];
|
||||||
|
if (config.contains(PARAM_ENABLED) && config[PARAM_ENABLED].is_boolean())
|
||||||
|
ServerEnabled = config[PARAM_ENABLED];
|
||||||
|
if (config.contains(PARAM_ALERTS) && config[PARAM_ALERTS].is_boolean())
|
||||||
|
AlertsEnabled = config[PARAM_ALERTS];
|
||||||
|
if (config.contains(PARAM_PORT) && config[PARAM_PORT].is_number_unsigned())
|
||||||
|
ServerPort = config[PARAM_PORT];
|
||||||
|
if (config.contains(PARAM_AUTHREQUIRED) && config[PARAM_AUTHREQUIRED].is_boolean())
|
||||||
|
AuthRequired = config[PARAM_AUTHREQUIRED];
|
||||||
|
if (config.contains(PARAM_PASSWORD) && config[PARAM_PASSWORD].is_string())
|
||||||
|
ServerPassword = config[PARAM_PASSWORD];
|
||||||
|
|
||||||
// Set server password and save it to the config before processing overrides,
|
// Set server password and save it to the config before processing overrides,
|
||||||
// so that there is always a true configured password regardless of if
|
// so that there is always a true configured password regardless of if
|
||||||
// future loads use the override flag.
|
// future loads use the override flag.
|
||||||
if (FirstLoad) {
|
if (FirstLoad) {
|
||||||
FirstLoad = false;
|
FirstLoad = false;
|
||||||
if (ServerPassword.isEmpty()) {
|
if (ServerPassword.empty()) {
|
||||||
blog(LOG_INFO, "[Config::Load] (FirstLoad) Generating new server password.");
|
blog(LOG_INFO, "[Config::Load] (FirstLoad) Generating new server password.");
|
||||||
ServerPassword = QString::fromStdString(Utils::Crypto::GeneratePassword());
|
ServerPassword = Utils::Crypto::GeneratePassword();
|
||||||
} else {
|
} else {
|
||||||
blog(LOG_INFO, "[Config::Load] (FirstLoad) Not generating new password since one is already configured.");
|
blog(LOG_INFO, "[Config::Load] (FirstLoad) Not generating new password since one is already configured.");
|
||||||
}
|
}
|
||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If there are migrated settings, write them to disk before processing arguments.
|
||||||
|
if (!config.empty())
|
||||||
|
Save();
|
||||||
|
|
||||||
// Process `--websocket_port` override
|
// Process `--websocket_port` override
|
||||||
QString portArgument = Utils::Platform::GetCommandLineArgument(CMDLINE_WEBSOCKET_PORT);
|
QString portArgument = Utils::Platform::GetCommandLineArgument(CMDLINE_WEBSOCKET_PORT);
|
||||||
if (portArgument != "") {
|
if (portArgument != "") {
|
||||||
@ -93,13 +105,19 @@ void Config::Load()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Process `--websocket_ipv4_only` override
|
||||||
|
if (Utils::Platform::GetCommandLineFlagSet(CMDLINE_WEBSOCKET_IPV4_ONLY)) {
|
||||||
|
blog(LOG_INFO, "[Config::Load] --websocket_ipv4_only passed. Binding only to IPv4 interfaces.");
|
||||||
|
Ipv4Only = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Process `--websocket_password` override
|
// Process `--websocket_password` override
|
||||||
QString passwordArgument = Utils::Platform::GetCommandLineArgument(CMDLINE_WEBSOCKET_PASSWORD);
|
QString passwordArgument = Utils::Platform::GetCommandLineArgument(CMDLINE_WEBSOCKET_PASSWORD);
|
||||||
if (passwordArgument != "") {
|
if (passwordArgument != "") {
|
||||||
blog(LOG_INFO, "[Config::Load] --websocket_password passed. Overriding WebSocket password.");
|
blog(LOG_INFO, "[Config::Load] --websocket_password passed. Overriding WebSocket password.");
|
||||||
PasswordOverridden = true;
|
PasswordOverridden = true;
|
||||||
AuthRequired = true;
|
AuthRequired = true;
|
||||||
ServerPassword = passwordArgument;
|
ServerPassword = passwordArgument.toStdString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process `--websocket_debug` override
|
// Process `--websocket_debug` override
|
||||||
@ -112,43 +130,98 @@ void Config::Load()
|
|||||||
|
|
||||||
void Config::Save()
|
void Config::Save()
|
||||||
{
|
{
|
||||||
config_t* obsConfig = GetConfigStore();
|
json config;
|
||||||
if (!obsConfig) {
|
|
||||||
blog(LOG_ERROR, "[Config::Save] Unable to fetch OBS config!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
config_set_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_FIRSTLOAD, FirstLoad);
|
std::string configFilePath = Utils::Obs::StringHelper::GetModuleConfigPath(CONFIG_FILE_NAME);
|
||||||
config_set_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_ENABLED, ServerEnabled);
|
Utils::Json::GetJsonFileContent(configFilePath, config); // Fetch the existing config, which may not exist
|
||||||
if (!PortOverridden) {
|
|
||||||
config_set_uint(obsConfig, CONFIG_SECTION_NAME, PARAM_PORT, ServerPort);
|
config[PARAM_FIRSTLOAD] = FirstLoad.load();
|
||||||
}
|
config[PARAM_ENABLED] = ServerEnabled.load();
|
||||||
config_set_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_ALERTS, AlertsEnabled);
|
if (!PortOverridden)
|
||||||
|
config[PARAM_PORT] = ServerPort.load();
|
||||||
|
config[PARAM_ALERTS] = AlertsEnabled.load();
|
||||||
if (!PasswordOverridden) {
|
if (!PasswordOverridden) {
|
||||||
config_set_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_AUTHREQUIRED, AuthRequired);
|
config[PARAM_AUTHREQUIRED] = AuthRequired.load();
|
||||||
config_set_string(obsConfig, CONFIG_SECTION_NAME, PARAM_PASSWORD, QT_TO_UTF8(ServerPassword));
|
config[PARAM_PASSWORD] = ServerPassword;
|
||||||
}
|
}
|
||||||
|
|
||||||
config_save(obsConfig);
|
if (Utils::Json::SetJsonFileContent(configFilePath, config))
|
||||||
|
blog(LOG_DEBUG, "[Config::Save] Saved config.");
|
||||||
|
else
|
||||||
|
blog(LOG_ERROR, "[Config::Save] Failed to write config file!");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Config::SetDefaultsToGlobalStore()
|
// Finds any old values in global.ini and removes them, then returns the values as JSON
|
||||||
|
json MigrateGlobalConfigData()
|
||||||
{
|
{
|
||||||
config_t* obsConfig = GetConfigStore();
|
// Get existing global config
|
||||||
if (!obsConfig) {
|
config_t *config = obs_frontend_get_global_config();
|
||||||
blog(LOG_ERROR, "[Config::SetDefaultsToGlobalStore] Unable to fetch OBS config!");
|
json ret;
|
||||||
return;
|
|
||||||
|
// Move values to temporary JSON blob
|
||||||
|
if (config_has_user_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_FIRSTLOAD)) {
|
||||||
|
ret[PARAM_FIRSTLOAD] = config_get_bool(config, CONFIG_SECTION_NAME, CONFIG_PARAM_FIRSTLOAD);
|
||||||
|
config_remove_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_FIRSTLOAD);
|
||||||
|
}
|
||||||
|
if (config_has_user_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_ENABLED)) {
|
||||||
|
ret[PARAM_ENABLED] = config_get_bool(config, CONFIG_SECTION_NAME, CONFIG_PARAM_ENABLED);
|
||||||
|
config_remove_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_ENABLED);
|
||||||
|
}
|
||||||
|
if (config_has_user_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_PORT)) {
|
||||||
|
ret[PARAM_PORT] = config_get_uint(config, CONFIG_SECTION_NAME, CONFIG_PARAM_PORT);
|
||||||
|
config_remove_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_PORT);
|
||||||
|
}
|
||||||
|
if (config_has_user_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_ALERTS)) {
|
||||||
|
ret[PARAM_ALERTS] = config_get_bool(config, CONFIG_SECTION_NAME, CONFIG_PARAM_ALERTS);
|
||||||
|
config_remove_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_ALERTS);
|
||||||
|
}
|
||||||
|
if (config_has_user_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_AUTHREQUIRED)) {
|
||||||
|
ret[PARAM_AUTHREQUIRED] = config_get_bool(config, CONFIG_SECTION_NAME, CONFIG_PARAM_AUTHREQUIRED);
|
||||||
|
config_remove_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_AUTHREQUIRED);
|
||||||
|
}
|
||||||
|
if (config_has_user_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_PASSWORD)) {
|
||||||
|
ret[PARAM_PASSWORD] = config_get_string(config, CONFIG_SECTION_NAME, CONFIG_PARAM_PASSWORD);
|
||||||
|
config_remove_value(config, CONFIG_SECTION_NAME, CONFIG_PARAM_PASSWORD);
|
||||||
}
|
}
|
||||||
|
|
||||||
config_set_default_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_FIRSTLOAD, FirstLoad);
|
if (!ret.is_null()) {
|
||||||
config_set_default_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_ENABLED, ServerEnabled);
|
blog(LOG_INFO, "[MigrateGlobalConfigData] Some configurations have been migrated from old config");
|
||||||
config_set_default_uint(obsConfig, CONFIG_SECTION_NAME, PARAM_PORT, ServerPort);
|
config_save(config);
|
||||||
config_set_default_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_ALERTS, AlertsEnabled);
|
}
|
||||||
config_set_default_bool(obsConfig, CONFIG_SECTION_NAME, PARAM_AUTHREQUIRED, AuthRequired);
|
|
||||||
config_set_default_string(obsConfig, CONFIG_SECTION_NAME, PARAM_PASSWORD, QT_TO_UTF8(ServerPassword));
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
config_t* Config::GetConfigStore()
|
// Migration from storing persistent data in obsWebSocketPersistentData.json to the module config directory
|
||||||
|
// This will overwrite any persistent data in the destination. People doing manual OBS config modification be warned!
|
||||||
|
bool MigratePersistentData()
|
||||||
{
|
{
|
||||||
return obs_frontend_get_global_config();
|
std::error_code ec;
|
||||||
|
|
||||||
|
// Ensure module config directory exists
|
||||||
|
auto moduleConfigDirectory = std::filesystem::u8path(Utils::Obs::StringHelper::GetModuleConfigPath(""));
|
||||||
|
if (!std::filesystem::exists(moduleConfigDirectory, ec))
|
||||||
|
std::filesystem::create_directories(moduleConfigDirectory, ec);
|
||||||
|
if (ec) {
|
||||||
|
blog(LOG_ERROR, "[MigratePersistentData] Failed to create directory `%s`: %s", moduleConfigDirectory.c_str(),
|
||||||
|
ec.message().c_str());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Move any existing persistent data to module config directory, then delete old file
|
||||||
|
auto oldPersistentDataPath = std::filesystem::u8path(Utils::Obs::StringHelper::GetCurrentProfilePath() +
|
||||||
|
"/../../../obsWebSocketPersistentData.json");
|
||||||
|
if (std::filesystem::exists(oldPersistentDataPath, ec)) {
|
||||||
|
auto persistentDataPath =
|
||||||
|
std::filesystem::u8path(Utils::Obs::StringHelper::GetModuleConfigPath("persistent_data.json"));
|
||||||
|
std::filesystem::copy_file(oldPersistentDataPath, persistentDataPath, ec);
|
||||||
|
std::filesystem::remove(oldPersistentDataPath, ec);
|
||||||
|
blog(LOG_INFO, "[MigratePersistentData] Persistent data migrated to new path");
|
||||||
|
}
|
||||||
|
if (ec) {
|
||||||
|
blog(LOG_ERROR, "[MigratePersistentData] Failed to move persistent data: %s", ec.message().c_str());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
28
src/Config.h
28
src/Config.h
@ -23,23 +23,25 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <util/config-file.h>
|
#include <util/config-file.h>
|
||||||
|
|
||||||
|
#include "utils/Json.h"
|
||||||
#include "plugin-macros.generated.h"
|
#include "plugin-macros.generated.h"
|
||||||
|
|
||||||
struct Config {
|
struct Config {
|
||||||
Config();
|
void Load(json config = nullptr);
|
||||||
void Load();
|
|
||||||
void Save();
|
void Save();
|
||||||
void SetDefaultsToGlobalStore();
|
|
||||||
config_t* GetConfigStore();
|
|
||||||
|
|
||||||
std::atomic<bool> PortOverridden;
|
std::atomic<bool> PortOverridden = false;
|
||||||
std::atomic<bool> PasswordOverridden;
|
std::atomic<bool> PasswordOverridden = false;
|
||||||
|
|
||||||
std::atomic<bool> FirstLoad;
|
std::atomic<bool> FirstLoad = true;
|
||||||
std::atomic<bool> ServerEnabled;
|
std::atomic<bool> ServerEnabled = false;
|
||||||
std::atomic<uint16_t> ServerPort;
|
std::atomic<uint16_t> ServerPort = 4455;
|
||||||
std::atomic<bool> DebugEnabled;
|
std::atomic<bool> Ipv4Only = false;
|
||||||
std::atomic<bool> AlertsEnabled;
|
std::atomic<bool> DebugEnabled = false;
|
||||||
std::atomic<bool> AuthRequired;
|
std::atomic<bool> AlertsEnabled = false;
|
||||||
QString ServerPassword;
|
std::atomic<bool> AuthRequired = true;
|
||||||
|
std::string ServerPassword;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
json MigrateGlobalConfigData();
|
||||||
|
bool MigratePersistentData();
|
||||||
|
@ -1,7 +1,30 @@
|
|||||||
#include "WebSocketApi.h"
|
/*
|
||||||
#include "obs-websocket.h"
|
obs-websocket
|
||||||
|
Copyright (C) 2020-2023 Kyle Manning <tt2468@gmail.com>
|
||||||
|
|
||||||
#define RETURN_STATUS(status) { calldata_set_bool(cd, "success", status); return; }
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program. If not, see <https://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "WebSocketApi.h"
|
||||||
|
#include "requesthandler/RequestHandler.h"
|
||||||
|
#include "utils/Json.h"
|
||||||
|
|
||||||
|
#define RETURN_STATUS(status) \
|
||||||
|
{ \
|
||||||
|
calldata_set_bool(cd, "success", status); \
|
||||||
|
return; \
|
||||||
|
}
|
||||||
#define RETURN_SUCCESS() RETURN_STATUS(true);
|
#define RETURN_SUCCESS() RETURN_STATUS(true);
|
||||||
#define RETURN_FAILURE() RETURN_STATUS(false);
|
#define RETURN_FAILURE() RETURN_STATUS(false);
|
||||||
|
|
||||||
@ -13,7 +36,7 @@ WebSocketApi::Vendor *get_vendor(calldata_t *cd)
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
return static_cast<WebSocketApi::Vendor*>(voidVendor);
|
return static_cast<WebSocketApi::Vendor *>(voidVendor);
|
||||||
}
|
}
|
||||||
|
|
||||||
WebSocketApi::WebSocketApi()
|
WebSocketApi::WebSocketApi()
|
||||||
@ -22,10 +45,21 @@ WebSocketApi::WebSocketApi()
|
|||||||
|
|
||||||
_procHandler = proc_handler_create();
|
_procHandler = proc_handler_create();
|
||||||
|
|
||||||
|
proc_handler_add(_procHandler, "bool get_api_version(out int version)", &get_api_version, nullptr);
|
||||||
|
proc_handler_add(_procHandler, "bool call_request(in string request_type, in string request_data, out ptr response)",
|
||||||
|
&call_request, this);
|
||||||
|
proc_handler_add(_procHandler, "bool register_event_callback(in ptr callback, out bool success)", ®ister_event_callback,
|
||||||
|
this);
|
||||||
|
proc_handler_add(_procHandler, "bool unregister_event_callback(in ptr callback, out bool success)",
|
||||||
|
&unregister_event_callback, this);
|
||||||
proc_handler_add(_procHandler, "bool vendor_register(in string name, out ptr vendor)", &vendor_register_cb, this);
|
proc_handler_add(_procHandler, "bool vendor_register(in string name, out ptr vendor)", &vendor_register_cb, this);
|
||||||
proc_handler_add(_procHandler, "bool vendor_request_register(in ptr vendor, in string type, in ptr callback)", &vendor_request_register_cb, this);
|
proc_handler_add(_procHandler,
|
||||||
proc_handler_add(_procHandler, "bool vendor_request_unregister(in ptr vendor, in string type)", &vendor_request_unregister_cb, this);
|
"bool vendor_request_register(in ptr vendor, in string type, in ptr callback, out bool success)",
|
||||||
proc_handler_add(_procHandler, "bool vendor_event_emit(in ptr vendor, in string type, in ptr data)", &vendor_event_emit_cb, this);
|
&vendor_request_register_cb, this);
|
||||||
|
proc_handler_add(_procHandler, "bool vendor_request_unregister(in ptr vendor, in string type, out bool success)",
|
||||||
|
&vendor_request_unregister_cb, this);
|
||||||
|
proc_handler_add(_procHandler, "bool vendor_event_emit(in ptr vendor, in string type, in ptr data, out bool success)",
|
||||||
|
&vendor_event_emit_cb, this);
|
||||||
|
|
||||||
proc_handler_t *ph = obs_get_proc_handler();
|
proc_handler_t *ph = obs_get_proc_handler();
|
||||||
assert(ph != NULL);
|
assert(ph != NULL);
|
||||||
@ -41,6 +75,10 @@ WebSocketApi::~WebSocketApi()
|
|||||||
|
|
||||||
proc_handler_destroy(_procHandler);
|
proc_handler_destroy(_procHandler);
|
||||||
|
|
||||||
|
size_t numEventCallbacks = _eventCallbacks.size();
|
||||||
|
_eventCallbacks.clear();
|
||||||
|
blog_debug("[WebSocketApi::~WebSocketApi] Deleted %ld event callbacks", numEventCallbacks);
|
||||||
|
|
||||||
for (auto vendor : _vendors) {
|
for (auto vendor : _vendors) {
|
||||||
blog_debug("[WebSocketApi::~WebSocketApi] Deleting vendor: %s", vendor.first.c_str());
|
blog_debug("[WebSocketApi::~WebSocketApi] Deleting vendor: %s", vendor.first.c_str());
|
||||||
delete vendor.second;
|
delete vendor.second;
|
||||||
@ -49,12 +87,25 @@ WebSocketApi::~WebSocketApi()
|
|||||||
blog_debug("[WebSocketApi::~WebSocketApi] Finished.");
|
blog_debug("[WebSocketApi::~WebSocketApi] Finished.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebSocketApi::SetEventCallback(EventCallback cb)
|
void WebSocketApi::BroadcastEvent(uint64_t requiredIntent, const std::string &eventType, const json &eventData, uint8_t rpcVersion)
|
||||||
{
|
{
|
||||||
_eventCallback = cb;
|
if (!_obsReady)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Only broadcast events applicable to the latest RPC version
|
||||||
|
if (rpcVersion && rpcVersion != CURRENT_RPC_VERSION)
|
||||||
|
return;
|
||||||
|
|
||||||
|
std::string eventDataString = eventData.dump();
|
||||||
|
|
||||||
|
std::shared_lock l(_mutex);
|
||||||
|
|
||||||
|
for (auto &cb : _eventCallbacks)
|
||||||
|
cb.callback(requiredIntent, eventType.c_str(), eventDataString.c_str(), cb.priv_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum WebSocketApi::RequestReturnCode WebSocketApi::PerformVendorRequest(std::string vendorName, std::string requestType, obs_data_t *requestData, obs_data_t *responseData)
|
enum WebSocketApi::RequestReturnCode WebSocketApi::PerformVendorRequest(std::string vendorName, std::string requestType,
|
||||||
|
obs_data_t *requestData, obs_data_t *responseData)
|
||||||
{
|
{
|
||||||
std::shared_lock l(_mutex);
|
std::shared_lock l(_mutex);
|
||||||
|
|
||||||
@ -81,16 +132,118 @@ enum WebSocketApi::RequestReturnCode WebSocketApi::PerformVendorRequest(std::str
|
|||||||
|
|
||||||
void WebSocketApi::get_ph_cb(void *priv_data, calldata_t *cd)
|
void WebSocketApi::get_ph_cb(void *priv_data, calldata_t *cd)
|
||||||
{
|
{
|
||||||
auto c = static_cast<WebSocketApi*>(priv_data);
|
auto c = static_cast<WebSocketApi *>(priv_data);
|
||||||
|
|
||||||
calldata_set_ptr(cd, "ph", (void*)c->_procHandler);
|
calldata_set_ptr(cd, "ph", (void *)c->_procHandler);
|
||||||
|
|
||||||
|
RETURN_SUCCESS();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebSocketApi::get_api_version(void *, calldata_t *cd)
|
||||||
|
{
|
||||||
|
calldata_set_int(cd, "version", OBS_WEBSOCKET_API_VERSION);
|
||||||
|
|
||||||
|
RETURN_SUCCESS();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebSocketApi::call_request(void *priv_data, calldata_t *cd)
|
||||||
|
{
|
||||||
|
auto c = static_cast<WebSocketApi *>(priv_data);
|
||||||
|
|
||||||
|
#if !defined(PLUGIN_TESTS)
|
||||||
|
if (!c->_obsReady)
|
||||||
|
RETURN_FAILURE();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char *request_type = calldata_string(cd, "request_type");
|
||||||
|
const char *request_data = calldata_string(cd, "request_data");
|
||||||
|
|
||||||
|
if (!request_type)
|
||||||
|
RETURN_FAILURE();
|
||||||
|
|
||||||
|
#ifdef PLUGIN_TESTS
|
||||||
|
// Allow plugin tests to complete, even though OBS wouldn't be ready at the time of the test
|
||||||
|
if (!c->_obsReady && std::string(request_type) != "GetVersion")
|
||||||
|
RETURN_FAILURE();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
auto response = static_cast<obs_websocket_request_response *>(bzalloc(sizeof(struct obs_websocket_request_response)));
|
||||||
|
if (!response)
|
||||||
|
RETURN_FAILURE();
|
||||||
|
|
||||||
|
json requestData;
|
||||||
|
if (request_data)
|
||||||
|
requestData = json::parse(request_data);
|
||||||
|
|
||||||
|
RequestHandler requestHandler;
|
||||||
|
Request request(request_type, requestData);
|
||||||
|
RequestResult requestResult = requestHandler.ProcessRequest(request);
|
||||||
|
|
||||||
|
response->status_code = (unsigned int)requestResult.StatusCode;
|
||||||
|
if (!requestResult.Comment.empty())
|
||||||
|
response->comment = bstrdup(requestResult.Comment.c_str());
|
||||||
|
if (requestResult.ResponseData.is_object()) {
|
||||||
|
std::string responseData = requestResult.ResponseData.dump();
|
||||||
|
response->response_data = bstrdup(responseData.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
calldata_set_ptr(cd, "response", response);
|
||||||
|
|
||||||
|
blog_debug("[WebSocketApi::call_request] Request %s called, response status code is %u", request_type,
|
||||||
|
response->status_code);
|
||||||
|
|
||||||
|
RETURN_SUCCESS();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebSocketApi::register_event_callback(void *priv_data, calldata_t *cd)
|
||||||
|
{
|
||||||
|
auto c = static_cast<WebSocketApi *>(priv_data);
|
||||||
|
|
||||||
|
void *voidCallback;
|
||||||
|
if (!calldata_get_ptr(cd, "callback", &voidCallback) || !voidCallback) {
|
||||||
|
blog(LOG_WARNING, "[WebSocketApi::register_event_callback] Failed due to missing `callback` pointer.");
|
||||||
|
RETURN_FAILURE();
|
||||||
|
}
|
||||||
|
|
||||||
|
auto cb = static_cast<obs_websocket_event_callback *>(voidCallback);
|
||||||
|
|
||||||
|
std::unique_lock l(c->_mutex);
|
||||||
|
|
||||||
|
int64_t foundIndex = c->GetEventCallbackIndex(*cb);
|
||||||
|
if (foundIndex != -1)
|
||||||
|
RETURN_FAILURE();
|
||||||
|
|
||||||
|
c->_eventCallbacks.push_back(*cb);
|
||||||
|
|
||||||
|
RETURN_SUCCESS();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebSocketApi::unregister_event_callback(void *priv_data, calldata_t *cd)
|
||||||
|
{
|
||||||
|
auto c = static_cast<WebSocketApi *>(priv_data);
|
||||||
|
|
||||||
|
void *voidCallback;
|
||||||
|
if (!calldata_get_ptr(cd, "callback", &voidCallback) || !voidCallback) {
|
||||||
|
blog(LOG_WARNING, "[WebSocketApi::register_event_callback] Failed due to missing `callback` pointer.");
|
||||||
|
RETURN_FAILURE();
|
||||||
|
}
|
||||||
|
|
||||||
|
auto cb = static_cast<obs_websocket_event_callback *>(voidCallback);
|
||||||
|
|
||||||
|
std::unique_lock l(c->_mutex);
|
||||||
|
|
||||||
|
int64_t foundIndex = c->GetEventCallbackIndex(*cb);
|
||||||
|
if (foundIndex == -1)
|
||||||
|
RETURN_FAILURE();
|
||||||
|
|
||||||
|
c->_eventCallbacks.erase(c->_eventCallbacks.begin() + foundIndex);
|
||||||
|
|
||||||
RETURN_SUCCESS();
|
RETURN_SUCCESS();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebSocketApi::vendor_register_cb(void *priv_data, calldata_t *cd)
|
void WebSocketApi::vendor_register_cb(void *priv_data, calldata_t *cd)
|
||||||
{
|
{
|
||||||
auto c = static_cast<WebSocketApi*>(priv_data);
|
auto c = static_cast<WebSocketApi *>(priv_data);
|
||||||
|
|
||||||
const char *vendorName;
|
const char *vendorName;
|
||||||
if (!calldata_get_string(cd, "name", &vendorName) || strlen(vendorName) == 0) {
|
if (!calldata_get_string(cd, "name", &vendorName) || strlen(vendorName) == 0) {
|
||||||
@ -98,22 +251,23 @@ void WebSocketApi::vendor_register_cb(void *priv_data, calldata_t *cd)
|
|||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Theoretically doesn't need a mutex, but it's good to be safe.
|
// Theoretically doesn't need a mutex due to module load being single-thread, but it's good to be safe.
|
||||||
std::unique_lock l(c->_mutex);
|
std::unique_lock l(c->_mutex);
|
||||||
|
|
||||||
if (c->_vendors.count(vendorName)) {
|
if (c->_vendors.count(vendorName)) {
|
||||||
blog(LOG_WARNING, "[WebSocketApi::vendor_register_cb] Failed because `%s` is already a registered vendor.", vendorName);
|
blog(LOG_WARNING, "[WebSocketApi::vendor_register_cb] Failed because `%s` is already a registered vendor.",
|
||||||
|
vendorName);
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
Vendor* v = new Vendor();
|
Vendor *v = new Vendor();
|
||||||
v->_name = vendorName;
|
v->_name = vendorName;
|
||||||
|
|
||||||
c->_vendors[vendorName] = v;
|
c->_vendors[vendorName] = v;
|
||||||
|
|
||||||
blog_debug("[WebSocketApi::vendor_register_cb] [vendorName: %s] Registered new vendor.", v->_name.c_str());
|
blog_debug("[WebSocketApi::vendor_register_cb] [vendorName: %s] Registered new vendor.", v->_name.c_str());
|
||||||
|
|
||||||
calldata_set_ptr(cd, "vendor", static_cast<void*>(v));
|
calldata_set_ptr(cd, "vendor", static_cast<void *>(v));
|
||||||
|
|
||||||
RETURN_SUCCESS();
|
RETURN_SUCCESS();
|
||||||
}
|
}
|
||||||
@ -126,28 +280,35 @@ void WebSocketApi::vendor_request_register_cb(void *, calldata_t *cd)
|
|||||||
|
|
||||||
const char *requestType;
|
const char *requestType;
|
||||||
if (!calldata_get_string(cd, "type", &requestType) || strlen(requestType) == 0) {
|
if (!calldata_get_string(cd, "type", &requestType) || strlen(requestType) == 0) {
|
||||||
blog(LOG_WARNING, "[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Failed due to missing or empty `type` string.", v->_name.c_str());
|
blog(LOG_WARNING,
|
||||||
|
"[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Failed due to missing or empty `type` string.",
|
||||||
|
v->_name.c_str());
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
void *voidCallback;
|
void *voidCallback;
|
||||||
if (!calldata_get_ptr(cd, "callback", &voidCallback) || !voidCallback) {
|
if (!calldata_get_ptr(cd, "callback", &voidCallback) || !voidCallback) {
|
||||||
blog(LOG_WARNING, "[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Failed due to missing `callback` pointer.", v->_name.c_str());
|
blog(LOG_WARNING,
|
||||||
|
"[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Failed due to missing `callback` pointer.",
|
||||||
|
v->_name.c_str());
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto cb = static_cast<obs_websocket_request_callback*>(voidCallback);
|
auto cb = static_cast<obs_websocket_request_callback *>(voidCallback);
|
||||||
|
|
||||||
std::unique_lock l(v->_mutex);
|
std::unique_lock l(v->_mutex);
|
||||||
|
|
||||||
if (v->_requests.count(requestType)) {
|
if (v->_requests.count(requestType)) {
|
||||||
blog(LOG_WARNING, "[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Failed because `%s` is already a registered request.", v->_name.c_str(), requestType);
|
blog(LOG_WARNING,
|
||||||
|
"[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Failed because `%s` is already a registered request.",
|
||||||
|
v->_name.c_str(), requestType);
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
v->_requests[requestType] = *cb;
|
v->_requests[requestType] = *cb;
|
||||||
|
|
||||||
blog_debug("[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Registered new vendor request: %s", v->_name.c_str(), requestType);
|
blog_debug("[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Registered new vendor request: %s",
|
||||||
|
v->_name.c_str(), requestType);
|
||||||
|
|
||||||
RETURN_SUCCESS();
|
RETURN_SUCCESS();
|
||||||
}
|
}
|
||||||
@ -160,27 +321,32 @@ void WebSocketApi::vendor_request_unregister_cb(void *, calldata_t *cd)
|
|||||||
|
|
||||||
const char *requestType;
|
const char *requestType;
|
||||||
if (!calldata_get_string(cd, "type", &requestType) || strlen(requestType) == 0) {
|
if (!calldata_get_string(cd, "type", &requestType) || strlen(requestType) == 0) {
|
||||||
blog(LOG_WARNING, "[WebSocketApi::vendor_request_unregister_cb] [vendorName: %s] Failed due to missing `type` string.", v->_name.c_str());
|
blog(LOG_WARNING,
|
||||||
|
"[WebSocketApi::vendor_request_unregister_cb] [vendorName: %s] Failed due to missing `type` string.",
|
||||||
|
v->_name.c_str());
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_lock l(v->_mutex);
|
std::unique_lock l(v->_mutex);
|
||||||
|
|
||||||
if (!v->_requests.count(requestType)) {
|
if (!v->_requests.count(requestType)) {
|
||||||
blog(LOG_WARNING, "[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Failed because `%s` is not a registered request.", v->_name.c_str(), requestType);
|
blog(LOG_WARNING,
|
||||||
|
"[WebSocketApi::vendor_request_register_cb] [vendorName: %s] Failed because `%s` is not a registered request.",
|
||||||
|
v->_name.c_str(), requestType);
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
v->_requests.erase(requestType);
|
v->_requests.erase(requestType);
|
||||||
|
|
||||||
blog_debug("[WebSocketApi::vendor_request_unregister_cb] [vendorName: %s] Unregistered vendor request: %s", v->_name.c_str(), requestType);
|
blog_debug("[WebSocketApi::vendor_request_unregister_cb] [vendorName: %s] Unregistered vendor request: %s",
|
||||||
|
v->_name.c_str(), requestType);
|
||||||
|
|
||||||
RETURN_SUCCESS();
|
RETURN_SUCCESS();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebSocketApi::vendor_event_emit_cb(void *priv_data, calldata_t *cd)
|
void WebSocketApi::vendor_event_emit_cb(void *priv_data, calldata_t *cd)
|
||||||
{
|
{
|
||||||
auto c = static_cast<WebSocketApi*>(priv_data);
|
auto c = static_cast<WebSocketApi *>(priv_data);
|
||||||
|
|
||||||
Vendor *v = get_vendor(cd);
|
Vendor *v = get_vendor(cd);
|
||||||
if (!v)
|
if (!v)
|
||||||
@ -188,22 +354,24 @@ void WebSocketApi::vendor_event_emit_cb(void *priv_data, calldata_t *cd)
|
|||||||
|
|
||||||
const char *eventType;
|
const char *eventType;
|
||||||
if (!calldata_get_string(cd, "type", &eventType) || strlen(eventType) == 0) {
|
if (!calldata_get_string(cd, "type", &eventType) || strlen(eventType) == 0) {
|
||||||
blog(LOG_WARNING, "[WebSocketApi::vendor_event_emit_cb] [vendorName: %s] Failed due to missing `type` string.", v->_name.c_str());
|
blog(LOG_WARNING, "[WebSocketApi::vendor_event_emit_cb] [vendorName: %s] Failed due to missing `type` string.",
|
||||||
|
v->_name.c_str());
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
void *voidEventData;
|
void *voidEventData;
|
||||||
if (!calldata_get_ptr(cd, "data", &voidEventData)) {
|
if (!calldata_get_ptr(cd, "data", &voidEventData)) {
|
||||||
blog(LOG_WARNING, "[WebSocketApi::vendor_event_emit_cb] [vendorName: %s] Failed due to missing `data` pointer.", v->_name.c_str());
|
blog(LOG_WARNING, "[WebSocketApi::vendor_event_emit_cb] [vendorName: %s] Failed due to missing `data` pointer.",
|
||||||
|
v->_name.c_str());
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto eventData = static_cast<obs_data_t*>(voidEventData);
|
auto eventData = static_cast<obs_data_t *>(voidEventData);
|
||||||
|
|
||||||
if (!c->_eventCallback)
|
if (!c->_vendorEventCallback)
|
||||||
RETURN_FAILURE();
|
RETURN_FAILURE();
|
||||||
|
|
||||||
c->_eventCallback(v->_name, eventType, eventData);
|
c->_vendorEventCallback(v->_name, eventType, eventData);
|
||||||
|
|
||||||
RETURN_SUCCESS();
|
RETURN_SUCCESS();
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,21 @@
|
|||||||
|
/*
|
||||||
|
obs-websocket
|
||||||
|
Copyright (C) 2020-2023 Kyle Manning <tt2468@gmail.com>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program. If not, see <https://www.gnu.org/licenses/>
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
@ -5,42 +23,67 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <shared_mutex>
|
#include <shared_mutex>
|
||||||
|
#include <atomic>
|
||||||
#include <obs.h>
|
#include <obs.h>
|
||||||
|
#include <obs-websocket-api.h>
|
||||||
|
|
||||||
#include "../lib/obs-websocket-api.h"
|
#include "utils/Json.h"
|
||||||
|
#include "plugin-macros.generated.h"
|
||||||
|
|
||||||
class WebSocketApi {
|
class WebSocketApi {
|
||||||
public:
|
public:
|
||||||
enum RequestReturnCode {
|
enum RequestReturnCode {
|
||||||
Normal,
|
Normal,
|
||||||
NoVendor,
|
NoVendor,
|
||||||
NoVendorRequest,
|
NoVendorRequest,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::function<void(std::string, std::string, obs_data_t*)> EventCallback;
|
struct Vendor {
|
||||||
|
|
||||||
struct Vendor {
|
|
||||||
std::shared_mutex _mutex;
|
|
||||||
std::string _name;
|
|
||||||
std::map<std::string, obs_websocket_request_callback> _requests;
|
|
||||||
};
|
|
||||||
|
|
||||||
WebSocketApi();
|
|
||||||
~WebSocketApi();
|
|
||||||
|
|
||||||
void SetEventCallback(EventCallback cb);
|
|
||||||
|
|
||||||
enum RequestReturnCode PerformVendorRequest(std::string vendorName, std::string requestName, obs_data_t *requestData, obs_data_t *responseData);
|
|
||||||
|
|
||||||
static void get_ph_cb(void *priv_data, calldata_t *cd);
|
|
||||||
static void vendor_register_cb(void *priv_data, calldata_t *cd);
|
|
||||||
static void vendor_request_register_cb(void *priv_data, calldata_t *cd);
|
|
||||||
static void vendor_request_unregister_cb(void *priv_data, calldata_t *cd);
|
|
||||||
static void vendor_event_emit_cb(void *priv_data, calldata_t *cd);
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::shared_mutex _mutex;
|
std::shared_mutex _mutex;
|
||||||
EventCallback _eventCallback;
|
std::string _name;
|
||||||
proc_handler_t *_procHandler;
|
std::map<std::string, obs_websocket_request_callback> _requests;
|
||||||
std::map<std::string, Vendor*> _vendors;
|
};
|
||||||
|
|
||||||
|
WebSocketApi();
|
||||||
|
~WebSocketApi();
|
||||||
|
void BroadcastEvent(uint64_t requiredIntent, const std::string &eventType, const json &eventData = nullptr,
|
||||||
|
uint8_t rpcVersion = 0);
|
||||||
|
void SetObsReady(bool ready) { _obsReady = ready; }
|
||||||
|
enum RequestReturnCode PerformVendorRequest(std::string vendorName, std::string requestName, obs_data_t *requestData,
|
||||||
|
obs_data_t *responseData);
|
||||||
|
|
||||||
|
// Callback for when a vendor emits an event
|
||||||
|
typedef std::function<void(std::string, std::string, obs_data_t *)> VendorEventCallback;
|
||||||
|
inline void SetVendorEventCallback(VendorEventCallback cb) { _vendorEventCallback = cb; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
inline int64_t GetEventCallbackIndex(obs_websocket_event_callback &cb)
|
||||||
|
{
|
||||||
|
for (int64_t i = 0; i < (int64_t)_eventCallbacks.size(); i++) {
|
||||||
|
auto currentCb = _eventCallbacks[i];
|
||||||
|
if (currentCb.callback == cb.callback && currentCb.priv_data == cb.priv_data)
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Proc handlers
|
||||||
|
static void get_ph_cb(void *priv_data, calldata_t *cd);
|
||||||
|
static void get_api_version(void *, calldata_t *cd);
|
||||||
|
static void call_request(void *, calldata_t *cd);
|
||||||
|
static void register_event_callback(void *, calldata_t *cd);
|
||||||
|
static void unregister_event_callback(void *, calldata_t *cd);
|
||||||
|
static void vendor_register_cb(void *priv_data, calldata_t *cd);
|
||||||
|
static void vendor_request_register_cb(void *priv_data, calldata_t *cd);
|
||||||
|
static void vendor_request_unregister_cb(void *priv_data, calldata_t *cd);
|
||||||
|
static void vendor_event_emit_cb(void *priv_data, calldata_t *cd);
|
||||||
|
|
||||||
|
std::shared_mutex _mutex;
|
||||||
|
proc_handler_t *_procHandler;
|
||||||
|
std::map<std::string, Vendor *> _vendors;
|
||||||
|
std::vector<obs_websocket_event_callback> _eventCallbacks;
|
||||||
|
|
||||||
|
std::atomic<bool> _obsReady = false;
|
||||||
|
|
||||||
|
VendorEventCallback _vendorEventCallback;
|
||||||
};
|
};
|
||||||
|
@ -19,23 +19,19 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
|
|
||||||
#include "EventHandler.h"
|
#include "EventHandler.h"
|
||||||
|
|
||||||
EventHandler::EventHandler() :
|
EventHandler::EventHandler()
|
||||||
_obsLoaded(false),
|
|
||||||
_inputVolumeMetersRef(0),
|
|
||||||
_inputActiveStateChangedRef(0),
|
|
||||||
_inputShowStateChangedRef(0),
|
|
||||||
_sceneItemTransformChangedRef(0)
|
|
||||||
{
|
{
|
||||||
blog_debug("[EventHandler::EventHandler] Setting up...");
|
blog_debug("[EventHandler::EventHandler] Setting up...");
|
||||||
|
|
||||||
obs_frontend_add_event_callback(OnFrontendEvent, this);
|
obs_frontend_add_event_callback(OnFrontendEvent, this);
|
||||||
|
|
||||||
signal_handler_t* coreSignalHandler = obs_get_signal_handler();
|
signal_handler_t *coreSignalHandler = obs_get_signal_handler();
|
||||||
if (coreSignalHandler) {
|
if (coreSignalHandler) {
|
||||||
signal_handler_connect(coreSignalHandler, "source_create", SourceCreatedMultiHandler, this);
|
coreSignals.emplace_back(coreSignalHandler, "source_create", SourceCreatedMultiHandler, this);
|
||||||
signal_handler_connect(coreSignalHandler, "source_destroy", SourceDestroyedMultiHandler, this);
|
coreSignals.emplace_back(coreSignalHandler, "source_destroy", SourceDestroyedMultiHandler, this);
|
||||||
signal_handler_connect(coreSignalHandler, "source_remove", SourceRemovedMultiHandler, this);
|
coreSignals.emplace_back(coreSignalHandler, "source_remove", SourceRemovedMultiHandler, this);
|
||||||
signal_handler_connect(coreSignalHandler, "source_rename", SourceRenamedMultiHandler, this);
|
coreSignals.emplace_back(coreSignalHandler, "source_rename", SourceRenamedMultiHandler, this);
|
||||||
|
coreSignals.emplace_back(coreSignalHandler, "source_update", SourceUpdatedMultiHandler, this);
|
||||||
} else {
|
} else {
|
||||||
blog(LOG_ERROR, "[EventHandler::EventHandler] Unable to get libobs signal handler!");
|
blog(LOG_ERROR, "[EventHandler::EventHandler] Unable to get libobs signal handler!");
|
||||||
}
|
}
|
||||||
@ -49,70 +45,66 @@ EventHandler::~EventHandler()
|
|||||||
|
|
||||||
obs_frontend_remove_event_callback(OnFrontendEvent, this);
|
obs_frontend_remove_event_callback(OnFrontendEvent, this);
|
||||||
|
|
||||||
signal_handler_t* coreSignalHandler = obs_get_signal_handler();
|
coreSignals.clear();
|
||||||
if (coreSignalHandler) {
|
|
||||||
signal_handler_disconnect(coreSignalHandler, "source_create", SourceCreatedMultiHandler, this);
|
// Revoke callbacks of all inputs and scenes, in case some still have our callbacks attached
|
||||||
signal_handler_disconnect(coreSignalHandler, "source_destroy", SourceDestroyedMultiHandler, this);
|
auto enumInputs = [](void *param, obs_source_t *source) {
|
||||||
signal_handler_disconnect(coreSignalHandler, "source_remove", SourceRemovedMultiHandler, this);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
signal_handler_disconnect(coreSignalHandler, "source_rename", SourceRenamedMultiHandler, this);
|
eventHandler->DisconnectSourceSignals(source);
|
||||||
} else {
|
return true;
|
||||||
blog(LOG_ERROR, "[EventHandler::~EventHandler] Unable to get libobs signal handler!");
|
};
|
||||||
}
|
obs_enum_sources(enumInputs, this);
|
||||||
|
auto enumScenes = [](void *param, obs_source_t *source) {
|
||||||
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
eventHandler->DisconnectSourceSignals(source);
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
obs_enum_scenes(enumScenes, this);
|
||||||
|
|
||||||
blog_debug("[EventHandler::~EventHandler] Finished.");
|
blog_debug("[EventHandler::~EventHandler] Finished.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventHandler::SetBroadcastCallback(EventHandler::BroadcastCallback cb)
|
// Function to increment or decrement refcounts for high volume event subscriptions
|
||||||
|
void EventHandler::ProcessSubscriptionChange(bool type, uint64_t eventSubscriptions)
|
||||||
{
|
{
|
||||||
_broadcastCallback = cb;
|
if (type) {
|
||||||
}
|
if ((eventSubscriptions & EventSubscription::InputVolumeMeters) != 0) {
|
||||||
|
if (_inputVolumeMetersRef.fetch_add(1) == 0) {
|
||||||
void EventHandler::SetObsLoadedCallback(EventHandler::ObsLoadedCallback cb)
|
if (_inputVolumeMetersHandler)
|
||||||
{
|
blog(LOG_WARNING,
|
||||||
_obsLoadedCallback = cb;
|
"[EventHandler::ProcessSubscription] Input volume meter handler already exists!");
|
||||||
}
|
else
|
||||||
|
_inputVolumeMetersHandler = std::make_unique<Utils::Obs::VolumeMeter::Handler>(
|
||||||
// Function to increment refcounts for high volume event subscriptions
|
std::bind(&EventHandler::HandleInputVolumeMeters, this, std::placeholders::_1));
|
||||||
void EventHandler::ProcessSubscription(uint64_t eventSubscriptions)
|
}
|
||||||
{
|
|
||||||
if ((eventSubscriptions & EventSubscription::InputVolumeMeters) != 0) {
|
|
||||||
if (_inputVolumeMetersRef.fetch_add(1) == 0) {
|
|
||||||
if (_inputVolumeMetersHandler)
|
|
||||||
blog(LOG_WARNING, "[EventHandler::ProcessSubscription] Input volume meter handler already exists!");
|
|
||||||
else
|
|
||||||
_inputVolumeMetersHandler = std::make_unique<Utils::Obs::VolumeMeter::Handler>(std::bind(&EventHandler::HandleInputVolumeMeters, this, std::placeholders::_1));
|
|
||||||
}
|
}
|
||||||
|
if ((eventSubscriptions & EventSubscription::InputActiveStateChanged) != 0)
|
||||||
|
_inputActiveStateChangedRef++;
|
||||||
|
if ((eventSubscriptions & EventSubscription::InputShowStateChanged) != 0)
|
||||||
|
_inputShowStateChangedRef++;
|
||||||
|
if ((eventSubscriptions & EventSubscription::SceneItemTransformChanged) != 0)
|
||||||
|
_sceneItemTransformChangedRef++;
|
||||||
|
} else {
|
||||||
|
if ((eventSubscriptions & EventSubscription::InputVolumeMeters) != 0) {
|
||||||
|
if (_inputVolumeMetersRef.fetch_sub(1) == 1)
|
||||||
|
_inputVolumeMetersHandler.reset();
|
||||||
|
}
|
||||||
|
if ((eventSubscriptions & EventSubscription::InputActiveStateChanged) != 0)
|
||||||
|
_inputActiveStateChangedRef--;
|
||||||
|
if ((eventSubscriptions & EventSubscription::InputShowStateChanged) != 0)
|
||||||
|
_inputShowStateChangedRef--;
|
||||||
|
if ((eventSubscriptions & EventSubscription::SceneItemTransformChanged) != 0)
|
||||||
|
_sceneItemTransformChangedRef--;
|
||||||
}
|
}
|
||||||
if ((eventSubscriptions & EventSubscription::InputActiveStateChanged) != 0)
|
|
||||||
_inputActiveStateChangedRef++;
|
|
||||||
if ((eventSubscriptions & EventSubscription::InputShowStateChanged) != 0)
|
|
||||||
_inputShowStateChangedRef++;
|
|
||||||
if ((eventSubscriptions & EventSubscription::SceneItemTransformChanged) != 0)
|
|
||||||
_sceneItemTransformChangedRef++;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Function to decrement refcounts for high volume event subscriptions
|
|
||||||
void EventHandler::ProcessUnsubscription(uint64_t eventSubscriptions)
|
|
||||||
{
|
|
||||||
if ((eventSubscriptions & EventSubscription::InputVolumeMeters) != 0) {
|
|
||||||
if (_inputVolumeMetersRef.fetch_sub(1) == 1)
|
|
||||||
_inputVolumeMetersHandler.reset();
|
|
||||||
}
|
|
||||||
if ((eventSubscriptions & EventSubscription::InputActiveStateChanged) != 0)
|
|
||||||
_inputActiveStateChangedRef--;
|
|
||||||
if ((eventSubscriptions & EventSubscription::InputShowStateChanged) != 0)
|
|
||||||
_inputShowStateChangedRef--;
|
|
||||||
if ((eventSubscriptions & EventSubscription::SceneItemTransformChanged) != 0)
|
|
||||||
_sceneItemTransformChangedRef--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function required in order to use default arguments
|
// Function required in order to use default arguments
|
||||||
void EventHandler::BroadcastEvent(uint64_t requiredIntent, std::string eventType, json eventData, uint8_t rpcVersion)
|
void EventHandler::BroadcastEvent(uint64_t requiredIntent, std::string eventType, json eventData, uint8_t rpcVersion)
|
||||||
{
|
{
|
||||||
if (!_broadcastCallback)
|
if (!_eventCallback)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_broadcastCallback(requiredIntent, eventType, eventData, rpcVersion);
|
_eventCallback(requiredIntent, eventType, eventData, rpcVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connect source signals for Inputs, Scenes, and Transitions. Filters are automatically connected.
|
// Connect source signals for Inputs, Scenes, and Transitions. Filters are automatically connected.
|
||||||
@ -124,7 +116,7 @@ void EventHandler::ConnectSourceSignals(obs_source_t *source) // Applies to inpu
|
|||||||
// Disconnect all existing signals from the source to prevent multiple connections
|
// Disconnect all existing signals from the source to prevent multiple connections
|
||||||
DisconnectSourceSignals(source);
|
DisconnectSourceSignals(source);
|
||||||
|
|
||||||
signal_handler_t* sh = obs_source_get_signal_handler(source);
|
signal_handler_t *sh = obs_source_get_signal_handler(source);
|
||||||
|
|
||||||
obs_source_type sourceType = obs_source_get_type(source);
|
obs_source_type sourceType = obs_source_get_type(source);
|
||||||
|
|
||||||
@ -166,8 +158,8 @@ void EventHandler::ConnectSourceSignals(obs_source_t *source) // Applies to inpu
|
|||||||
signal_handler_connect(sh, "reorder_filters", HandleSourceFilterListReindexed, this);
|
signal_handler_connect(sh, "reorder_filters", HandleSourceFilterListReindexed, this);
|
||||||
signal_handler_connect(sh, "filter_add", FilterAddMultiHandler, this);
|
signal_handler_connect(sh, "filter_add", FilterAddMultiHandler, this);
|
||||||
signal_handler_connect(sh, "filter_remove", FilterRemoveMultiHandler, this);
|
signal_handler_connect(sh, "filter_remove", FilterRemoveMultiHandler, this);
|
||||||
auto enumFilters = [](obs_source_t *, obs_source_t *filter, void *param){
|
auto enumFilters = [](obs_source_t *, obs_source_t *filter, void *param) {
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
eventHandler->ConnectSourceSignals(filter);
|
eventHandler->ConnectSourceSignals(filter);
|
||||||
};
|
};
|
||||||
obs_source_enum_filters(source, enumFilters, this);
|
obs_source_enum_filters(source, enumFilters, this);
|
||||||
@ -193,7 +185,7 @@ void EventHandler::DisconnectSourceSignals(obs_source_t *source)
|
|||||||
if (!source)
|
if (!source)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
signal_handler_t* sh = obs_source_get_signal_handler(source);
|
signal_handler_t *sh = obs_source_get_signal_handler(source);
|
||||||
|
|
||||||
obs_source_type sourceType = obs_source_get_type(source);
|
obs_source_type sourceType = obs_source_get_type(source);
|
||||||
|
|
||||||
@ -235,8 +227,8 @@ void EventHandler::DisconnectSourceSignals(obs_source_t *source)
|
|||||||
signal_handler_disconnect(sh, "reorder_filters", HandleSourceFilterListReindexed, this);
|
signal_handler_disconnect(sh, "reorder_filters", HandleSourceFilterListReindexed, this);
|
||||||
signal_handler_disconnect(sh, "filter_add", FilterAddMultiHandler, this);
|
signal_handler_disconnect(sh, "filter_add", FilterAddMultiHandler, this);
|
||||||
signal_handler_disconnect(sh, "filter_remove", FilterRemoveMultiHandler, this);
|
signal_handler_disconnect(sh, "filter_remove", FilterRemoveMultiHandler, this);
|
||||||
auto enumFilters = [](obs_source_t *, obs_source_t *filter, void *param){
|
auto enumFilters = [](obs_source_t *, obs_source_t *filter, void *param) {
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
eventHandler->DisconnectSourceSignals(filter);
|
eventHandler->DisconnectSourceSignals(filter);
|
||||||
};
|
};
|
||||||
obs_source_enum_filters(source, enumFilters, this);
|
obs_source_enum_filters(source, enumFilters, this);
|
||||||
@ -258,240 +250,237 @@ void EventHandler::DisconnectSourceSignals(obs_source_t *source)
|
|||||||
|
|
||||||
void EventHandler::OnFrontendEvent(enum obs_frontend_event event, void *private_data)
|
void EventHandler::OnFrontendEvent(enum obs_frontend_event event, void *private_data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(private_data);
|
auto eventHandler = static_cast<EventHandler *>(private_data);
|
||||||
|
|
||||||
if (!eventHandler->_obsLoaded.load() && event != OBS_FRONTEND_EVENT_FINISHED_LOADING)
|
|
||||||
return;
|
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
// General
|
// General
|
||||||
case OBS_FRONTEND_EVENT_FINISHED_LOADING:
|
case OBS_FRONTEND_EVENT_FINISHED_LOADING:
|
||||||
blog_debug("[EventHandler::OnFrontendEvent] OBS has finished loading. Connecting final handlers and enabling events...");
|
eventHandler->FrontendFinishedLoadingMultiHandler();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_SCRIPTING_SHUTDOWN:
|
||||||
|
eventHandler->FrontendExitMultiHandler();
|
||||||
|
break;
|
||||||
|
|
||||||
// Connect source signals and enable events only after OBS has fully loaded (to reduce extra logging).
|
// Config
|
||||||
eventHandler->_obsLoaded.store(true);
|
case OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGING: {
|
||||||
|
obs_frontend_source_list transitions = {};
|
||||||
// In the case that plugins become hotloadable, this will have to go back into `EventHandler::EventHandler()`
|
obs_frontend_get_transitions(&transitions);
|
||||||
// Enumerate inputs and connect each one
|
for (size_t i = 0; i < transitions.sources.num; i++) {
|
||||||
{
|
obs_source_t *transition = transitions.sources.array[i];
|
||||||
auto enumInputs = [](void *param, obs_source_t *source) {
|
eventHandler->DisconnectSourceSignals(transition);
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
}
|
||||||
eventHandler->ConnectSourceSignals(source);
|
obs_frontend_source_list_free(&transitions);
|
||||||
return true;
|
|
||||||
};
|
|
||||||
obs_enum_sources(enumInputs, private_data);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enumerate scenes and connect each one
|
|
||||||
{
|
|
||||||
auto enumScenes = [](void *param, obs_source_t *source) {
|
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
|
||||||
eventHandler->ConnectSourceSignals(source);
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
obs_enum_scenes(enumScenes, private_data);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enumerate all scene transitions and connect each one
|
|
||||||
{
|
|
||||||
obs_frontend_source_list transitions = {};
|
|
||||||
obs_frontend_get_transitions(&transitions);
|
|
||||||
for (size_t i = 0; i < transitions.sources.num; i++) {
|
|
||||||
obs_source_t* transition = transitions.sources.array[i];
|
|
||||||
eventHandler->ConnectSourceSignals(transition);
|
|
||||||
}
|
|
||||||
obs_frontend_source_list_free(&transitions);
|
|
||||||
}
|
|
||||||
|
|
||||||
blog_debug("[EventHandler::OnFrontendEvent] Finished.");
|
|
||||||
|
|
||||||
if (eventHandler->_obsLoadedCallback)
|
|
||||||
eventHandler->_obsLoadedCallback();
|
|
||||||
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_EXIT:
|
|
||||||
eventHandler->HandleExitStarted();
|
|
||||||
|
|
||||||
blog_debug("[EventHandler::OnFrontendEvent] OBS is unloading. Disabling events...");
|
|
||||||
// Disconnect source signals and disable events when OBS starts unloading (to reduce extra logging).
|
|
||||||
eventHandler->_obsLoaded.store(false);
|
|
||||||
|
|
||||||
// In the case that plugins become hotloadable, this will have to go back into `EventHandler::~EventHandler()`
|
|
||||||
// Enumerate inputs and disconnect each one
|
|
||||||
{
|
|
||||||
auto enumInputs = [](void *param, obs_source_t *source) {
|
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
|
||||||
eventHandler->DisconnectSourceSignals(source);
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
obs_enum_sources(enumInputs, private_data);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enumerate scenes and disconnect each one
|
|
||||||
{
|
|
||||||
auto enumScenes = [](void *param, obs_source_t *source) {
|
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
|
||||||
eventHandler->DisconnectSourceSignals(source);
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
obs_enum_scenes(enumScenes, private_data);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enumerate all scene transitions and disconnect each one
|
|
||||||
{
|
|
||||||
obs_frontend_source_list transitions = {};
|
|
||||||
obs_frontend_get_transitions(&transitions);
|
|
||||||
for (size_t i = 0; i < transitions.sources.num; i++) {
|
|
||||||
obs_source_t* transition = transitions.sources.array[i];
|
|
||||||
eventHandler->DisconnectSourceSignals(transition);
|
|
||||||
}
|
|
||||||
obs_frontend_source_list_free(&transitions);
|
|
||||||
}
|
|
||||||
|
|
||||||
blog_debug("[EventHandler::OnFrontendEvent] Finished.");
|
|
||||||
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_STUDIO_MODE_ENABLED:
|
|
||||||
eventHandler->HandleStudioModeStateChanged(true);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_STUDIO_MODE_DISABLED:
|
|
||||||
eventHandler->HandleStudioModeStateChanged(false);
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Config
|
|
||||||
case OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGING:
|
|
||||||
{
|
|
||||||
obs_frontend_source_list transitions = {};
|
|
||||||
obs_frontend_get_transitions(&transitions);
|
|
||||||
for (size_t i = 0; i < transitions.sources.num; i++) {
|
|
||||||
obs_source_t* transition = transitions.sources.array[i];
|
|
||||||
eventHandler->DisconnectSourceSignals(transition);
|
|
||||||
}
|
|
||||||
obs_frontend_source_list_free(&transitions);
|
|
||||||
}
|
|
||||||
eventHandler->HandleCurrentSceneCollectionChanging();
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGED:
|
|
||||||
{
|
|
||||||
obs_frontend_source_list transitions = {};
|
|
||||||
obs_frontend_get_transitions(&transitions);
|
|
||||||
for (size_t i = 0; i < transitions.sources.num; i++) {
|
|
||||||
obs_source_t* transition = transitions.sources.array[i];
|
|
||||||
eventHandler->ConnectSourceSignals(transition);
|
|
||||||
}
|
|
||||||
obs_frontend_source_list_free(&transitions);
|
|
||||||
}
|
|
||||||
eventHandler->HandleCurrentSceneCollectionChanged();
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_SCENE_COLLECTION_LIST_CHANGED:
|
|
||||||
eventHandler->HandleSceneCollectionListChanged();
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_PROFILE_CHANGING:
|
|
||||||
eventHandler->HandleCurrentProfileChanging();
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_PROFILE_CHANGED:
|
|
||||||
eventHandler->HandleCurrentProfileChanged();
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_PROFILE_LIST_CHANGED:
|
|
||||||
eventHandler->HandleProfileListChanged();
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Scenes
|
|
||||||
case OBS_FRONTEND_EVENT_SCENE_CHANGED:
|
|
||||||
eventHandler->HandleCurrentProgramSceneChanged();
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED:
|
|
||||||
eventHandler->HandleCurrentPreviewSceneChanged();
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED:
|
|
||||||
eventHandler->HandleSceneListChanged();
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Transitions
|
|
||||||
case OBS_FRONTEND_EVENT_TRANSITION_CHANGED:
|
|
||||||
eventHandler->HandleCurrentSceneTransitionChanged();
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_TRANSITION_LIST_CHANGED:
|
|
||||||
{
|
|
||||||
obs_frontend_source_list transitions = {};
|
|
||||||
obs_frontend_get_transitions(&transitions);
|
|
||||||
for (size_t i = 0; i < transitions.sources.num; i++) {
|
|
||||||
obs_source_t* transition = transitions.sources.array[i];
|
|
||||||
eventHandler->ConnectSourceSignals(transition);
|
|
||||||
}
|
|
||||||
obs_frontend_source_list_free(&transitions);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_TRANSITION_DURATION_CHANGED:
|
|
||||||
eventHandler->HandleCurrentSceneTransitionDurationChanged();
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Outputs
|
|
||||||
case OBS_FRONTEND_EVENT_STREAMING_STARTING:
|
|
||||||
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_STARTING);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_STREAMING_STARTED:
|
|
||||||
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_STARTED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_STREAMING_STOPPING:
|
|
||||||
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPING);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_STREAMING_STOPPED:
|
|
||||||
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_RECORDING_STARTING:
|
|
||||||
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_STARTING);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_RECORDING_STARTED:
|
|
||||||
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_STARTED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_RECORDING_STOPPING:
|
|
||||||
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPING);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_RECORDING_STOPPED:
|
|
||||||
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_RECORDING_PAUSED:
|
|
||||||
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_PAUSED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_RECORDING_UNPAUSED:
|
|
||||||
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_RESUMED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTING:
|
|
||||||
eventHandler->HandleReplayBufferStateChanged(OBS_WEBSOCKET_OUTPUT_STARTING);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTED:
|
|
||||||
eventHandler->HandleReplayBufferStateChanged(OBS_WEBSOCKET_OUTPUT_STARTED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_STOPPING:
|
|
||||||
eventHandler->HandleReplayBufferStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPING);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_STOPPED:
|
|
||||||
eventHandler->HandleReplayBufferStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_VIRTUALCAM_STARTED:
|
|
||||||
eventHandler->HandleVirtualcamStateChanged(OBS_WEBSOCKET_OUTPUT_STARTED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_VIRTUALCAM_STOPPED:
|
|
||||||
eventHandler->HandleVirtualcamStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPED);
|
|
||||||
break;
|
|
||||||
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_SAVED:
|
|
||||||
eventHandler->HandleReplayBufferSaved();
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
// Before ready update to allow event to broadcast
|
||||||
|
eventHandler->HandleCurrentSceneCollectionChanging();
|
||||||
|
eventHandler->_obsReady = false;
|
||||||
|
if (eventHandler->_obsReadyCallback)
|
||||||
|
eventHandler->_obsReadyCallback(false);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_SCENE_COLLECTION_CHANGED: {
|
||||||
|
obs_frontend_source_list transitions = {};
|
||||||
|
obs_frontend_get_transitions(&transitions);
|
||||||
|
for (size_t i = 0; i < transitions.sources.num; i++) {
|
||||||
|
obs_source_t *transition = transitions.sources.array[i];
|
||||||
|
eventHandler->ConnectSourceSignals(transition);
|
||||||
|
}
|
||||||
|
obs_frontend_source_list_free(&transitions);
|
||||||
|
}
|
||||||
|
eventHandler->_obsReady = true;
|
||||||
|
if (eventHandler->_obsReadyCallback)
|
||||||
|
eventHandler->_obsReadyCallback(true);
|
||||||
|
eventHandler->HandleCurrentSceneCollectionChanged();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_SCENE_COLLECTION_LIST_CHANGED:
|
||||||
|
eventHandler->HandleSceneCollectionListChanged();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_PROFILE_CHANGING:
|
||||||
|
eventHandler->HandleCurrentProfileChanging();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_PROFILE_CHANGED:
|
||||||
|
eventHandler->HandleCurrentProfileChanged();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_PROFILE_LIST_CHANGED:
|
||||||
|
eventHandler->HandleProfileListChanged();
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Scenes
|
||||||
|
case OBS_FRONTEND_EVENT_SCENE_CHANGED:
|
||||||
|
eventHandler->HandleCurrentProgramSceneChanged();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED:
|
||||||
|
eventHandler->HandleCurrentPreviewSceneChanged();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_SCENE_LIST_CHANGED:
|
||||||
|
eventHandler->HandleSceneListChanged();
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Transitions
|
||||||
|
case OBS_FRONTEND_EVENT_TRANSITION_CHANGED:
|
||||||
|
eventHandler->HandleCurrentSceneTransitionChanged();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_TRANSITION_LIST_CHANGED: {
|
||||||
|
obs_frontend_source_list transitions = {};
|
||||||
|
obs_frontend_get_transitions(&transitions);
|
||||||
|
for (size_t i = 0; i < transitions.sources.num; i++) {
|
||||||
|
obs_source_t *transition = transitions.sources.array[i];
|
||||||
|
eventHandler->ConnectSourceSignals(transition);
|
||||||
|
}
|
||||||
|
obs_frontend_source_list_free(&transitions);
|
||||||
|
} break;
|
||||||
|
case OBS_FRONTEND_EVENT_TRANSITION_DURATION_CHANGED:
|
||||||
|
eventHandler->HandleCurrentSceneTransitionDurationChanged();
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Outputs
|
||||||
|
case OBS_FRONTEND_EVENT_STREAMING_STARTING:
|
||||||
|
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_STARTING);
|
||||||
|
{
|
||||||
|
// Connect signals for stream output reconnects (hacky)
|
||||||
|
OBSOutputAutoRelease streamOutput = obs_frontend_get_streaming_output();
|
||||||
|
if (streamOutput) {
|
||||||
|
signal_handler_t *sh = obs_output_get_signal_handler(streamOutput);
|
||||||
|
signal_handler_connect(sh, "reconnect", StreamOutputReconnectHandler, private_data);
|
||||||
|
signal_handler_connect(sh, "reconnect_success", StreamOutputReconnectSuccessHandler, private_data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_STREAMING_STARTED:
|
||||||
|
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_STARTED);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_STREAMING_STOPPING:
|
||||||
|
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPING);
|
||||||
|
{
|
||||||
|
// Disconnect signals for stream output reconnects
|
||||||
|
OBSOutputAutoRelease streamOutput = obs_frontend_get_streaming_output();
|
||||||
|
if (streamOutput) {
|
||||||
|
signal_handler_t *sh = obs_output_get_signal_handler(streamOutput);
|
||||||
|
signal_handler_disconnect(sh, "reconnect", StreamOutputReconnectHandler, private_data);
|
||||||
|
signal_handler_disconnect(sh, "reconnect_success", StreamOutputReconnectSuccessHandler,
|
||||||
|
private_data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_STREAMING_STOPPED:
|
||||||
|
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPED);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_RECORDING_STARTING:
|
||||||
|
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_STARTING);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_RECORDING_STARTED:
|
||||||
|
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_STARTED);
|
||||||
|
{
|
||||||
|
OBSOutputAutoRelease recordOutput = obs_frontend_get_recording_output();
|
||||||
|
if (recordOutput) {
|
||||||
|
signal_handler_t *sh = obs_output_get_signal_handler(recordOutput);
|
||||||
|
eventHandler->recordFileChangedSignal.Connect(sh, "file_changed", HandleRecordFileChanged,
|
||||||
|
private_data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_RECORDING_STOPPING:
|
||||||
|
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPING);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_RECORDING_STOPPED:
|
||||||
|
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPED);
|
||||||
|
eventHandler->recordFileChangedSignal.Disconnect();
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_RECORDING_PAUSED:
|
||||||
|
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_PAUSED);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_RECORDING_UNPAUSED:
|
||||||
|
eventHandler->HandleRecordStateChanged(OBS_WEBSOCKET_OUTPUT_RESUMED);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTING:
|
||||||
|
eventHandler->HandleReplayBufferStateChanged(OBS_WEBSOCKET_OUTPUT_STARTING);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_STARTED:
|
||||||
|
eventHandler->HandleReplayBufferStateChanged(OBS_WEBSOCKET_OUTPUT_STARTED);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_STOPPING:
|
||||||
|
eventHandler->HandleReplayBufferStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPING);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_STOPPED:
|
||||||
|
eventHandler->HandleReplayBufferStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPED);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_VIRTUALCAM_STARTED:
|
||||||
|
eventHandler->HandleVirtualcamStateChanged(OBS_WEBSOCKET_OUTPUT_STARTED);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_VIRTUALCAM_STOPPED:
|
||||||
|
eventHandler->HandleVirtualcamStateChanged(OBS_WEBSOCKET_OUTPUT_STOPPED);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_REPLAY_BUFFER_SAVED:
|
||||||
|
eventHandler->HandleReplayBufferSaved();
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Ui
|
||||||
|
case OBS_FRONTEND_EVENT_STUDIO_MODE_ENABLED:
|
||||||
|
eventHandler->HandleStudioModeStateChanged(true);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_STUDIO_MODE_DISABLED:
|
||||||
|
eventHandler->HandleStudioModeStateChanged(false);
|
||||||
|
break;
|
||||||
|
case OBS_FRONTEND_EVENT_SCREENSHOT_TAKEN:
|
||||||
|
eventHandler->HandleScreenshotSaved();
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void EventHandler::FrontendFinishedLoadingMultiHandler()
|
||||||
|
{
|
||||||
|
blog_debug(
|
||||||
|
"[EventHandler::FrontendFinishedLoadingMultiHandler] OBS has finished loading. Connecting final handlers and enabling events...");
|
||||||
|
|
||||||
|
// Enumerate all scene transitions and connect each one
|
||||||
|
{
|
||||||
|
obs_frontend_source_list transitions = {};
|
||||||
|
obs_frontend_get_transitions(&transitions);
|
||||||
|
for (size_t i = 0; i < transitions.sources.num; i++) {
|
||||||
|
obs_source_t *transition = transitions.sources.array[i];
|
||||||
|
ConnectSourceSignals(transition);
|
||||||
|
}
|
||||||
|
obs_frontend_source_list_free(&transitions);
|
||||||
|
}
|
||||||
|
|
||||||
|
_obsReady = true;
|
||||||
|
if (_obsReadyCallback)
|
||||||
|
_obsReadyCallback(true);
|
||||||
|
|
||||||
|
blog_debug("[EventHandler::FrontendFinishedLoadingMultiHandler] Finished.");
|
||||||
|
}
|
||||||
|
|
||||||
|
void EventHandler::FrontendExitMultiHandler()
|
||||||
|
{
|
||||||
|
blog_debug("[EventHandler::FrontendExitMultiHandler] OBS is unloading. Disabling events...");
|
||||||
|
|
||||||
|
HandleExitStarted();
|
||||||
|
|
||||||
|
// Disconnect source signals and disable events when OBS starts unloading (to reduce extra logging).
|
||||||
|
_obsReady = false;
|
||||||
|
if (_obsReadyCallback)
|
||||||
|
_obsReadyCallback(false);
|
||||||
|
|
||||||
|
// Enumerate all scene transitions and disconnect each one
|
||||||
|
{
|
||||||
|
obs_frontend_source_list transitions = {};
|
||||||
|
obs_frontend_get_transitions(&transitions);
|
||||||
|
for (size_t i = 0; i < transitions.sources.num; i++) {
|
||||||
|
obs_source_t *transition = transitions.sources.array[i];
|
||||||
|
DisconnectSourceSignals(transition);
|
||||||
|
}
|
||||||
|
obs_frontend_source_list_free(&transitions);
|
||||||
|
}
|
||||||
|
|
||||||
|
blog_debug("[EventHandler::FrontendExitMultiHandler] Finished.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only called for creation of a public source
|
// Only called for creation of a public source
|
||||||
void EventHandler::SourceCreatedMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceCreatedMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
// Don't react to signals until OBS has finished loading
|
|
||||||
if (!eventHandler->_obsLoaded.load())
|
|
||||||
return;
|
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -500,21 +489,22 @@ void EventHandler::SourceCreatedMultiHandler(void *param, calldata_t *data)
|
|||||||
eventHandler->ConnectSourceSignals(source);
|
eventHandler->ConnectSourceSignals(source);
|
||||||
|
|
||||||
switch (obs_source_get_type(source)) {
|
switch (obs_source_get_type(source)) {
|
||||||
case OBS_SOURCE_TYPE_INPUT:
|
case OBS_SOURCE_TYPE_INPUT:
|
||||||
eventHandler->HandleInputCreated(source);
|
eventHandler->HandleInputCreated(source);
|
||||||
break;
|
break;
|
||||||
case OBS_SOURCE_TYPE_SCENE:
|
case OBS_SOURCE_TYPE_SCENE:
|
||||||
eventHandler->HandleSceneCreated(source);
|
eventHandler->HandleSceneCreated(source);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only called for destruction of a public source
|
// Only called for destruction of a public sourcs
|
||||||
|
// Used as a fallback if an input/scene is not explicitly removed
|
||||||
void EventHandler::SourceDestroyedMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceDestroyedMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
// We can't use any smart types here because releasing the source will cause infinite recursion
|
// We can't use any smart types here because releasing the source will cause infinite recursion
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
@ -524,51 +514,47 @@ void EventHandler::SourceDestroyedMultiHandler(void *param, calldata_t *data)
|
|||||||
// Disconnect all signals from the source
|
// Disconnect all signals from the source
|
||||||
eventHandler->DisconnectSourceSignals(source);
|
eventHandler->DisconnectSourceSignals(source);
|
||||||
|
|
||||||
// Don't react to signals if OBS is unloading
|
|
||||||
if (!eventHandler->_obsLoaded.load())
|
|
||||||
return;
|
|
||||||
|
|
||||||
switch (obs_source_get_type(source)) {
|
switch (obs_source_get_type(source)) {
|
||||||
case OBS_SOURCE_TYPE_INPUT:
|
case OBS_SOURCE_TYPE_INPUT:
|
||||||
// We have to call `InputRemoved` with source_destroy because source_removed is not called when an input's last scene item is removed
|
// Only emit removed if the input has not already been removed. This is the case when removing the last scene item of an input.
|
||||||
|
if (!obs_source_removed(source))
|
||||||
eventHandler->HandleInputRemoved(source);
|
eventHandler->HandleInputRemoved(source);
|
||||||
break;
|
break;
|
||||||
case OBS_SOURCE_TYPE_SCENE:
|
case OBS_SOURCE_TYPE_SCENE:
|
||||||
break;
|
// Only emit removed if the scene has not already been removed.
|
||||||
default:
|
if (!obs_source_removed(source))
|
||||||
break;
|
eventHandler->HandleSceneRemoved(source);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We prefer remove signals over destroy signals because they are more time-accurate.
|
||||||
|
// For example, if an input is "removed" but there is a dangling ref, you still want to know that it shouldn't exist, but it's not guaranteed to be destroyed.
|
||||||
void EventHandler::SourceRemovedMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceRemovedMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
if (!eventHandler->_obsLoaded.load())
|
|
||||||
return;
|
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
switch (obs_source_get_type(source)) {
|
switch (obs_source_get_type(source)) {
|
||||||
case OBS_SOURCE_TYPE_INPUT:
|
case OBS_SOURCE_TYPE_INPUT:
|
||||||
break;
|
eventHandler->HandleInputRemoved(source);
|
||||||
case OBS_SOURCE_TYPE_SCENE:
|
break;
|
||||||
// Scenes emit the `removed` signal when they are removed from OBS, as expected
|
case OBS_SOURCE_TYPE_SCENE:
|
||||||
eventHandler->HandleSceneRemoved(source);
|
eventHandler->HandleSceneRemoved(source);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventHandler::SourceRenamedMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceRenamedMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
if (!eventHandler->_obsLoaded.load())
|
|
||||||
return;
|
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -580,15 +566,49 @@ void EventHandler::SourceRenamedMultiHandler(void *param, calldata_t *data)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
switch (obs_source_get_type(source)) {
|
switch (obs_source_get_type(source)) {
|
||||||
case OBS_SOURCE_TYPE_INPUT:
|
case OBS_SOURCE_TYPE_INPUT:
|
||||||
eventHandler->HandleInputNameChanged(source, oldSourceName, sourceName);
|
eventHandler->HandleInputNameChanged(source, oldSourceName, sourceName);
|
||||||
break;
|
break;
|
||||||
case OBS_SOURCE_TYPE_TRANSITION:
|
case OBS_SOURCE_TYPE_TRANSITION:
|
||||||
break;
|
break;
|
||||||
case OBS_SOURCE_TYPE_SCENE:
|
case OBS_SOURCE_TYPE_SCENE:
|
||||||
eventHandler->HandleSceneNameChanged(source, oldSourceName, sourceName);
|
eventHandler->HandleSceneNameChanged(source, oldSourceName, sourceName);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EventHandler::SourceUpdatedMultiHandler(void *param, calldata_t *data)
|
||||||
|
{
|
||||||
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
|
if (!source)
|
||||||
|
return;
|
||||||
|
|
||||||
|
switch (obs_source_get_type(source)) {
|
||||||
|
case OBS_SOURCE_TYPE_INPUT:
|
||||||
|
eventHandler->HandleInputSettingsChanged(source);
|
||||||
|
break;
|
||||||
|
case OBS_SOURCE_TYPE_FILTER:
|
||||||
|
eventHandler->HandleSourceFilterSettingsChanged(source);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void EventHandler::StreamOutputReconnectHandler(void *param, calldata_t *)
|
||||||
|
{
|
||||||
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
|
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_RECONNECTING);
|
||||||
|
}
|
||||||
|
|
||||||
|
void EventHandler::StreamOutputReconnectSuccessHandler(void *param, calldata_t *)
|
||||||
|
{
|
||||||
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
|
eventHandler->HandleStreamStateChanged(OBS_WEBSOCKET_OUTPUT_RECONNECTED);
|
||||||
|
}
|
||||||
|
@ -27,125 +27,166 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
#include "../obs-websocket.h"
|
#include "../obs-websocket.h"
|
||||||
#include "../utils/Obs.h"
|
#include "../utils/Obs.h"
|
||||||
#include "../utils/Obs_VolumeMeter.h"
|
#include "../utils/Obs_VolumeMeter.h"
|
||||||
#include "../plugin-macros.generated.h"
|
#include "plugin-macros.generated.h"
|
||||||
|
|
||||||
class EventHandler
|
class EventHandler {
|
||||||
{
|
public:
|
||||||
public:
|
EventHandler();
|
||||||
EventHandler();
|
~EventHandler();
|
||||||
~EventHandler();
|
|
||||||
|
|
||||||
typedef std::function<void(uint64_t, std::string, json, uint8_t)> BroadcastCallback;
|
void ProcessSubscriptionChange(bool type, uint64_t eventSubscriptions);
|
||||||
void SetBroadcastCallback(BroadcastCallback cb);
|
|
||||||
typedef std::function<void()> ObsLoadedCallback;
|
|
||||||
void SetObsLoadedCallback(ObsLoadedCallback cb);
|
|
||||||
|
|
||||||
void ProcessSubscription(uint64_t eventSubscriptions);
|
// Callback when an event fires
|
||||||
void ProcessUnsubscription(uint64_t eventSubscriptions);
|
typedef std::function<void(uint64_t, std::string, json, uint8_t)>
|
||||||
|
EventCallback; // uint64_t requiredIntent, std::string eventType, json eventData, uint8_t rpcVersion
|
||||||
|
inline void SetEventCallback(EventCallback cb) { _eventCallback = cb; }
|
||||||
|
|
||||||
private:
|
// Callback when OBS becomes ready or non-ready
|
||||||
BroadcastCallback _broadcastCallback;
|
typedef std::function<void(bool)> ObsReadyCallback; // bool ready
|
||||||
ObsLoadedCallback _obsLoadedCallback;
|
inline void SetObsReadyCallback(ObsReadyCallback cb) { _obsReadyCallback = cb; }
|
||||||
|
|
||||||
std::atomic<bool> _obsLoaded;
|
private:
|
||||||
|
EventCallback _eventCallback;
|
||||||
|
ObsReadyCallback _obsReadyCallback;
|
||||||
|
|
||||||
std::unique_ptr<Utils::Obs::VolumeMeter::Handler> _inputVolumeMetersHandler;
|
std::atomic<bool> _obsReady = false;
|
||||||
std::atomic<uint64_t> _inputVolumeMetersRef;
|
|
||||||
std::atomic<uint64_t> _inputActiveStateChangedRef;
|
|
||||||
std::atomic<uint64_t> _inputShowStateChangedRef;
|
|
||||||
std::atomic<uint64_t> _sceneItemTransformChangedRef;
|
|
||||||
|
|
||||||
void ConnectSourceSignals(obs_source_t *source);
|
std::vector<OBSSignal> coreSignals;
|
||||||
void DisconnectSourceSignals(obs_source_t *source);
|
OBSSignal recordFileChangedSignal;
|
||||||
|
|
||||||
void BroadcastEvent(uint64_t requiredIntent, std::string eventType, json eventData = nullptr, uint8_t rpcVersion = 0);
|
std::unique_ptr<Utils::Obs::VolumeMeter::Handler> _inputVolumeMetersHandler;
|
||||||
|
std::atomic<uint64_t> _inputVolumeMetersRef = 0;
|
||||||
|
std::atomic<uint64_t> _inputActiveStateChangedRef = 0;
|
||||||
|
std::atomic<uint64_t> _inputShowStateChangedRef = 0;
|
||||||
|
std::atomic<uint64_t> _sceneItemTransformChangedRef = 0;
|
||||||
|
|
||||||
// Signal handler: frontend
|
void ConnectSourceSignals(obs_source_t *source);
|
||||||
static void OnFrontendEvent(enum obs_frontend_event event, void *private_data);
|
void DisconnectSourceSignals(obs_source_t *source);
|
||||||
|
|
||||||
// Signal handler: libobs
|
void BroadcastEvent(uint64_t requiredIntent, std::string eventType, json eventData = nullptr, uint8_t rpcVersion = 0);
|
||||||
static void SourceCreatedMultiHandler(void *param, calldata_t *data);
|
|
||||||
static void SourceDestroyedMultiHandler(void *param, calldata_t *data);
|
|
||||||
static void SourceRemovedMultiHandler(void *param, calldata_t *data);
|
|
||||||
|
|
||||||
// Signal handler: source
|
// Signal handler: frontend
|
||||||
static void SourceRenamedMultiHandler(void *param, calldata_t *data);
|
static void OnFrontendEvent(enum obs_frontend_event event, void *private_data);
|
||||||
static void SourceMediaPauseMultiHandler(void *param, calldata_t *data);
|
void FrontendFinishedLoadingMultiHandler();
|
||||||
static void SourceMediaPlayMultiHandler(void *param, calldata_t *data);
|
void FrontendExitMultiHandler();
|
||||||
static void SourceMediaRestartMultiHandler(void *param, calldata_t *data);
|
|
||||||
static void SourceMediaStopMultiHandler(void *param, calldata_t *data);
|
|
||||||
static void SourceMediaNextMultiHandler(void *param, calldata_t *data);
|
|
||||||
static void SourceMediaPreviousMultiHandler(void *param, calldata_t *data);
|
|
||||||
|
|
||||||
|
// Signal handler: libobs
|
||||||
|
static void SourceCreatedMultiHandler(void *param, calldata_t *data);
|
||||||
|
static void SourceDestroyedMultiHandler(void *param, calldata_t *data);
|
||||||
|
static void SourceRemovedMultiHandler(void *param, calldata_t *data);
|
||||||
|
static void SourceRenamedMultiHandler(void *param, calldata_t *data);
|
||||||
|
static void SourceUpdatedMultiHandler(void *param, calldata_t *data);
|
||||||
|
|
||||||
// General
|
// Signal handler: media sources
|
||||||
void HandleExitStarted();
|
static void SourceMediaPauseMultiHandler(void *param, calldata_t *data);
|
||||||
void HandleStudioModeStateChanged(bool enabled);
|
static void SourceMediaPlayMultiHandler(void *param, calldata_t *data);
|
||||||
|
static void SourceMediaRestartMultiHandler(void *param, calldata_t *data);
|
||||||
|
static void SourceMediaStopMultiHandler(void *param, calldata_t *data);
|
||||||
|
static void SourceMediaNextMultiHandler(void *param, calldata_t *data);
|
||||||
|
static void SourceMediaPreviousMultiHandler(void *param, calldata_t *data);
|
||||||
|
|
||||||
// Config
|
// Signal handler: output
|
||||||
void HandleCurrentSceneCollectionChanging();
|
static void StreamOutputReconnectHandler(void *param, calldata_t *data);
|
||||||
void HandleCurrentSceneCollectionChanged();
|
static void StreamOutputReconnectSuccessHandler(void *param, calldata_t *data);
|
||||||
void HandleSceneCollectionListChanged();
|
|
||||||
void HandleCurrentProfileChanging();
|
|
||||||
void HandleCurrentProfileChanged();
|
|
||||||
void HandleProfileListChanged();
|
|
||||||
|
|
||||||
// Scenes
|
// General
|
||||||
void HandleSceneCreated(obs_source_t *source);
|
void HandleExitStarted();
|
||||||
void HandleSceneRemoved(obs_source_t *source);
|
|
||||||
void HandleSceneNameChanged(obs_source_t *source, std::string oldSceneName, std::string sceneName);
|
|
||||||
void HandleCurrentProgramSceneChanged();
|
|
||||||
void HandleCurrentPreviewSceneChanged();
|
|
||||||
void HandleSceneListChanged();
|
|
||||||
|
|
||||||
// Inputs
|
// Config
|
||||||
void HandleInputCreated(obs_source_t *source);
|
void HandleCurrentSceneCollectionChanging();
|
||||||
void HandleInputRemoved(obs_source_t *source);
|
void HandleCurrentSceneCollectionChanged();
|
||||||
void HandleInputNameChanged(obs_source_t *source, std::string oldInputName, std::string inputName);
|
void HandleSceneCollectionListChanged();
|
||||||
void HandleInputVolumeMeters(std::vector<json> inputs); // AudioMeter::Handler callback
|
void HandleCurrentProfileChanging();
|
||||||
static void HandleInputActiveStateChanged(void *param, calldata_t *data); // Direct callback
|
void HandleCurrentProfileChanged();
|
||||||
static void HandleInputShowStateChanged(void *param, calldata_t *data); // Direct callback
|
void HandleProfileListChanged();
|
||||||
static void HandleInputMuteStateChanged(void *param, calldata_t *data); // Direct callback
|
|
||||||
static void HandleInputVolumeChanged(void *param, calldata_t *data); // Direct callback
|
|
||||||
static void HandleInputAudioBalanceChanged(void *param, calldata_t *data); // Direct callback
|
|
||||||
static void HandleInputAudioSyncOffsetChanged(void *param, calldata_t *data); // Direct callback
|
|
||||||
static void HandleInputAudioTracksChanged(void *param, calldata_t *data); // Direct callback
|
|
||||||
static void HandleInputAudioMonitorTypeChanged(void *param, calldata_t *data); // Direct callback
|
|
||||||
|
|
||||||
// Transitions
|
// Scenes
|
||||||
void HandleCurrentSceneTransitionChanged();
|
void HandleSceneCreated(obs_source_t *source);
|
||||||
void HandleCurrentSceneTransitionDurationChanged();
|
void HandleSceneRemoved(obs_source_t *source);
|
||||||
static void HandleSceneTransitionStarted(void *param, calldata_t *data); // Direct callback
|
void HandleSceneNameChanged(obs_source_t *source, std::string oldSceneName, std::string sceneName);
|
||||||
static void HandleSceneTransitionEnded(void *param, calldata_t *data); // Direct callback
|
void HandleCurrentProgramSceneChanged();
|
||||||
static void HandleSceneTransitionVideoEnded(void *param, calldata_t *data); // Direct callback
|
void HandleCurrentPreviewSceneChanged();
|
||||||
|
void HandleSceneListChanged();
|
||||||
|
|
||||||
// Filters
|
// Inputs
|
||||||
static void FilterAddMultiHandler(void *param, calldata_t *data); // Direct callback
|
void HandleInputCreated(obs_source_t *source);
|
||||||
static void FilterRemoveMultiHandler(void *param, calldata_t *data); // Direct callback
|
void HandleInputRemoved(obs_source_t *source);
|
||||||
static void HandleSourceFilterListReindexed(void *param, calldata_t *data); // Direct callback
|
void HandleInputNameChanged(obs_source_t *source, std::string oldInputName, std::string inputName);
|
||||||
void HandleSourceFilterCreated(obs_source_t *source, obs_source_t *filter);
|
void HandleInputSettingsChanged(obs_source_t *source);
|
||||||
void HandleSourceFilterRemoved(obs_source_t *source, obs_source_t *filter);
|
static void HandleInputActiveStateChanged(void *param,
|
||||||
static void HandleSourceFilterNameChanged(void *param, calldata_t *data); // Direct callback
|
calldata_t *data); // Direct callback
|
||||||
static void HandleSourceFilterEnableStateChanged(void *param, calldata_t *data); // Direct callback
|
static void HandleInputShowStateChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleInputMuteStateChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleInputVolumeChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleInputAudioBalanceChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleInputAudioSyncOffsetChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleInputAudioTracksChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleInputAudioMonitorTypeChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
void HandleInputVolumeMeters(std::vector<json> inputs); // AudioMeter::Handler callback
|
||||||
|
|
||||||
// Outputs
|
// Transitions
|
||||||
void HandleStreamStateChanged(ObsOutputState state);
|
void HandleCurrentSceneTransitionChanged();
|
||||||
void HandleRecordStateChanged(ObsOutputState state);
|
void HandleCurrentSceneTransitionDurationChanged();
|
||||||
void HandleReplayBufferStateChanged(ObsOutputState state);
|
static void HandleSceneTransitionStarted(void *param,
|
||||||
void HandleVirtualcamStateChanged(ObsOutputState state);
|
calldata_t *data); // Direct callback
|
||||||
void HandleReplayBufferSaved();
|
static void HandleSceneTransitionEnded(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleSceneTransitionVideoEnded(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
|
||||||
// Scene Items
|
// Filters
|
||||||
static void HandleSceneItemCreated(void *param, calldata_t *data); // Direct callback
|
static void FilterAddMultiHandler(void *param,
|
||||||
static void HandleSceneItemRemoved(void *param, calldata_t *data); // Direct callback
|
calldata_t *data); // Direct callback
|
||||||
static void HandleSceneItemListReindexed(void *param, calldata_t *data); // Direct callback
|
static void FilterRemoveMultiHandler(void *param,
|
||||||
static void HandleSceneItemEnableStateChanged(void *param, calldata_t *data); // Direct callback
|
calldata_t *data); // Direct callback
|
||||||
static void HandleSceneItemLockStateChanged(void *param, calldata_t *data); // Direct callback
|
static void HandleSourceFilterListReindexed(void *param,
|
||||||
static void HandleSceneItemSelected(void *param, calldata_t *data); // Direct callback
|
calldata_t *data); // Direct callback
|
||||||
static void HandleSceneItemTransformChanged(void *param, calldata_t *data); // Direct callback
|
void HandleSourceFilterCreated(obs_source_t *source, obs_source_t *filter);
|
||||||
|
void HandleSourceFilterRemoved(obs_source_t *source, obs_source_t *filter);
|
||||||
|
static void HandleSourceFilterNameChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
void HandleSourceFilterSettingsChanged(obs_source_t *source);
|
||||||
|
static void HandleSourceFilterEnableStateChanged(void *param, calldata_t *data); // Direct callback
|
||||||
|
|
||||||
// Media Inputs
|
// Outputs
|
||||||
static void HandleMediaInputPlaybackStarted(void *param, calldata_t *data); // Direct callback
|
void HandleStreamStateChanged(ObsOutputState state);
|
||||||
static void HandleMediaInputPlaybackEnded(void *param, calldata_t *data); // Direct callback
|
void HandleRecordStateChanged(ObsOutputState state);
|
||||||
void HandleMediaInputActionTriggered(obs_source_t *source, ObsMediaInputAction action);
|
static void HandleRecordFileChanged(void *param, calldata_t *data); // Direct callback
|
||||||
|
void HandleReplayBufferStateChanged(ObsOutputState state);
|
||||||
|
void HandleVirtualcamStateChanged(ObsOutputState state);
|
||||||
|
void HandleReplayBufferSaved();
|
||||||
|
|
||||||
|
// Scene Items
|
||||||
|
static void HandleSceneItemCreated(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleSceneItemRemoved(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleSceneItemListReindexed(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleSceneItemEnableStateChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleSceneItemLockStateChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleSceneItemSelected(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleSceneItemTransformChanged(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
|
||||||
|
// Media Inputs
|
||||||
|
static void HandleMediaInputPlaybackStarted(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
static void HandleMediaInputPlaybackEnded(void *param,
|
||||||
|
calldata_t *data); // Direct callback
|
||||||
|
void HandleMediaInputActionTriggered(obs_source_t *source, ObsMediaInputAction action);
|
||||||
|
|
||||||
|
// Ui
|
||||||
|
void HandleStudioModeStateChanged(bool enabled);
|
||||||
|
void HandleScreenshotSaved();
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
|
|
||||||
void EventHandler::FilterAddMultiHandler(void *param, calldata_t *data)
|
void EventHandler::FilterAddMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
obs_source_t *filter = GetCalldataPointer<obs_source_t>(data, "filter");
|
obs_source_t *filter = GetCalldataPointer<obs_source_t>(data, "filter");
|
||||||
@ -36,7 +36,7 @@ void EventHandler::FilterAddMultiHandler(void *param, calldata_t *data)
|
|||||||
|
|
||||||
void EventHandler::FilterRemoveMultiHandler(void *param, calldata_t *data)
|
void EventHandler::FilterRemoveMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
obs_source_t *filter = GetCalldataPointer<obs_source_t>(data, "filter");
|
obs_source_t *filter = GetCalldataPointer<obs_source_t>(data, "filter");
|
||||||
@ -65,7 +65,7 @@ void EventHandler::FilterRemoveMultiHandler(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSourceFilterListReindexed(void *param, calldata_t *data)
|
void EventHandler::HandleSourceFilterListReindexed(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -150,7 +150,7 @@ void EventHandler::HandleSourceFilterRemoved(obs_source_t *source, obs_source_t
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSourceFilterNameChanged(void *param, calldata_t *data)
|
void EventHandler::HandleSourceFilterNameChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *filter = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *filter = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!filter)
|
if (!filter)
|
||||||
@ -163,6 +163,32 @@ void EventHandler::HandleSourceFilterNameChanged(void *param, calldata_t *data)
|
|||||||
eventHandler->BroadcastEvent(EventSubscription::Filters, "SourceFilterNameChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Filters, "SourceFilterNameChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An source filter's settings have changed (been updated).
|
||||||
|
*
|
||||||
|
* @dataField sourceName | String | Name of the source the filter is on
|
||||||
|
* @dataField filterName | String | Name of the filter
|
||||||
|
* @dataField filterSettings | Object | New settings object of the filter
|
||||||
|
*
|
||||||
|
* @eventType SourceFilterSettingsChanged
|
||||||
|
* @eventSubscription Filters
|
||||||
|
* @complexity 3
|
||||||
|
* @rpcVersion -1
|
||||||
|
* @initialVersion 5.4.0
|
||||||
|
* @api events
|
||||||
|
* @category filters
|
||||||
|
*/
|
||||||
|
void EventHandler::HandleSourceFilterSettingsChanged(obs_source_t *source)
|
||||||
|
{
|
||||||
|
OBSDataAutoRelease filterSettings = obs_source_get_settings(source);
|
||||||
|
|
||||||
|
json eventData;
|
||||||
|
eventData["sourceName"] = obs_source_get_name(obs_filter_get_parent(source));
|
||||||
|
eventData["filterName"] = obs_source_get_name(source);
|
||||||
|
eventData["filterSettings"] = Utils::Json::ObsDataToJson(filterSettings);
|
||||||
|
BroadcastEvent(EventSubscription::Filters, "SourceFilterSettingsChanged", eventData);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A source filter's enable state has changed.
|
* A source filter's enable state has changed.
|
||||||
*
|
*
|
||||||
@ -180,7 +206,7 @@ void EventHandler::HandleSourceFilterNameChanged(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSourceFilterEnableStateChanged(void *param, calldata_t *data)
|
void EventHandler::HandleSourceFilterEnableStateChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *filter = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *filter = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!filter)
|
if (!filter)
|
||||||
|
@ -23,6 +23,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
* An input has been created.
|
* An input has been created.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField inputKind | String | The kind of the input
|
* @dataField inputKind | String | The kind of the input
|
||||||
* @dataField unversionedInputKind | String | The unversioned kind of input (aka no `_v2` stuff)
|
* @dataField unversionedInputKind | String | The unversioned kind of input (aka no `_v2` stuff)
|
||||||
* @dataField inputSettings | Object | The settings configured to the input when it was created
|
* @dataField inputSettings | Object | The settings configured to the input when it was created
|
||||||
@ -44,6 +45,7 @@ void EventHandler::HandleInputCreated(obs_source_t *source)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["inputKind"] = inputKind;
|
eventData["inputKind"] = inputKind;
|
||||||
eventData["unversionedInputKind"] = obs_source_get_unversioned_id(source);
|
eventData["unversionedInputKind"] = obs_source_get_unversioned_id(source);
|
||||||
eventData["inputSettings"] = Utils::Json::ObsDataToJson(inputSettings);
|
eventData["inputSettings"] = Utils::Json::ObsDataToJson(inputSettings);
|
||||||
@ -55,6 +57,7 @@ void EventHandler::HandleInputCreated(obs_source_t *source)
|
|||||||
* An input has been removed.
|
* An input has been removed.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
*
|
*
|
||||||
* @eventType InputRemoved
|
* @eventType InputRemoved
|
||||||
* @eventSubscription Inputs
|
* @eventSubscription Inputs
|
||||||
@ -68,12 +71,14 @@ void EventHandler::HandleInputRemoved(obs_source_t *source)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
BroadcastEvent(EventSubscription::Inputs, "InputRemoved", eventData);
|
BroadcastEvent(EventSubscription::Inputs, "InputRemoved", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of an input has changed.
|
* The name of an input has changed.
|
||||||
*
|
*
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField oldInputName | String | Old name of the input
|
* @dataField oldInputName | String | Old name of the input
|
||||||
* @dataField inputName | String | New name of the input
|
* @dataField inputName | String | New name of the input
|
||||||
*
|
*
|
||||||
@ -85,20 +90,50 @@ void EventHandler::HandleInputRemoved(obs_source_t *source)
|
|||||||
* @api events
|
* @api events
|
||||||
* @category inputs
|
* @category inputs
|
||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputNameChanged(obs_source_t *, std::string oldInputName, std::string inputName)
|
void EventHandler::HandleInputNameChanged(obs_source_t *source, std::string oldInputName, std::string inputName)
|
||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["oldInputName"] = oldInputName;
|
eventData["oldInputName"] = oldInputName;
|
||||||
eventData["inputName"] = inputName;
|
eventData["inputName"] = inputName;
|
||||||
BroadcastEvent(EventSubscription::Inputs, "InputNameChanged", eventData);
|
BroadcastEvent(EventSubscription::Inputs, "InputNameChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An input's settings have changed (been updated).
|
||||||
|
*
|
||||||
|
* Note: On some inputs, changing values in the properties dialog will cause an immediate update. Pressing the "Cancel" button will revert the settings, resulting in another event being fired.
|
||||||
|
*
|
||||||
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
|
* @dataField inputSettings | Object | New settings object of the input
|
||||||
|
*
|
||||||
|
* @eventType InputSettingsChanged
|
||||||
|
* @eventSubscription Inputs
|
||||||
|
* @complexity 3
|
||||||
|
* @rpcVersion -1
|
||||||
|
* @initialVersion 5.4.0
|
||||||
|
* @api events
|
||||||
|
* @category inputs
|
||||||
|
*/
|
||||||
|
void EventHandler::HandleInputSettingsChanged(obs_source_t *source)
|
||||||
|
{
|
||||||
|
OBSDataAutoRelease inputSettings = obs_source_get_settings(source);
|
||||||
|
|
||||||
|
json eventData;
|
||||||
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
|
eventData["inputSettings"] = Utils::Json::ObsDataToJson(inputSettings);
|
||||||
|
BroadcastEvent(EventSubscription::Inputs, "InputSettingsChanged", eventData);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An input's active state has changed.
|
* An input's active state has changed.
|
||||||
*
|
*
|
||||||
* When an input is active, it means it's being shown by the program feed.
|
* When an input is active, it means it's being shown by the program feed.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField videoActive | Boolean | Whether the input is active
|
* @dataField videoActive | Boolean | Whether the input is active
|
||||||
*
|
*
|
||||||
* @eventType InputActiveStateChanged
|
* @eventType InputActiveStateChanged
|
||||||
@ -111,7 +146,7 @@ void EventHandler::HandleInputNameChanged(obs_source_t *, std::string oldInputNa
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputActiveStateChanged(void *param, calldata_t *data)
|
void EventHandler::HandleInputActiveStateChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
if (!eventHandler->_inputActiveStateChangedRef.load())
|
if (!eventHandler->_inputActiveStateChangedRef.load())
|
||||||
return;
|
return;
|
||||||
@ -125,6 +160,7 @@ void EventHandler::HandleInputActiveStateChanged(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["videoActive"] = obs_source_active(source);
|
eventData["videoActive"] = obs_source_active(source);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::InputActiveStateChanged, "InputActiveStateChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::InputActiveStateChanged, "InputActiveStateChanged", eventData);
|
||||||
}
|
}
|
||||||
@ -135,6 +171,7 @@ void EventHandler::HandleInputActiveStateChanged(void *param, calldata_t *data)
|
|||||||
* When an input is showing, it means it's being shown by the preview or a dialog.
|
* When an input is showing, it means it's being shown by the preview or a dialog.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField videoShowing | Boolean | Whether the input is showing
|
* @dataField videoShowing | Boolean | Whether the input is showing
|
||||||
*
|
*
|
||||||
* @eventType InputShowStateChanged
|
* @eventType InputShowStateChanged
|
||||||
@ -147,7 +184,7 @@ void EventHandler::HandleInputActiveStateChanged(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputShowStateChanged(void *param, calldata_t *data)
|
void EventHandler::HandleInputShowStateChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
if (!eventHandler->_inputShowStateChangedRef.load())
|
if (!eventHandler->_inputShowStateChangedRef.load())
|
||||||
return;
|
return;
|
||||||
@ -161,6 +198,7 @@ void EventHandler::HandleInputShowStateChanged(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["videoShowing"] = obs_source_showing(source);
|
eventData["videoShowing"] = obs_source_showing(source);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::InputShowStateChanged, "InputShowStateChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::InputShowStateChanged, "InputShowStateChanged", eventData);
|
||||||
}
|
}
|
||||||
@ -169,6 +207,7 @@ void EventHandler::HandleInputShowStateChanged(void *param, calldata_t *data)
|
|||||||
* An input's mute state has changed.
|
* An input's mute state has changed.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField inputMuted | Boolean | Whether the input is muted
|
* @dataField inputMuted | Boolean | Whether the input is muted
|
||||||
*
|
*
|
||||||
* @eventType InputMuteStateChanged
|
* @eventType InputMuteStateChanged
|
||||||
@ -181,7 +220,7 @@ void EventHandler::HandleInputShowStateChanged(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputMuteStateChanged(void *param, calldata_t *data)
|
void EventHandler::HandleInputMuteStateChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -192,6 +231,7 @@ void EventHandler::HandleInputMuteStateChanged(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["inputMuted"] = obs_source_muted(source);
|
eventData["inputMuted"] = obs_source_muted(source);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputMuteStateChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputMuteStateChanged", eventData);
|
||||||
}
|
}
|
||||||
@ -200,7 +240,8 @@ void EventHandler::HandleInputMuteStateChanged(void *param, calldata_t *data)
|
|||||||
* An input's volume level has changed.
|
* An input's volume level has changed.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
* @dataField inputVolumeMul | Number | New volume level in multimap
|
* @dataField inputUuid | String | UUID of the input
|
||||||
|
* @dataField inputVolumeMul | Number | New volume level multiplier
|
||||||
* @dataField inputVolumeDb | Number | New volume level in dB
|
* @dataField inputVolumeDb | Number | New volume level in dB
|
||||||
*
|
*
|
||||||
* @eventType InputVolumeChanged
|
* @eventType InputVolumeChanged
|
||||||
@ -213,7 +254,7 @@ void EventHandler::HandleInputMuteStateChanged(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputVolumeChanged(void *param, calldata_t *data)
|
void EventHandler::HandleInputVolumeChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -225,12 +266,13 @@ void EventHandler::HandleInputVolumeChanged(void *param, calldata_t *data)
|
|||||||
// Volume must be grabbed from the calldata. Running obs_source_get_volume() will return the previous value.
|
// Volume must be grabbed from the calldata. Running obs_source_get_volume() will return the previous value.
|
||||||
double inputVolumeMul = calldata_float(data, "volume");
|
double inputVolumeMul = calldata_float(data, "volume");
|
||||||
|
|
||||||
double inputVolumeDb = obs_mul_to_db(inputVolumeMul);
|
double inputVolumeDb = obs_mul_to_db((float)inputVolumeMul);
|
||||||
if (inputVolumeDb == -INFINITY)
|
if (inputVolumeDb == -INFINITY)
|
||||||
inputVolumeDb = -100;
|
inputVolumeDb = -100;
|
||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["inputVolumeMul"] = inputVolumeMul;
|
eventData["inputVolumeMul"] = inputVolumeMul;
|
||||||
eventData["inputVolumeDb"] = inputVolumeDb;
|
eventData["inputVolumeDb"] = inputVolumeDb;
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputVolumeChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputVolumeChanged", eventData);
|
||||||
@ -239,7 +281,8 @@ void EventHandler::HandleInputVolumeChanged(void *param, calldata_t *data)
|
|||||||
/**
|
/**
|
||||||
* The audio balance value of an input has changed.
|
* The audio balance value of an input has changed.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the affected input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField inputAudioBalance | Number | New audio balance value of the input
|
* @dataField inputAudioBalance | Number | New audio balance value of the input
|
||||||
*
|
*
|
||||||
* @eventType InputAudioBalanceChanged
|
* @eventType InputAudioBalanceChanged
|
||||||
@ -252,7 +295,7 @@ void EventHandler::HandleInputVolumeChanged(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputAudioBalanceChanged(void *param, calldata_t *data)
|
void EventHandler::HandleInputAudioBalanceChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -265,6 +308,7 @@ void EventHandler::HandleInputAudioBalanceChanged(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["inputAudioBalance"] = inputAudioBalance;
|
eventData["inputAudioBalance"] = inputAudioBalance;
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputAudioBalanceChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputAudioBalanceChanged", eventData);
|
||||||
}
|
}
|
||||||
@ -273,6 +317,7 @@ void EventHandler::HandleInputAudioBalanceChanged(void *param, calldata_t *data)
|
|||||||
* The sync offset of an input has changed.
|
* The sync offset of an input has changed.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField inputAudioSyncOffset | Number | New sync offset in milliseconds
|
* @dataField inputAudioSyncOffset | Number | New sync offset in milliseconds
|
||||||
*
|
*
|
||||||
* @eventType InputAudioSyncOffsetChanged
|
* @eventType InputAudioSyncOffsetChanged
|
||||||
@ -285,7 +330,7 @@ void EventHandler::HandleInputAudioBalanceChanged(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputAudioSyncOffsetChanged(void *param, calldata_t *data)
|
void EventHandler::HandleInputAudioSyncOffsetChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -298,6 +343,7 @@ void EventHandler::HandleInputAudioSyncOffsetChanged(void *param, calldata_t *da
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["inputAudioSyncOffset"] = inputAudioSyncOffset / 1000000;
|
eventData["inputAudioSyncOffset"] = inputAudioSyncOffset / 1000000;
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputAudioSyncOffsetChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputAudioSyncOffsetChanged", eventData);
|
||||||
}
|
}
|
||||||
@ -306,6 +352,7 @@ void EventHandler::HandleInputAudioSyncOffsetChanged(void *param, calldata_t *da
|
|||||||
* The audio tracks of an input have changed.
|
* The audio tracks of an input have changed.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField inputAudioTracks | Object | Object of audio tracks along with their associated enable states
|
* @dataField inputAudioTracks | Object | Object of audio tracks along with their associated enable states
|
||||||
*
|
*
|
||||||
* @eventType InputAudioTracksChanged
|
* @eventType InputAudioTracksChanged
|
||||||
@ -318,7 +365,7 @@ void EventHandler::HandleInputAudioSyncOffsetChanged(void *param, calldata_t *da
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputAudioTracksChanged(void *param, calldata_t *data)
|
void EventHandler::HandleInputAudioTracksChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -336,6 +383,7 @@ void EventHandler::HandleInputAudioTracksChanged(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["inputAudioTracks"] = inputAudioTracks;
|
eventData["inputAudioTracks"] = inputAudioTracks;
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputAudioTracksChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputAudioTracksChanged", eventData);
|
||||||
}
|
}
|
||||||
@ -344,11 +392,13 @@ void EventHandler::HandleInputAudioTracksChanged(void *param, calldata_t *data)
|
|||||||
* The monitor type of an input has changed.
|
* The monitor type of an input has changed.
|
||||||
*
|
*
|
||||||
* Available types are:
|
* Available types are:
|
||||||
|
*
|
||||||
* - `OBS_MONITORING_TYPE_NONE`
|
* - `OBS_MONITORING_TYPE_NONE`
|
||||||
* - `OBS_MONITORING_TYPE_MONITOR_ONLY`
|
* - `OBS_MONITORING_TYPE_MONITOR_ONLY`
|
||||||
* - `OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT`
|
* - `OBS_MONITORING_TYPE_MONITOR_AND_OUTPUT`
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField monitorType | String | New monitor type of the input
|
* @dataField monitorType | String | New monitor type of the input
|
||||||
*
|
*
|
||||||
* @eventType InputAudioMonitorTypeChanged
|
* @eventType InputAudioMonitorTypeChanged
|
||||||
@ -361,7 +411,7 @@ void EventHandler::HandleInputAudioTracksChanged(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleInputAudioMonitorTypeChanged(void *param, calldata_t *data)
|
void EventHandler::HandleInputAudioMonitorTypeChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -372,11 +422,10 @@ void EventHandler::HandleInputAudioMonitorTypeChanged(void *param, calldata_t *d
|
|||||||
|
|
||||||
enum obs_monitoring_type monitorType = (obs_monitoring_type)calldata_int(data, "type");
|
enum obs_monitoring_type monitorType = (obs_monitoring_type)calldata_int(data, "type");
|
||||||
|
|
||||||
std::string monitorTypeString = Utils::Obs::StringHelper::GetInputMonitorType(monitorType);
|
|
||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
eventData["monitorType"] = monitorTypeString;
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
|
eventData["monitorType"] = monitorType;
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputAudioMonitorTypeChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Inputs, "InputAudioMonitorTypeChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,11 +19,14 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
|
|
||||||
#include "EventHandler.h"
|
#include "EventHandler.h"
|
||||||
|
|
||||||
#define CASE(x) case x: return #x;
|
#define CASE(x) \
|
||||||
|
case x: \
|
||||||
|
return #x;
|
||||||
|
|
||||||
std::string GetMediaInputActionString(ObsMediaInputAction action) {
|
std::string GetMediaInputActionString(ObsMediaInputAction action)
|
||||||
|
{
|
||||||
switch (action) {
|
switch (action) {
|
||||||
default:
|
default:
|
||||||
CASE(OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE)
|
CASE(OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PAUSE)
|
||||||
CASE(OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY)
|
CASE(OBS_WEBSOCKET_MEDIA_INPUT_ACTION_PLAY)
|
||||||
CASE(OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART)
|
CASE(OBS_WEBSOCKET_MEDIA_INPUT_ACTION_RESTART)
|
||||||
@ -35,7 +38,7 @@ std::string GetMediaInputActionString(ObsMediaInputAction action) {
|
|||||||
|
|
||||||
void EventHandler::SourceMediaPauseMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceMediaPauseMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -49,7 +52,7 @@ void EventHandler::SourceMediaPauseMultiHandler(void *param, calldata_t *data)
|
|||||||
|
|
||||||
void EventHandler::SourceMediaPlayMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceMediaPlayMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -63,7 +66,7 @@ void EventHandler::SourceMediaPlayMultiHandler(void *param, calldata_t *data)
|
|||||||
|
|
||||||
void EventHandler::SourceMediaRestartMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceMediaRestartMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -77,7 +80,7 @@ void EventHandler::SourceMediaRestartMultiHandler(void *param, calldata_t *data)
|
|||||||
|
|
||||||
void EventHandler::SourceMediaStopMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceMediaStopMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -91,7 +94,7 @@ void EventHandler::SourceMediaStopMultiHandler(void *param, calldata_t *data)
|
|||||||
|
|
||||||
void EventHandler::SourceMediaNextMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceMediaNextMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -105,7 +108,7 @@ void EventHandler::SourceMediaNextMultiHandler(void *param, calldata_t *data)
|
|||||||
|
|
||||||
void EventHandler::SourceMediaPreviousMultiHandler(void *param, calldata_t *data)
|
void EventHandler::SourceMediaPreviousMultiHandler(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -121,6 +124,7 @@ void EventHandler::SourceMediaPreviousMultiHandler(void *param, calldata_t *data
|
|||||||
* A media input has started playing.
|
* A media input has started playing.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
*
|
*
|
||||||
* @eventType MediaInputPlaybackStarted
|
* @eventType MediaInputPlaybackStarted
|
||||||
* @eventSubscription MediaInputs
|
* @eventSubscription MediaInputs
|
||||||
@ -132,7 +136,7 @@ void EventHandler::SourceMediaPreviousMultiHandler(void *param, calldata_t *data
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleMediaInputPlaybackStarted(void *param, calldata_t *data)
|
void EventHandler::HandleMediaInputPlaybackStarted(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -143,6 +147,7 @@ void EventHandler::HandleMediaInputPlaybackStarted(void *param, calldata_t *data
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::MediaInputs, "MediaInputPlaybackStarted", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::MediaInputs, "MediaInputPlaybackStarted", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,6 +155,7 @@ void EventHandler::HandleMediaInputPlaybackStarted(void *param, calldata_t *data
|
|||||||
* A media input has finished playing.
|
* A media input has finished playing.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
*
|
*
|
||||||
* @eventType MediaInputPlaybackEnded
|
* @eventType MediaInputPlaybackEnded
|
||||||
* @eventSubscription MediaInputs
|
* @eventSubscription MediaInputs
|
||||||
@ -161,7 +167,7 @@ void EventHandler::HandleMediaInputPlaybackStarted(void *param, calldata_t *data
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleMediaInputPlaybackEnded(void *param, calldata_t *data)
|
void EventHandler::HandleMediaInputPlaybackEnded(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -172,6 +178,7 @@ void EventHandler::HandleMediaInputPlaybackEnded(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::MediaInputs, "MediaInputPlaybackEnded", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::MediaInputs, "MediaInputPlaybackEnded", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,6 +186,7 @@ void EventHandler::HandleMediaInputPlaybackEnded(void *param, calldata_t *data)
|
|||||||
* An action has been performed on an input.
|
* An action has been performed on an input.
|
||||||
*
|
*
|
||||||
* @dataField inputName | String | Name of the input
|
* @dataField inputName | String | Name of the input
|
||||||
|
* @dataField inputUuid | String | UUID of the input
|
||||||
* @dataField mediaAction | String | Action performed on the input. See `ObsMediaInputAction` enum
|
* @dataField mediaAction | String | Action performed on the input. See `ObsMediaInputAction` enum
|
||||||
*
|
*
|
||||||
* @eventType MediaInputActionTriggered
|
* @eventType MediaInputActionTriggered
|
||||||
@ -193,6 +201,7 @@ void EventHandler::HandleMediaInputActionTriggered(obs_source_t *source, ObsMedi
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["inputName"] = obs_source_get_name(source);
|
eventData["inputName"] = obs_source_get_name(source);
|
||||||
|
eventData["inputUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["mediaAction"] = GetMediaInputActionString(action);
|
eventData["mediaAction"] = GetMediaInputActionString(action);
|
||||||
BroadcastEvent(EventSubscription::MediaInputs, "MediaInputActionTriggered", eventData);
|
BroadcastEvent(EventSubscription::MediaInputs, "MediaInputActionTriggered", eventData);
|
||||||
}
|
}
|
@ -19,18 +19,21 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
|
|
||||||
#include "EventHandler.h"
|
#include "EventHandler.h"
|
||||||
|
|
||||||
static bool GetOutputStateActive(ObsOutputState state) {
|
static bool GetOutputStateActive(ObsOutputState state)
|
||||||
switch(state) {
|
{
|
||||||
case OBS_WEBSOCKET_OUTPUT_STARTED:
|
switch (state) {
|
||||||
case OBS_WEBSOCKET_OUTPUT_RESUMED:
|
case OBS_WEBSOCKET_OUTPUT_STARTED:
|
||||||
return true;
|
case OBS_WEBSOCKET_OUTPUT_RESUMED:
|
||||||
case OBS_WEBSOCKET_OUTPUT_STARTING:
|
case OBS_WEBSOCKET_OUTPUT_RECONNECTED:
|
||||||
case OBS_WEBSOCKET_OUTPUT_STOPPING:
|
return true;
|
||||||
case OBS_WEBSOCKET_OUTPUT_STOPPED:
|
case OBS_WEBSOCKET_OUTPUT_STARTING:
|
||||||
case OBS_WEBSOCKET_OUTPUT_PAUSED:
|
case OBS_WEBSOCKET_OUTPUT_STOPPING:
|
||||||
return false;
|
case OBS_WEBSOCKET_OUTPUT_STOPPED:
|
||||||
default:
|
case OBS_WEBSOCKET_OUTPUT_RECONNECTING:
|
||||||
return false;
|
case OBS_WEBSOCKET_OUTPUT_PAUSED:
|
||||||
|
return false;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +55,7 @@ void EventHandler::HandleStreamStateChanged(ObsOutputState state)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["outputActive"] = GetOutputStateActive(state);
|
eventData["outputActive"] = GetOutputStateActive(state);
|
||||||
eventData["outputState"] = Utils::Obs::StringHelper::GetOutputState(state);
|
eventData["outputState"] = state;
|
||||||
BroadcastEvent(EventSubscription::Outputs, "StreamStateChanged", eventData);
|
BroadcastEvent(EventSubscription::Outputs, "StreamStateChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,6 +64,7 @@ void EventHandler::HandleStreamStateChanged(ObsOutputState state)
|
|||||||
*
|
*
|
||||||
* @dataField outputActive | Boolean | Whether the output is active
|
* @dataField outputActive | Boolean | Whether the output is active
|
||||||
* @dataField outputState | String | The specific state of the output
|
* @dataField outputState | String | The specific state of the output
|
||||||
|
* @dataField outputPath | String | File name for the saved recording, if record stopped. `null` otherwise
|
||||||
*
|
*
|
||||||
* @eventType RecordStateChanged
|
* @eventType RecordStateChanged
|
||||||
* @eventSubscription Outputs
|
* @eventSubscription Outputs
|
||||||
@ -74,10 +78,37 @@ void EventHandler::HandleRecordStateChanged(ObsOutputState state)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["outputActive"] = GetOutputStateActive(state);
|
eventData["outputActive"] = GetOutputStateActive(state);
|
||||||
eventData["outputState"] = Utils::Obs::StringHelper::GetOutputState(state);
|
eventData["outputState"] = state;
|
||||||
|
if (state == OBS_WEBSOCKET_OUTPUT_STOPPED || state == OBS_WEBSOCKET_OUTPUT_STARTED) {
|
||||||
|
eventData["outputPath"] = Utils::Obs::StringHelper::GetLastRecordFileName();
|
||||||
|
} else {
|
||||||
|
eventData["outputPath"] = nullptr;
|
||||||
|
}
|
||||||
BroadcastEvent(EventSubscription::Outputs, "RecordStateChanged", eventData);
|
BroadcastEvent(EventSubscription::Outputs, "RecordStateChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The record output has started writing to a new file. For example, when a file split happens.
|
||||||
|
*
|
||||||
|
* @dataField newOutputPath | String | File name that the output has begun writing to
|
||||||
|
*
|
||||||
|
* @eventType RecordFileChanged
|
||||||
|
* @eventSubscription Outputs
|
||||||
|
* @complexity 2
|
||||||
|
* @rpcVersion -1
|
||||||
|
* @initialVersion 5.5.0
|
||||||
|
* @api events
|
||||||
|
* @category outputs
|
||||||
|
*/
|
||||||
|
void EventHandler::HandleRecordFileChanged(void *param, calldata_t *data)
|
||||||
|
{
|
||||||
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
|
json eventData;
|
||||||
|
eventData["newOutputPath"] = calldata_string(data, "next_file");
|
||||||
|
eventHandler->BroadcastEvent(EventSubscription::Outputs, "RecordFileChanged", eventData);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The state of the replay buffer output has changed.
|
* The state of the replay buffer output has changed.
|
||||||
*
|
*
|
||||||
@ -96,7 +127,7 @@ void EventHandler::HandleReplayBufferStateChanged(ObsOutputState state)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["outputActive"] = GetOutputStateActive(state);
|
eventData["outputActive"] = GetOutputStateActive(state);
|
||||||
eventData["outputState"] = Utils::Obs::StringHelper::GetOutputState(state);
|
eventData["outputState"] = state;
|
||||||
BroadcastEvent(EventSubscription::Outputs, "ReplayBufferStateChanged", eventData);
|
BroadcastEvent(EventSubscription::Outputs, "ReplayBufferStateChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,7 +149,7 @@ void EventHandler::HandleVirtualcamStateChanged(ObsOutputState state)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["outputActive"] = GetOutputStateActive(state);
|
eventData["outputActive"] = GetOutputStateActive(state);
|
||||||
eventData["outputState"] = Utils::Obs::StringHelper::GetOutputState(state);
|
eventData["outputState"] = state;
|
||||||
BroadcastEvent(EventSubscription::Outputs, "VirtualcamStateChanged", eventData);
|
BroadcastEvent(EventSubscription::Outputs, "VirtualcamStateChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,6 +169,6 @@ void EventHandler::HandleVirtualcamStateChanged(ObsOutputState state)
|
|||||||
void EventHandler::HandleReplayBufferSaved()
|
void EventHandler::HandleReplayBufferSaved()
|
||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["savedReplayPath"] = Utils::Obs::StringHelper::GetLastReplayBufferFilePath();
|
eventData["savedReplayPath"] = Utils::Obs::StringHelper::GetLastReplayBufferFileName();
|
||||||
BroadcastEvent(EventSubscription::Outputs, "ReplayBufferSaved", eventData);
|
BroadcastEvent(EventSubscription::Outputs, "ReplayBufferSaved", eventData);
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,9 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
* A scene item has been created.
|
* A scene item has been created.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the scene the item was added to
|
* @dataField sceneName | String | Name of the scene the item was added to
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene the item was added to
|
||||||
* @dataField sourceName | String | Name of the underlying source (input/scene)
|
* @dataField sourceName | String | Name of the underlying source (input/scene)
|
||||||
|
* @dataField sourceUuid | String | UUID of the underlying source (input/scene)
|
||||||
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
||||||
* @dataField sceneItemIndex | Number | Index position of the item
|
* @dataField sceneItemIndex | Number | Index position of the item
|
||||||
*
|
*
|
||||||
@ -37,7 +39,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneItemCreated(void *param, calldata_t *data)
|
void EventHandler::HandleSceneItemCreated(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
||||||
if (!scene)
|
if (!scene)
|
||||||
@ -49,7 +51,9 @@ void EventHandler::HandleSceneItemCreated(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(obs_scene_get_source(scene));
|
||||||
eventData["sourceName"] = obs_source_get_name(obs_sceneitem_get_source(sceneItem));
|
eventData["sourceName"] = obs_source_get_name(obs_sceneitem_get_source(sceneItem));
|
||||||
|
eventData["sourceUuid"] = obs_source_get_uuid(obs_sceneitem_get_source(sceneItem));
|
||||||
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
||||||
eventData["sceneItemIndex"] = obs_sceneitem_get_order_position(sceneItem);
|
eventData["sceneItemIndex"] = obs_sceneitem_get_order_position(sceneItem);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemCreated", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemCreated", eventData);
|
||||||
@ -61,7 +65,9 @@ void EventHandler::HandleSceneItemCreated(void *param, calldata_t *data)
|
|||||||
* This event is not emitted when the scene the item is in is removed.
|
* This event is not emitted when the scene the item is in is removed.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the scene the item was removed from
|
* @dataField sceneName | String | Name of the scene the item was removed from
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene the item was removed from
|
||||||
* @dataField sourceName | String | Name of the underlying source (input/scene)
|
* @dataField sourceName | String | Name of the underlying source (input/scene)
|
||||||
|
* @dataField sourceUuid | String | UUID of the underlying source (input/scene)
|
||||||
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
||||||
*
|
*
|
||||||
* @eventType SceneItemRemoved
|
* @eventType SceneItemRemoved
|
||||||
@ -74,7 +80,7 @@ void EventHandler::HandleSceneItemCreated(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneItemRemoved(void *param, calldata_t *data)
|
void EventHandler::HandleSceneItemRemoved(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
||||||
if (!scene)
|
if (!scene)
|
||||||
@ -86,7 +92,9 @@ void EventHandler::HandleSceneItemRemoved(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(obs_scene_get_source(scene));
|
||||||
eventData["sourceName"] = obs_source_get_name(obs_sceneitem_get_source(sceneItem));
|
eventData["sourceName"] = obs_source_get_name(obs_sceneitem_get_source(sceneItem));
|
||||||
|
eventData["sourceUuid"] = obs_source_get_uuid(obs_sceneitem_get_source(sceneItem));
|
||||||
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemRemoved", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemRemoved", eventData);
|
||||||
}
|
}
|
||||||
@ -95,6 +103,7 @@ void EventHandler::HandleSceneItemRemoved(void *param, calldata_t *data)
|
|||||||
* A scene's item list has been reindexed.
|
* A scene's item list has been reindexed.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the scene
|
* @dataField sceneName | String | Name of the scene
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene
|
||||||
* @dataField sceneItems | Array<Object> | Array of scene item objects
|
* @dataField sceneItems | Array<Object> | Array of scene item objects
|
||||||
*
|
*
|
||||||
* @eventType SceneItemListReindexed
|
* @eventType SceneItemListReindexed
|
||||||
@ -107,7 +116,7 @@ void EventHandler::HandleSceneItemRemoved(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneItemListReindexed(void *param, calldata_t *data)
|
void EventHandler::HandleSceneItemListReindexed(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
||||||
if (!scene)
|
if (!scene)
|
||||||
@ -115,6 +124,7 @@ void EventHandler::HandleSceneItemListReindexed(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(obs_scene_get_source(scene));
|
||||||
eventData["sceneItems"] = Utils::Obs::ArrayHelper::GetSceneItemList(scene, true);
|
eventData["sceneItems"] = Utils::Obs::ArrayHelper::GetSceneItemList(scene, true);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemListReindexed", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemListReindexed", eventData);
|
||||||
}
|
}
|
||||||
@ -123,6 +133,7 @@ void EventHandler::HandleSceneItemListReindexed(void *param, calldata_t *data)
|
|||||||
* A scene item's enable state has changed.
|
* A scene item's enable state has changed.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the scene the item is in
|
* @dataField sceneName | String | Name of the scene the item is in
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene the item is in
|
||||||
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
||||||
* @dataField sceneItemEnabled | Boolean | Whether the scene item is enabled (visible)
|
* @dataField sceneItemEnabled | Boolean | Whether the scene item is enabled (visible)
|
||||||
*
|
*
|
||||||
@ -136,7 +147,7 @@ void EventHandler::HandleSceneItemListReindexed(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneItemEnableStateChanged(void *param, calldata_t *data)
|
void EventHandler::HandleSceneItemEnableStateChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
||||||
if (!scene)
|
if (!scene)
|
||||||
@ -150,6 +161,7 @@ void EventHandler::HandleSceneItemEnableStateChanged(void *param, calldata_t *da
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(obs_scene_get_source(scene));
|
||||||
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
||||||
eventData["sceneItemEnabled"] = sceneItemEnabled;
|
eventData["sceneItemEnabled"] = sceneItemEnabled;
|
||||||
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemEnableStateChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemEnableStateChanged", eventData);
|
||||||
@ -159,6 +171,7 @@ void EventHandler::HandleSceneItemEnableStateChanged(void *param, calldata_t *da
|
|||||||
* A scene item's lock state has changed.
|
* A scene item's lock state has changed.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the scene the item is in
|
* @dataField sceneName | String | Name of the scene the item is in
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene the item is in
|
||||||
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
||||||
* @dataField sceneItemLocked | Boolean | Whether the scene item is locked
|
* @dataField sceneItemLocked | Boolean | Whether the scene item is locked
|
||||||
*
|
*
|
||||||
@ -172,7 +185,7 @@ void EventHandler::HandleSceneItemEnableStateChanged(void *param, calldata_t *da
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneItemLockStateChanged(void *param, calldata_t *data)
|
void EventHandler::HandleSceneItemLockStateChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
||||||
if (!scene)
|
if (!scene)
|
||||||
@ -186,6 +199,7 @@ void EventHandler::HandleSceneItemLockStateChanged(void *param, calldata_t *data
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(obs_scene_get_source(scene));
|
||||||
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
||||||
eventData["sceneItemLocked"] = sceneItemLocked;
|
eventData["sceneItemLocked"] = sceneItemLocked;
|
||||||
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemLockStateChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemLockStateChanged", eventData);
|
||||||
@ -195,6 +209,7 @@ void EventHandler::HandleSceneItemLockStateChanged(void *param, calldata_t *data
|
|||||||
* A scene item has been selected in the Ui.
|
* A scene item has been selected in the Ui.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the scene the item is in
|
* @dataField sceneName | String | Name of the scene the item is in
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene the item is in
|
||||||
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
||||||
*
|
*
|
||||||
* @eventType SceneItemSelected
|
* @eventType SceneItemSelected
|
||||||
@ -207,7 +222,7 @@ void EventHandler::HandleSceneItemLockStateChanged(void *param, calldata_t *data
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneItemSelected(void *param, calldata_t *data)
|
void EventHandler::HandleSceneItemSelected(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
obs_scene_t *scene = GetCalldataPointer<obs_scene_t>(data, "scene");
|
||||||
if (!scene)
|
if (!scene)
|
||||||
@ -219,6 +234,7 @@ void EventHandler::HandleSceneItemSelected(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(obs_scene_get_source(scene));
|
||||||
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemSelected", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::SceneItems, "SceneItemSelected", eventData);
|
||||||
}
|
}
|
||||||
@ -227,6 +243,7 @@ void EventHandler::HandleSceneItemSelected(void *param, calldata_t *data)
|
|||||||
* The transform/crop of a scene item has changed.
|
* The transform/crop of a scene item has changed.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | The name of the scene the item is in
|
* @dataField sceneName | String | The name of the scene the item is in
|
||||||
|
* @dataField sceneUuid | String | The UUID of the scene the item is in
|
||||||
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
* @dataField sceneItemId | Number | Numeric ID of the scene item
|
||||||
* @dataField sceneItemTransform | Object | New transform/crop info of the scene item
|
* @dataField sceneItemTransform | Object | New transform/crop info of the scene item
|
||||||
*
|
*
|
||||||
@ -240,7 +257,7 @@ void EventHandler::HandleSceneItemSelected(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneItemTransformChanged(void *param, calldata_t *data)
|
void EventHandler::HandleSceneItemTransformChanged(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
if (!eventHandler->_sceneItemTransformChangedRef.load())
|
if (!eventHandler->_sceneItemTransformChangedRef.load())
|
||||||
return;
|
return;
|
||||||
@ -255,6 +272,7 @@ void EventHandler::HandleSceneItemTransformChanged(void *param, calldata_t *data
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
eventData["sceneName"] = obs_source_get_name(obs_scene_get_source(scene));
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(obs_scene_get_source(scene));
|
||||||
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
eventData["sceneItemId"] = obs_sceneitem_get_id(sceneItem);
|
||||||
eventData["sceneItemTransform"] = Utils::Obs::ObjectHelper::GetSceneItemTransform(sceneItem);
|
eventData["sceneItemTransform"] = Utils::Obs::ObjectHelper::GetSceneItemTransform(sceneItem);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::SceneItemTransformChanged, "SceneItemTransformChanged", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::SceneItemTransformChanged, "SceneItemTransformChanged", eventData);
|
||||||
|
@ -23,6 +23,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
* A new scene has been created.
|
* A new scene has been created.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the new scene
|
* @dataField sceneName | String | Name of the new scene
|
||||||
|
* @dataField sceneUuid | String | UUID of the new scene
|
||||||
* @dataField isGroup | Boolean | Whether the new scene is a group
|
* @dataField isGroup | Boolean | Whether the new scene is a group
|
||||||
*
|
*
|
||||||
* @eventType SceneCreated
|
* @eventType SceneCreated
|
||||||
@ -37,6 +38,7 @@ void EventHandler::HandleSceneCreated(obs_source_t *source)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(source);
|
eventData["sceneName"] = obs_source_get_name(source);
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["isGroup"] = obs_source_is_group(source);
|
eventData["isGroup"] = obs_source_is_group(source);
|
||||||
BroadcastEvent(EventSubscription::Scenes, "SceneCreated", eventData);
|
BroadcastEvent(EventSubscription::Scenes, "SceneCreated", eventData);
|
||||||
}
|
}
|
||||||
@ -45,6 +47,7 @@ void EventHandler::HandleSceneCreated(obs_source_t *source)
|
|||||||
* A scene has been removed.
|
* A scene has been removed.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the removed scene
|
* @dataField sceneName | String | Name of the removed scene
|
||||||
|
* @dataField sceneUuid | String | UUID of the removed scene
|
||||||
* @dataField isGroup | Boolean | Whether the scene was a group
|
* @dataField isGroup | Boolean | Whether the scene was a group
|
||||||
*
|
*
|
||||||
* @eventType SceneRemoved
|
* @eventType SceneRemoved
|
||||||
@ -59,6 +62,7 @@ void EventHandler::HandleSceneRemoved(obs_source_t *source)
|
|||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(source);
|
eventData["sceneName"] = obs_source_get_name(source);
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["isGroup"] = obs_source_is_group(source);
|
eventData["isGroup"] = obs_source_is_group(source);
|
||||||
BroadcastEvent(EventSubscription::Scenes, "SceneRemoved", eventData);
|
BroadcastEvent(EventSubscription::Scenes, "SceneRemoved", eventData);
|
||||||
}
|
}
|
||||||
@ -66,6 +70,7 @@ void EventHandler::HandleSceneRemoved(obs_source_t *source)
|
|||||||
/**
|
/**
|
||||||
* The name of a scene has changed.
|
* The name of a scene has changed.
|
||||||
*
|
*
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene
|
||||||
* @dataField oldSceneName | String | Old name of the scene
|
* @dataField oldSceneName | String | Old name of the scene
|
||||||
* @dataField sceneName | String | New name of the scene
|
* @dataField sceneName | String | New name of the scene
|
||||||
*
|
*
|
||||||
@ -77,9 +82,10 @@ void EventHandler::HandleSceneRemoved(obs_source_t *source)
|
|||||||
* @api events
|
* @api events
|
||||||
* @category scenes
|
* @category scenes
|
||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneNameChanged(obs_source_t *, std::string oldSceneName, std::string sceneName)
|
void EventHandler::HandleSceneNameChanged(obs_source_t *source, std::string oldSceneName, std::string sceneName)
|
||||||
{
|
{
|
||||||
json eventData;
|
json eventData;
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(source);
|
||||||
eventData["oldSceneName"] = oldSceneName;
|
eventData["oldSceneName"] = oldSceneName;
|
||||||
eventData["sceneName"] = sceneName;
|
eventData["sceneName"] = sceneName;
|
||||||
BroadcastEvent(EventSubscription::Scenes, "SceneNameChanged", eventData);
|
BroadcastEvent(EventSubscription::Scenes, "SceneNameChanged", eventData);
|
||||||
@ -89,6 +95,7 @@ void EventHandler::HandleSceneNameChanged(obs_source_t *, std::string oldSceneNa
|
|||||||
* The current program scene has changed.
|
* The current program scene has changed.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the scene that was switched to
|
* @dataField sceneName | String | Name of the scene that was switched to
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene that was switched to
|
||||||
*
|
*
|
||||||
* @eventType CurrentProgramSceneChanged
|
* @eventType CurrentProgramSceneChanged
|
||||||
* @eventSubscription Scenes
|
* @eventSubscription Scenes
|
||||||
@ -104,6 +111,7 @@ void EventHandler::HandleCurrentProgramSceneChanged()
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(currentScene);
|
eventData["sceneName"] = obs_source_get_name(currentScene);
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(currentScene);
|
||||||
BroadcastEvent(EventSubscription::Scenes, "CurrentProgramSceneChanged", eventData);
|
BroadcastEvent(EventSubscription::Scenes, "CurrentProgramSceneChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,6 +119,7 @@ void EventHandler::HandleCurrentProgramSceneChanged()
|
|||||||
* The current preview scene has changed.
|
* The current preview scene has changed.
|
||||||
*
|
*
|
||||||
* @dataField sceneName | String | Name of the scene that was switched to
|
* @dataField sceneName | String | Name of the scene that was switched to
|
||||||
|
* @dataField sceneUuid | String | UUID of the scene that was switched to
|
||||||
*
|
*
|
||||||
* @eventType CurrentPreviewSceneChanged
|
* @eventType CurrentPreviewSceneChanged
|
||||||
* @eventSubscription Scenes
|
* @eventSubscription Scenes
|
||||||
@ -130,6 +139,7 @@ void EventHandler::HandleCurrentPreviewSceneChanged()
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["sceneName"] = obs_source_get_name(currentPreviewScene);
|
eventData["sceneName"] = obs_source_get_name(currentPreviewScene);
|
||||||
|
eventData["sceneUuid"] = obs_source_get_uuid(currentPreviewScene);
|
||||||
BroadcastEvent(EventSubscription::Scenes, "CurrentPreviewSceneChanged", eventData);
|
BroadcastEvent(EventSubscription::Scenes, "CurrentPreviewSceneChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
* The current scene transition has changed.
|
* The current scene transition has changed.
|
||||||
*
|
*
|
||||||
* @dataField transitionName | String | Name of the new transition
|
* @dataField transitionName | String | Name of the new transition
|
||||||
|
* @dataField transitionUuid | String | UUID of the new transition
|
||||||
*
|
*
|
||||||
* @eventType CurrentSceneTransitionChanged
|
* @eventType CurrentSceneTransitionChanged
|
||||||
* @eventSubscription Transitions
|
* @eventSubscription Transitions
|
||||||
@ -38,6 +39,7 @@ void EventHandler::HandleCurrentSceneTransitionChanged()
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["transitionName"] = obs_source_get_name(transition);
|
eventData["transitionName"] = obs_source_get_name(transition);
|
||||||
|
eventData["transitionUuid"] = obs_source_get_uuid(transition);
|
||||||
BroadcastEvent(EventSubscription::Transitions, "CurrentSceneTransitionChanged", eventData);
|
BroadcastEvent(EventSubscription::Transitions, "CurrentSceneTransitionChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,6 +67,7 @@ void EventHandler::HandleCurrentSceneTransitionDurationChanged()
|
|||||||
* A scene transition has started.
|
* A scene transition has started.
|
||||||
*
|
*
|
||||||
* @dataField transitionName | String | Scene transition name
|
* @dataField transitionName | String | Scene transition name
|
||||||
|
* @dataField transitionUuid | String | Scene transition UUID
|
||||||
*
|
*
|
||||||
* @eventType SceneTransitionStarted
|
* @eventType SceneTransitionStarted
|
||||||
* @eventSubscription Transitions
|
* @eventSubscription Transitions
|
||||||
@ -76,7 +79,7 @@ void EventHandler::HandleCurrentSceneTransitionDurationChanged()
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneTransitionStarted(void *param, calldata_t *data)
|
void EventHandler::HandleSceneTransitionStarted(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -84,6 +87,7 @@ void EventHandler::HandleSceneTransitionStarted(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["transitionName"] = obs_source_get_name(source);
|
eventData["transitionName"] = obs_source_get_name(source);
|
||||||
|
eventData["transitionUuid"] = obs_source_get_uuid(source);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Transitions, "SceneTransitionStarted", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Transitions, "SceneTransitionStarted", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,6 +97,7 @@ void EventHandler::HandleSceneTransitionStarted(void *param, calldata_t *data)
|
|||||||
* Note: Does not appear to trigger when the transition is interrupted by the user.
|
* Note: Does not appear to trigger when the transition is interrupted by the user.
|
||||||
*
|
*
|
||||||
* @dataField transitionName | String | Scene transition name
|
* @dataField transitionName | String | Scene transition name
|
||||||
|
* @dataField transitionUuid | String | Scene transition UUID
|
||||||
*
|
*
|
||||||
* @eventType SceneTransitionEnded
|
* @eventType SceneTransitionEnded
|
||||||
* @eventSubscription Transitions
|
* @eventSubscription Transitions
|
||||||
@ -104,7 +109,7 @@ void EventHandler::HandleSceneTransitionStarted(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneTransitionEnded(void *param, calldata_t *data)
|
void EventHandler::HandleSceneTransitionEnded(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -112,6 +117,7 @@ void EventHandler::HandleSceneTransitionEnded(void *param, calldata_t *data)
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["transitionName"] = obs_source_get_name(source);
|
eventData["transitionName"] = obs_source_get_name(source);
|
||||||
|
eventData["transitionUuid"] = obs_source_get_uuid(source);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Transitions, "SceneTransitionEnded", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Transitions, "SceneTransitionEnded", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,6 +130,7 @@ void EventHandler::HandleSceneTransitionEnded(void *param, calldata_t *data)
|
|||||||
* Note: Appears to be called by every transition, regardless of relevance.
|
* Note: Appears to be called by every transition, regardless of relevance.
|
||||||
*
|
*
|
||||||
* @dataField transitionName | String | Scene transition name
|
* @dataField transitionName | String | Scene transition name
|
||||||
|
* @dataField transitionUuid | String | Scene transition UUID
|
||||||
*
|
*
|
||||||
* @eventType SceneTransitionVideoEnded
|
* @eventType SceneTransitionVideoEnded
|
||||||
* @eventSubscription Transitions
|
* @eventSubscription Transitions
|
||||||
@ -135,7 +142,7 @@ void EventHandler::HandleSceneTransitionEnded(void *param, calldata_t *data)
|
|||||||
*/
|
*/
|
||||||
void EventHandler::HandleSceneTransitionVideoEnded(void *param, calldata_t *data)
|
void EventHandler::HandleSceneTransitionVideoEnded(void *param, calldata_t *data)
|
||||||
{
|
{
|
||||||
auto eventHandler = static_cast<EventHandler*>(param);
|
auto eventHandler = static_cast<EventHandler *>(param);
|
||||||
|
|
||||||
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
obs_source_t *source = GetCalldataPointer<obs_source_t>(data, "source");
|
||||||
if (!source)
|
if (!source)
|
||||||
@ -143,5 +150,6 @@ void EventHandler::HandleSceneTransitionVideoEnded(void *param, calldata_t *data
|
|||||||
|
|
||||||
json eventData;
|
json eventData;
|
||||||
eventData["transitionName"] = obs_source_get_name(source);
|
eventData["transitionName"] = obs_source_get_name(source);
|
||||||
|
eventData["transitionUuid"] = obs_source_get_uuid(source);
|
||||||
eventHandler->BroadcastEvent(EventSubscription::Transitions, "SceneTransitionVideoEnded", eventData);
|
eventHandler->BroadcastEvent(EventSubscription::Transitions, "SceneTransitionVideoEnded", eventData);
|
||||||
}
|
}
|
||||||
|
@ -38,3 +38,27 @@ void EventHandler::HandleStudioModeStateChanged(bool enabled)
|
|||||||
eventData["studioModeEnabled"] = enabled;
|
eventData["studioModeEnabled"] = enabled;
|
||||||
BroadcastEvent(EventSubscription::Ui, "StudioModeStateChanged", eventData);
|
BroadcastEvent(EventSubscription::Ui, "StudioModeStateChanged", eventData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A screenshot has been saved.
|
||||||
|
*
|
||||||
|
* Note: Triggered for the screenshot feature available in `Settings -> Hotkeys -> Screenshot Output` ONLY.
|
||||||
|
* Applications using `Get/SaveSourceScreenshot` should implement a `CustomEvent` if this kind of inter-client
|
||||||
|
* communication is desired.
|
||||||
|
*
|
||||||
|
* @dataField savedScreenshotPath | String | Path of the saved image file
|
||||||
|
*
|
||||||
|
* @eventType ScreenshotSaved
|
||||||
|
* @eventSubscription Ui
|
||||||
|
* @complexity 2
|
||||||
|
* @rpcVersion -1
|
||||||
|
* @initialVersion 5.1.0
|
||||||
|
* @api events
|
||||||
|
* @category ui
|
||||||
|
*/
|
||||||
|
void EventHandler::HandleScreenshotSaved()
|
||||||
|
{
|
||||||
|
json eventData;
|
||||||
|
eventData["savedScreenshotPath"] = Utils::Obs::StringHelper::GetLastScreenshotFileName();
|
||||||
|
BroadcastEvent(EventSubscription::Ui, "ScreenshotSaved", eventData);
|
||||||
|
}
|
||||||
|
@ -157,13 +157,14 @@ namespace EventSubscription {
|
|||||||
* Helper to receive all non-high-volume events.
|
* Helper to receive all non-high-volume events.
|
||||||
*
|
*
|
||||||
* @enumIdentifier All
|
* @enumIdentifier All
|
||||||
* @enumValue (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors)
|
* @enumValue (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors | Ui)
|
||||||
* @enumType EventSubscription
|
* @enumType EventSubscription
|
||||||
* @rpcVersion -1
|
* @rpcVersion -1
|
||||||
* @initialVersion 5.0.0
|
* @initialVersion 5.0.0
|
||||||
* @api enums
|
* @api enums
|
||||||
*/
|
*/
|
||||||
All = (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Ui | Vendors),
|
All = (General | Config | Scenes | Inputs | Transitions | Filters | Outputs | SceneItems | MediaInputs | Vendors |
|
||||||
|
Ui),
|
||||||
/**
|
/**
|
||||||
* Subscription value to receive the `InputVolumeMeters` high-volume event.
|
* Subscription value to receive the `InputVolumeMeters` high-volume event.
|
||||||
*
|
*
|
||||||
|
@ -21,25 +21,20 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <obs-module.h>
|
#include <obs-module.h>
|
||||||
|
#include <qrcodegen.hpp>
|
||||||
|
|
||||||
#include "ConnectInfo.h"
|
#include "ConnectInfo.h"
|
||||||
#include "../../deps/qr/cpp/QrCode.hpp"
|
|
||||||
#include "../obs-websocket.h"
|
#include "../obs-websocket.h"
|
||||||
#include "../Config.h"
|
#include "../Config.h"
|
||||||
#include "../utils/Platform.h"
|
#include "../utils/Platform.h"
|
||||||
|
|
||||||
ConnectInfo::ConnectInfo(QWidget* parent) :
|
ConnectInfo::ConnectInfo(QWidget *parent) : QDialog(parent, Qt::Dialog), ui(new Ui::ConnectInfo)
|
||||||
QDialog(parent, Qt::Dialog),
|
|
||||||
ui(new Ui::ConnectInfo)
|
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
connect(ui->copyServerIpButton, &QPushButton::clicked,
|
connect(ui->copyServerIpButton, &QPushButton::clicked, this, &ConnectInfo::CopyServerIpButtonClicked);
|
||||||
this, &ConnectInfo::CopyServerIpButtonClicked);
|
connect(ui->copyServerPortButton, &QPushButton::clicked, this, &ConnectInfo::CopyServerPortButtonClicked);
|
||||||
connect(ui->copyServerPortButton, &QPushButton::clicked,
|
connect(ui->copyServerPasswordButton, &QPushButton::clicked, this, &ConnectInfo::CopyServerPasswordButtonClicked);
|
||||||
this, &ConnectInfo::CopyServerPortButtonClicked);
|
|
||||||
connect(ui->copyServerPasswordButton, &QPushButton::clicked,
|
|
||||||
this, &ConnectInfo::CopyServerPasswordButtonClicked);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectInfo::~ConnectInfo()
|
ConnectInfo::~ConnectInfo()
|
||||||
@ -69,7 +64,7 @@ void ConnectInfo::RefreshData()
|
|||||||
QString serverPassword;
|
QString serverPassword;
|
||||||
if (conf->AuthRequired) {
|
if (conf->AuthRequired) {
|
||||||
ui->copyServerPasswordButton->setEnabled(true);
|
ui->copyServerPasswordButton->setEnabled(true);
|
||||||
serverPassword = QUrl::toPercentEncoding(conf->ServerPassword);
|
serverPassword = QUrl::toPercentEncoding(QString::fromStdString(conf->ServerPassword));
|
||||||
} else {
|
} else {
|
||||||
ui->copyServerPasswordButton->setEnabled(false);
|
ui->copyServerPasswordButton->setEnabled(false);
|
||||||
serverPassword = obs_module_text("OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText");
|
serverPassword = obs_module_text("OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText");
|
||||||
@ -110,7 +105,7 @@ void ConnectInfo::SetClipboardText(QString text)
|
|||||||
|
|
||||||
void ConnectInfo::DrawQr(QString qrText)
|
void ConnectInfo::DrawQr(QString qrText)
|
||||||
{
|
{
|
||||||
QPixmap map(230, 230);
|
QPixmap map(236, 236);
|
||||||
map.fill(Qt::white);
|
map.fill(Qt::white);
|
||||||
QPainter painter(&map);
|
QPainter painter(&map);
|
||||||
|
|
||||||
@ -118,9 +113,9 @@ void ConnectInfo::DrawQr(QString qrText)
|
|||||||
const int s = qr.getSize() > 0 ? qr.getSize() : 1;
|
const int s = qr.getSize() > 0 ? qr.getSize() : 1;
|
||||||
const double w = map.width();
|
const double w = map.width();
|
||||||
const double h = map.height();
|
const double h = map.height();
|
||||||
const double aspect = w/h;
|
const double aspect = w / h;
|
||||||
const double size = ((aspect > 1.0) ? h : w);
|
const double size = ((aspect > 1.0) ? h : w);
|
||||||
const double scale = size / (s+2);
|
const double scale = size / (s + 2);
|
||||||
painter.setPen(Qt::NoPen);
|
painter.setPen(Qt::NoPen);
|
||||||
painter.setBrush(Qt::black);
|
painter.setBrush(Qt::black);
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user