livevoice-sdk-react-native 1.0.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +5 -5
  3. package/android/{generated/java/io/livevoice/react → app/build/generated/source/codegen/java/com/facebook/fbreact/specs}/NativeLiveVoiceSdkSpec.java +2 -2
  4. package/android/{generated → app/build/generated/source/codegen}/jni/CMakeLists.txt +1 -9
  5. package/android/{generated → app/build/generated/source/codegen}/jni/RNLiveVoiceSpec-generated.cpp +3 -3
  6. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI.h +341 -0
  7. package/android/build.gradle +41 -84
  8. package/android/gradle.properties +10 -6
  9. package/android/src/main/java/io/livevoice/react/LiveVoiceModule.kt +17 -16
  10. package/android/src/main/java/io/livevoice/react/LiveVoiceSdkReactNativePackage.kt +12 -13
  11. package/android/src/main/java/io/livevoice/react/Mappings.kt +36 -5
  12. package/android/src/main/java/io/livevoice/react/NativeModels.kt +2 -0
  13. package/android/src/main/java/io/livevoice/react/__SDK.kt +1 -1
  14. package/ios/LiveVoiceSdkReactNative.h +5 -5
  15. package/ios/{LivevoiceSdkReactNative.mm → LiveVoiceSdkReactNative.mm} +59 -74
  16. package/ios/__SDK.h +1 -1
  17. package/lib/module/components/ChannelView.js +14 -38
  18. package/lib/module/components/ChannelView.js.map +1 -1
  19. package/lib/module/components/LiveVoiceView.js +46 -23
  20. package/lib/module/components/LiveVoiceView.js.map +1 -1
  21. package/lib/module/components/PlayButtonView.js +243 -84
  22. package/lib/module/components/PlayButtonView.js.map +1 -1
  23. package/lib/module/icons/captions@1x.png +0 -0
  24. package/lib/module/icons/captions@2x.png +0 -0
  25. package/lib/module/icons/pause@1x.png +0 -0
  26. package/lib/module/icons/pause@2x.png +0 -0
  27. package/lib/module/icons/play@1x.png +0 -0
  28. package/lib/module/icons/play@2x.png +0 -0
  29. package/lib/module/index.js +19 -21
  30. package/lib/module/index.js.map +1 -1
  31. package/lib/module/specs/NativeLiveVoiceSdk.js +4 -0
  32. package/lib/module/specs/NativeLiveVoiceSdk.js.map +1 -1
  33. package/lib/module/util/Colors.js +2 -1
  34. package/lib/module/util/Colors.js.map +1 -1
  35. package/lib/typescript/package.json +1 -0
  36. package/lib/typescript/src/components/AudioOutputSwitchView.d.ts.map +1 -0
  37. package/lib/typescript/src/components/BrandingView.d.ts.map +1 -0
  38. package/lib/typescript/{commonjs/src → src}/components/ChannelView.d.ts +4 -2
  39. package/lib/typescript/src/components/ChannelView.d.ts.map +1 -0
  40. package/lib/typescript/src/components/ErrorView.d.ts.map +1 -0
  41. package/lib/typescript/src/components/LiveVoiceView.d.ts.map +1 -0
  42. package/lib/typescript/src/components/PlayButtonView.d.ts +341 -0
  43. package/lib/typescript/src/components/PlayButtonView.d.ts.map +1 -0
  44. package/lib/typescript/src/components/ReconnectingView.d.ts.map +1 -0
  45. package/lib/typescript/src/components/WarningView.d.ts.map +1 -0
  46. package/lib/typescript/src/components/index.d.ts.map +1 -0
  47. package/lib/typescript/{commonjs/src → src}/index.d.ts +11 -15
  48. package/lib/typescript/src/index.d.ts.map +1 -0
  49. package/lib/typescript/{commonjs/src → src}/specs/NativeLiveVoiceSdk.d.ts +3 -3
  50. package/lib/typescript/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -0
  51. package/lib/typescript/{commonjs/src → src}/util/Colors.d.ts +2 -1
  52. package/lib/typescript/src/util/Colors.d.ts.map +1 -0
  53. package/lib/typescript/src/util/ForegroundServiceConfig.d.ts.map +1 -0
  54. package/lib/typescript/src/util/PlayingState.d.ts.map +1 -0
  55. package/lib/typescript/src/util/Translations.d.ts.map +1 -0
  56. package/lib/typescript/{module/src → src}/util/UIState.d.ts +22 -1
  57. package/lib/typescript/src/util/UIState.d.ts.map +1 -0
  58. package/livevoice-sdk-react-native.podspec +6 -27
  59. package/package.json +33 -123
  60. package/src/components/ChannelView.tsx +18 -25
  61. package/src/components/LiveVoiceView.tsx +110 -59
  62. package/src/components/PlayButtonView.tsx +280 -87
  63. package/src/icons/captions@1x.png +0 -0
  64. package/src/icons/captions@2x.png +0 -0
  65. package/src/icons/pause@1x.png +0 -0
  66. package/src/icons/pause@2x.png +0 -0
  67. package/src/icons/play@1x.png +0 -0
  68. package/src/icons/play@2x.png +0 -0
  69. package/src/index.tsx +95 -79
  70. package/src/specs/NativeLiveVoiceSdk.ts +7 -5
  71. package/src/util/Colors.ts +3 -1
  72. package/src/util/UIState.ts +25 -1
  73. package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI-generated.cpp +0 -245
  74. package/android/generated/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI.h +0 -398
  75. package/android/src/main/AndroidManifest.xml +0 -3
  76. package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec-generated.mm +0 -292
  77. package/ios/generated/RNLiveVoiceSpec/RNLiveVoiceSpec.h +0 -101
  78. package/ios/generated/RNLiveVoiceSpecJSI-generated.cpp +0 -245
  79. package/ios/generated/RNLiveVoiceSpecJSI.h +0 -398
  80. package/lib/commonjs/components/AudioOutputSwitchView.js +0 -144
  81. package/lib/commonjs/components/AudioOutputSwitchView.js.map +0 -1
  82. package/lib/commonjs/components/BrandingView.js +0 -78
  83. package/lib/commonjs/components/BrandingView.js.map +0 -1
  84. package/lib/commonjs/components/ChannelView.js +0 -117
  85. package/lib/commonjs/components/ChannelView.js.map +0 -1
  86. package/lib/commonjs/components/ErrorView.js +0 -88
  87. package/lib/commonjs/components/ErrorView.js.map +0 -1
  88. package/lib/commonjs/components/LiveVoiceView.js +0 -107
  89. package/lib/commonjs/components/LiveVoiceView.js.map +0 -1
  90. package/lib/commonjs/components/PlayButtonView.js +0 -161
  91. package/lib/commonjs/components/PlayButtonView.js.map +0 -1
  92. package/lib/commonjs/components/ReconnectingView.js +0 -109
  93. package/lib/commonjs/components/ReconnectingView.js.map +0 -1
  94. package/lib/commonjs/components/WarningView.js +0 -58
  95. package/lib/commonjs/components/WarningView.js.map +0 -1
  96. package/lib/commonjs/components/index.js +0 -94
  97. package/lib/commonjs/components/index.js.map +0 -1
  98. package/lib/commonjs/icons/branding.png +0 -0
  99. package/lib/commonjs/icons/cpu.png +0 -0
  100. package/lib/commonjs/icons/headphones.png +0 -0
  101. package/lib/commonjs/icons/mic.png +0 -0
  102. package/lib/commonjs/icons/pause.png +0 -0
  103. package/lib/commonjs/icons/play.png +0 -0
  104. package/lib/commonjs/icons/speaker.png +0 -0
  105. package/lib/commonjs/index.js +0 -327
  106. package/lib/commonjs/index.js.map +0 -1
  107. package/lib/commonjs/specs/NativeLiveVoiceSdk.js +0 -19
  108. package/lib/commonjs/specs/NativeLiveVoiceSdk.js.map +0 -1
  109. package/lib/commonjs/util/Colors.js +0 -30
  110. package/lib/commonjs/util/Colors.js.map +0 -1
  111. package/lib/commonjs/util/ForegroundServiceConfig.js +0 -33
  112. package/lib/commonjs/util/ForegroundServiceConfig.js.map +0 -1
  113. package/lib/commonjs/util/PlayingState.js +0 -24
  114. package/lib/commonjs/util/PlayingState.js.map +0 -1
  115. package/lib/commonjs/util/Translations.js +0 -47
  116. package/lib/commonjs/util/Translations.js.map +0 -1
  117. package/lib/commonjs/util/UIState.js +0 -6
  118. package/lib/commonjs/util/UIState.js.map +0 -1
  119. package/lib/module/icons/pause.png +0 -0
  120. package/lib/module/icons/play.png +0 -0
  121. package/lib/typescript/commonjs/package.json +0 -1
  122. package/lib/typescript/commonjs/src/components/AudioOutputSwitchView.d.ts.map +0 -1
  123. package/lib/typescript/commonjs/src/components/BrandingView.d.ts.map +0 -1
  124. package/lib/typescript/commonjs/src/components/ChannelView.d.ts.map +0 -1
  125. package/lib/typescript/commonjs/src/components/ErrorView.d.ts.map +0 -1
  126. package/lib/typescript/commonjs/src/components/LiveVoiceView.d.ts.map +0 -1
  127. package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts +0 -146
  128. package/lib/typescript/commonjs/src/components/PlayButtonView.d.ts.map +0 -1
  129. package/lib/typescript/commonjs/src/components/ReconnectingView.d.ts.map +0 -1
  130. package/lib/typescript/commonjs/src/components/WarningView.d.ts.map +0 -1
  131. package/lib/typescript/commonjs/src/components/index.d.ts.map +0 -1
  132. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  133. package/lib/typescript/commonjs/src/specs/NativeLiveVoiceSdk.d.ts.map +0 -1
  134. package/lib/typescript/commonjs/src/util/Colors.d.ts.map +0 -1
  135. package/lib/typescript/commonjs/src/util/ForegroundServiceConfig.d.ts.map +0 -1
  136. package/lib/typescript/commonjs/src/util/PlayingState.d.ts.map +0 -1
  137. package/lib/typescript/commonjs/src/util/Translations.d.ts.map +0 -1
  138. package/lib/typescript/commonjs/src/util/UIState.d.ts +0 -45
  139. package/lib/typescript/commonjs/src/util/UIState.d.ts.map +0 -1
  140. package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts +0 -6
  141. package/lib/typescript/module/src/components/AudioOutputSwitchView.d.ts.map +0 -1
  142. package/lib/typescript/module/src/components/BrandingView.d.ts +0 -6
  143. package/lib/typescript/module/src/components/BrandingView.d.ts.map +0 -1
  144. package/lib/typescript/module/src/components/ChannelView.d.ts +0 -13
  145. package/lib/typescript/module/src/components/ChannelView.d.ts.map +0 -1
  146. package/lib/typescript/module/src/components/ErrorView.d.ts +0 -9
  147. package/lib/typescript/module/src/components/ErrorView.d.ts.map +0 -1
  148. package/lib/typescript/module/src/components/LiveVoiceView.d.ts +0 -6
  149. package/lib/typescript/module/src/components/LiveVoiceView.d.ts.map +0 -1
  150. package/lib/typescript/module/src/components/PlayButtonView.d.ts +0 -146
  151. package/lib/typescript/module/src/components/PlayButtonView.d.ts.map +0 -1
  152. package/lib/typescript/module/src/components/ReconnectingView.d.ts +0 -9
  153. package/lib/typescript/module/src/components/ReconnectingView.d.ts.map +0 -1
  154. package/lib/typescript/module/src/components/WarningView.d.ts +0 -8
  155. package/lib/typescript/module/src/components/WarningView.d.ts.map +0 -1
  156. package/lib/typescript/module/src/components/index.d.ts +0 -9
  157. package/lib/typescript/module/src/components/index.d.ts.map +0 -1
  158. package/lib/typescript/module/src/index.d.ts +0 -149
  159. package/lib/typescript/module/src/index.d.ts.map +0 -1
  160. package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts +0 -48
  161. package/lib/typescript/module/src/specs/NativeLiveVoiceSdk.d.ts.map +0 -1
  162. package/lib/typescript/module/src/util/Colors.d.ts +0 -13
  163. package/lib/typescript/module/src/util/Colors.d.ts.map +0 -1
  164. package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts +0 -12
  165. package/lib/typescript/module/src/util/ForegroundServiceConfig.d.ts.map +0 -1
  166. package/lib/typescript/module/src/util/PlayingState.d.ts +0 -7
  167. package/lib/typescript/module/src/util/PlayingState.d.ts.map +0 -1
  168. package/lib/typescript/module/src/util/Translations.d.ts +0 -22
  169. package/lib/typescript/module/src/util/Translations.d.ts.map +0 -1
  170. package/lib/typescript/module/src/util/UIState.d.ts.map +0 -1
  171. package/react-native.config.js +0 -12
  172. package/src/icons/pause.png +0 -0
  173. package/src/icons/play.png +0 -0
  174. /package/android/{generated → app/build/generated/source/codegen}/jni/RNLiveVoiceSpec.h +0 -0
  175. /package/lib/{typescript/module → module}/package.json +0 -0
  176. /package/lib/typescript/{commonjs/src → src}/components/AudioOutputSwitchView.d.ts +0 -0
  177. /package/lib/typescript/{commonjs/src → src}/components/BrandingView.d.ts +0 -0
  178. /package/lib/typescript/{commonjs/src → src}/components/ErrorView.d.ts +0 -0
  179. /package/lib/typescript/{commonjs/src → src}/components/LiveVoiceView.d.ts +0 -0
  180. /package/lib/typescript/{commonjs/src → src}/components/ReconnectingView.d.ts +0 -0
  181. /package/lib/typescript/{commonjs/src → src}/components/WarningView.d.ts +0 -0
  182. /package/lib/typescript/{commonjs/src → src}/components/index.d.ts +0 -0
  183. /package/lib/typescript/{commonjs/src → src}/util/ForegroundServiceConfig.d.ts +0 -0
  184. /package/lib/typescript/{commonjs/src → src}/util/PlayingState.d.ts +0 -0
  185. /package/lib/typescript/{commonjs/src → src}/util/Translations.d.ts +0 -0
@@ -21,17 +21,17 @@ export * from "./util/PlayingState.js";
21
21
 
22
22
  /**
23
23
  * Initialize the LiveVoice SDK.
24
- *
24
+ *
25
25
  * @param {ForegroundServiceConfig} [androidServiceConfig=serviceDisabled] - Pass the service config on Android.
26
26
  */
27
27
  export function initialize(androidServiceConfig = serviceDisabled) {
28
28
  let serviceTypeAsString;
29
29
  switch (androidServiceConfig.type) {
30
- case 'Disabled':
30
+ case "Disabled":
31
31
  serviceTypeAsString = null;
32
32
  break;
33
- case 'Enabled':
34
- if (androidServiceConfig.message == null) serviceTypeAsString = 'LV_NOTIFICATION_DEFAULT_MESSAGE';else serviceTypeAsString = androidServiceConfig.message;
33
+ case "Enabled":
34
+ if (androidServiceConfig.message == null) serviceTypeAsString = "LV_NOTIFICATION_DEFAULT_MESSAGE";else serviceTypeAsString = androidServiceConfig.message;
35
35
  break;
36
36
  }
37
37
 
@@ -41,9 +41,9 @@ export function initialize(androidServiceConfig = serviceDisabled) {
41
41
 
42
42
  /**
43
43
  * Join an event.
44
- *
44
+ *
45
45
  * @abstract By joining an event you can display the event's channels.
46
- *
46
+ *
47
47
  * @param {string} joinCode - The listener code of your event. You can find it on the event page of the admin web-interface by clicking on 'Share with your audience'.
48
48
  * @param {string | null} password - The optional password to join the event. If a password has been set for listeners in your event, it can be found in the 'Access' tab of the event page of the admin web-interface.
49
49
  * @param {string} apiKey - Your API key. You can find your API key in the account page when logged in on the website.
@@ -54,7 +54,7 @@ export function joinEvent(joinCode, password, apiKey) {
54
54
 
55
55
  /**
56
56
  * Leave the current event.
57
- *
57
+ *
58
58
  * @abstract You can explicitly leave an event to tear down any network connections the SDK uses when you no longer display any channels.
59
59
  */
60
60
  export function leaveEvent() {
@@ -63,7 +63,7 @@ export function leaveEvent() {
63
63
 
64
64
  /**
65
65
  * Reconnect when a connection error occurred.
66
- *
66
+ *
67
67
  * @abstract Call this method to try to reconnect when a connection error has occurred.
68
68
  */
69
69
  export function reconnect() {
@@ -72,7 +72,7 @@ export function reconnect() {
72
72
 
73
73
  /**
74
74
  * Get the claims for the current event.
75
- *
75
+ *
76
76
  * @abstract The claims determine the authorized features for an API key. Claims are available, once an event has been joined.
77
77
  * @returns {Claims | null} The authorization claims, or `nil` if not yet joined
78
78
  */
@@ -98,7 +98,7 @@ export function getCurrentUiState() {
98
98
  *
99
99
  * @abstract You should only need to call this method to get an initial value. Use {@link onAvailableSubtitleConfigsChanged}
100
100
  ` to be updated when the available subtitle configurations change.
101
- * @returns {AvailableSubtitleConfigs} The current available subtitle configuration
101
+ * @returns {[AvailableSubtitle]} The current available subtitles
102
102
  */
103
103
  export function getCurrentSubtitleConfiguration() {
104
104
  return JSON.parse(LiveVoiceSdkReactNative.getCurrentAvailableSubtitleConfigs());
@@ -155,15 +155,14 @@ export function stopChannel() {
155
155
  * @abstract The SDK can receive a single stream of subtitle fragments at a time.
156
156
  * You can stop receiving subtitles using {@link stopSubtitles()}.
157
157
  * Whenever you call this method, any previous subtitle streams are stopped automatically and you receive the subtitles for the requested channel and language instead.
158
- *
158
+ *
159
159
  * Note: You have to make sure that subtitles for the given channel and language are enabled in the web-interface. You can use the {@link onAvailableSubtitleConfigsChanged} handler to check if subtitles are available for a given channel in a given language.
160
- *
160
+ *
161
161
  * @param {number | null} channelId - The channel to receive subtitles for. Set to `null` to always receive subtitles for the currently playing channel.
162
- * @param {string | null} language - The language code for the translation, or `null` to request the transcript.
163
162
  */
164
- export function startSubtitles(channelId, language) {
163
+ export function startSubtitles(channelId) {
165
164
  const nativeSafeId = channelId == null ? -1 : channelId;
166
- LiveVoiceSdkReactNative.startSubtitles(nativeSafeId, language);
165
+ LiveVoiceSdkReactNative.startSubtitles(nativeSafeId);
167
166
  }
168
167
 
169
168
  /**
@@ -177,7 +176,7 @@ export function stopSubtitles() {
177
176
 
178
177
  /**
179
178
  * Handle changes of the audio output.
180
- *
179
+ *
181
180
  * @returns {object} - An object with a `remove` method to unsubscribe from the event.
182
181
  */
183
182
  export function onAudioOutputChanged(handler) {
@@ -188,7 +187,7 @@ export function onAudioOutputChanged(handler) {
188
187
 
189
188
  /**
190
189
  * Handle changes of the UI state.
191
- *
190
+ *
192
191
  * @returns {object} - An object with a `remove` method to unsubscribe from the event.
193
192
  */
194
193
  export function onUiStateChanged(handler) {
@@ -199,19 +198,18 @@ export function onUiStateChanged(handler) {
199
198
 
200
199
  /**
201
200
  * Handle changes of the available subtitles.
202
- *
201
+ *
203
202
  * @returns { object } - An object with a`remove` method to unsubscribe from the event.
204
203
  */
205
204
  export function onAvailableSubtitleConfigsChanged(handler) {
206
205
  return LiveVoiceSdkReactNative.onAvailableSubtitleConfigsChanged(data => {
207
- const mapOfSubtitles = JSON.parse(data);
208
- handler(mapOfSubtitles);
206
+ handler(JSON.parse(data));
209
207
  });
210
208
  }
211
209
 
212
210
  /**
213
211
  * Handle changes of the available subtitles.
214
- *
212
+ *
215
213
  * @returns {object} - An object with a `remove` method to unsubscribe from the event.
216
214
  */
217
215
  export function onSubtitlesChanged(handler) {
@@ -1 +1 @@
1
- {"version":3,"names":["LiveVoiceSdkReactNative","serviceDisabled","initialize","androidServiceConfig","serviceTypeAsString","type","message","joinEvent","joinCode","password","apiKey","leaveEvent","reconnect","getCurrentClaims","claims","JSON","parse","getCurrentUiState","getCurrentSubtitleConfiguration","getCurrentAvailableSubtitleConfigs","getCurrentSubtitles","getCurrentAudioState","setLiveVoiceUseSpeaker","value","startChannel","id","stopChannel","startSubtitles","channelId","language","nativeSafeId","stopSubtitles","onAudioOutputChanged","handler","data","onUiStateChanged","onAvailableSubtitleConfigsChanged","mapOfSubtitles","onSubtitlesChanged","openLiveVoiceWebsite"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,uBAAuB,MA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QAAQ,CAAC;AAClE;;AAEA;AACA;AACA;AACA,OAAO,SAASE,aAAaA,CAAA,EAAS;EAClC,OAAO/B,uBAAuB,CAAC+B,aAAa,CAAC,CAAC;AAClD;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAACC,OAAsC,EAA2B;EAClG,OAAOjC,uBAAuB,CAACgC,oBAAoB,CAAEE,IAAa,IAAK;IACnED,OAAO,CAACC,IAAI,CAAC;EACjB,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAACF,OAA+B,EAA2B;EACvF,OAAOjC,uBAAuB,CAACmC,gBAAgB,CAAED,IAAY,IAAK;IAC9DD,OAAO,CAAClB,IAAI,CAACC,KAAK,CAACkB,IAAI,CAAC,CAAC;EAC7B,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,iCAAiCA,CAACH,OAAgD,EAA2B;EACzH,OAAOjC,uBAAuB,CAACoC,iCAAiC,CAAEF,IAAY,IAAK;IAC/E,MAAMG,cAAwC,GAAGtB,IAAI,CAACC,KAAK,CAACkB,IAAI,CAAC;IACjED,OAAO,CAACI,cAAc,CAAC;EAC3B,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACL,OAAgC,EAA2B;EAC1F,OAAOjC,uBAAuB,CAACsC,kBAAkB,CAAEJ,IAAY,IAAK;IAChE,MAAMG,cAAwB,GAAGtB,IAAI,CAACC,KAAK,CAACkB,IAAI,CAAC;IACjDD,OAAO,CAACI,cAAc,CAAC;EAC3B,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACA,OAAO,SAASE,oBAAoBA,CAAA,EAAS;EACzC,OAAOvC,uBAAuB,CAACuC,oBAAoB,CAAC,CAAC;AACzD","ignoreList":[]}
1
+ {"version":3,"names":["LiveVoiceSdkReactNative","serviceDisabled","initialize","androidServiceConfig","serviceTypeAsString","type","message","joinEvent","joinCode","password","apiKey","leaveEvent","reconnect","getCurrentClaims","claims","JSON","parse","getCurrentUiState","getCurrentSubtitleConfiguration","getCurrentAvailableSubtitleConfigs","getCurrentSubtitles","getCurrentAudioState","setLiveVoiceUseSpeaker","value","startChannel","id","stopChannel","startSubtitles","channelId","nativeSafeId","stopSubtitles","onAudioOutputChanged","handler","data","onUiStateChanged","onAvailableSubtitleConfigsChanged","onSubtitlesChanged","mapOfSubtitles","openLiveVoiceWebsite"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,uBAAuB,MAAM,+BAA4B;AAEhE,SAEEC,eAAe,QACV,mCAAgC;AAIvC,cAAc,uBAAc;AAC5B,cAAc,wBAAqB;AACnC,cAAc,mCAAgC;AAC9C,cAAc,mBAAgB;AAC9B,cAAc,wBAAqB;;AAEnC;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CACxBC,oBAA6C,GAAGF,eAAe,EACzD;EACN,IAAIG,mBAAkC;EACtC,QAAQD,oBAAoB,CAACE,IAAI;IAC/B,KAAK,UAAU;MACbD,mBAAmB,GAAG,IAAI;MAC1B;IACF,KAAK,SAAS;MACZ,IAAID,oBAAoB,CAACG,OAAO,IAAI,IAAI,EACtCF,mBAAmB,GAAG,iCAAiC,CAAC,KACrDA,mBAAmB,GAAGD,oBAAoB,CAACG,OAAO;MACvD;EACJ;;EAEA;EACAN,uBAAuB,CAACE,UAAU,CAACE,mBAAmB,CAAC;AACzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASG,SAASA,CACvBC,QAAgB,EAChBC,QAAuB,EACvBC,MAAc,EACR;EACN,OAAOV,uBAAuB,CAACO,SAAS,CAACC,QAAQ,EAAEC,QAAQ,EAAEC,MAAM,CAAC;AACtE;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UA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C,uBAAuB,CAACoC,kBAAkB,CAAEH,IAAY,IAAK;IAClE,MAAMI,cAAwB,GAAGtB,IAAI,CAACC,KAAK,CAACiB,IAAI,CAAC;IACjDD,OAAO,CAACK,cAAc,CAAC;EACzB,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAAA,EAAS;EAC3C,OAAOtC,uBAAuB,CAACsC,oBAAoB,CAAC,CAAC;AACvD","ignoreList":[]}
@@ -12,5 +12,9 @@
12
12
  */
13
13
 
14
14
  import { TurboModuleRegistry } from 'react-native';
15
+
16
+ // Type alias is required for backwards compatibility with RN < 0.80 codegen parsers
17
+ // which statically look for the exact identifier name 'EventEmitter'
18
+
15
19
  export default TurboModuleRegistry.getEnforcing('LiveVoiceModule');
16
20
  //# sourceMappingURL=NativeLiveVoiceSdk.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeLiveVoiceSdk.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,mBAAmB,QAAQ,cAAc;AAgElD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,iBAAiB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeLiveVoiceSdk.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,mBAAmB,QAA6C,cAAc;;AAEvF;AACA;;AAgEA,eAAeA,mBAAmB,CAACC,YAAY,CAAO,iBAAiB,CAAC","ignoreList":[]}
@@ -13,11 +13,12 @@
13
13
 
14
14
  export const COLORS = {
15
15
  primary: '#F1521B',
16
- primaryOutline: 'rgba(241, 82, 27, 0.2)',
17
16
  bg: '#F5F5F5',
18
17
  bgDark: '#1E1F23',
19
18
  cardBg: '#fff',
20
19
  cardBgDark: '#212429',
20
+ divider: '#f0f0f0',
21
+ dividerDark: '#333333',
21
22
  white: '#fff',
22
23
  black: '#191919',
23
24
  gray: '#808080',
@@ -1 +1 @@
1
- {"version":3,"names":["COLORS","primary","primaryOutline","bg","bgDark","cardBg","cardBgDark","white","black","gray"],"sourceRoot":"../../../src","sources":["util/Colors.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,SAAS;EAClBC,cAAc,EAAE,wBAAwB;EAExCC,EAAE,EAAE,SAAS;EACbC,MAAM,EAAE,SAAS;EAEjBC,MAAM,EAAE,MAAM;EACdC,UAAU,EAAE,SAAS;EAErBC,KAAK,EAAE,MAAM;EACbC,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE,SAAS;EAEf,UAAU,EAAE;AACd,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["COLORS","primary","bg","bgDark","cardBg","cardBgDark","divider","dividerDark","white","black","gray"],"sourceRoot":"../../../src","sources":["util/Colors.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,MAAM,GAAG;EACpBC,OAAO,EAAE,SAAS;EAElBC,EAAE,EAAE,SAAS;EACbC,MAAM,EAAE,SAAS;EAEjBC,MAAM,EAAE,MAAM;EACdC,UAAU,EAAE,SAAS;EAErBC,OAAO,EAAE,SAAS;EAClBC,WAAW,EAAE,SAAS;EAEtBC,KAAK,EAAE,MAAM;EACbC,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE,SAAS;EAEf,UAAU,EAAE;AACd,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AudioOutputSwitchView.d.ts","sourceRoot":"","sources":["../../../../src/components/AudioOutputSwitchView.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA6ElE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrandingView.d.ts","sourceRoot":"","sources":["../../../../src/components/BrandingView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyBhD,CAAC"}
@@ -5,9 +5,11 @@ export interface ChannelProps {
5
5
  playingState: PlayingState;
6
6
  muted: boolean;
7
7
  isOnline: boolean;
8
- aiSpeaker: boolean;
8
+ hasAudio: boolean;
9
+ hasSubtitles: boolean;
9
10
  isDarkMode?: boolean;
10
- onPress: () => void;
11
+ onAudioPress?: () => void;
12
+ onSubtitlesPress?: () => void;
11
13
  }
12
14
  export declare const ChannelView: React.FC<ChannelProps>;
13
15
  //# sourceMappingURL=ChannelView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelView.d.ts","sourceRoot":"","sources":["../../../../src/components/ChannelView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIzD,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA4C9C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorView.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,UAAU,CAAA;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA6B1C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveVoiceView.d.ts","sourceRoot":"","sources":["../../../../src/components/LiveVoiceView.tsx"],"names":[],"mappings":"AAqCA,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwItD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,341 @@
1
+ import { PlayingState } from "../util/PlayingState";
2
+ export interface PlayButtonProps {
3
+ playingState: PlayingState;
4
+ isChannelOnline: boolean;
5
+ hasAudio?: boolean;
6
+ hasSubtitles?: boolean;
7
+ isDarkMode?: boolean;
8
+ onAudioPress?: () => void;
9
+ onSubtitlesPress?: () => void;
10
+ onPress?: () => void;
11
+ }
12
+ declare const PlayButtonView: React.FC<PlayButtonProps>;
13
+ type ButtonStyleType = "paused" | "playing" | "offline";
14
+ export declare const getButtonStyle: (type: ButtonStyleType, isDarkMode: boolean, isSplit?: boolean) => {
15
+ backgroundColor: string;
16
+ borderColor: string;
17
+ width: number;
18
+ height: number;
19
+ borderRadius: number;
20
+ borderWidth: number;
21
+ alignItems: "center";
22
+ justifyContent: "center";
23
+ };
24
+ export declare const getSplitButtonContainerStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
25
+ backgroundColor: string;
26
+ borderColor: string;
27
+ width: number;
28
+ height: number;
29
+ borderRadius: number;
30
+ borderWidth: number;
31
+ flexDirection: "row";
32
+ alignItems: "center";
33
+ justifyContent: "center";
34
+ overflow: "hidden";
35
+ } | {
36
+ backgroundColor: string;
37
+ borderColor: string;
38
+ width: number;
39
+ height: number;
40
+ borderRadius: number;
41
+ borderWidth: number;
42
+ flexDirection: "row";
43
+ alignItems: "center";
44
+ justifyContent: "center";
45
+ overflow: "hidden";
46
+ } | {
47
+ backgroundColor: string;
48
+ borderColor: string;
49
+ width: number;
50
+ height: number;
51
+ borderRadius: number;
52
+ borderWidth: number;
53
+ flexDirection: "row";
54
+ alignItems: "center";
55
+ justifyContent: "center";
56
+ overflow: "hidden";
57
+ } | {
58
+ backgroundColor: string;
59
+ borderColor: string;
60
+ width: number;
61
+ height: number;
62
+ borderRadius: number;
63
+ borderWidth: number;
64
+ flexDirection: "row";
65
+ alignItems: "center";
66
+ justifyContent: "center";
67
+ overflow: "hidden";
68
+ } | {
69
+ backgroundColor: string;
70
+ borderColor: string;
71
+ width: number;
72
+ height: number;
73
+ borderRadius: number;
74
+ borderWidth: number;
75
+ flexDirection: "row";
76
+ alignItems: "center";
77
+ justifyContent: "center";
78
+ overflow: "hidden";
79
+ } | {
80
+ backgroundColor: string;
81
+ borderColor: string;
82
+ width: number;
83
+ height: number;
84
+ borderRadius: number;
85
+ borderWidth: number;
86
+ flexDirection: "row";
87
+ alignItems: "center";
88
+ justifyContent: "center";
89
+ overflow: "hidden";
90
+ };
91
+ export declare const getSplitButtonAudioStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
92
+ flex: number;
93
+ height: number;
94
+ alignItems: "center";
95
+ justifyContent: "center";
96
+ };
97
+ export declare const getSplitButtonSubtitlesStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
98
+ flex: number;
99
+ height: number;
100
+ alignItems: "center";
101
+ justifyContent: "center";
102
+ };
103
+ export declare const getDividerStyle: (type: ButtonStyleType, isDarkMode: boolean) => {
104
+ width: number;
105
+ height: number;
106
+ backgroundColor: string;
107
+ };
108
+ export declare const ButtonStyles: {
109
+ paused: {
110
+ light: {
111
+ backgroundColor: string;
112
+ borderColor: string;
113
+ width: number;
114
+ height: number;
115
+ borderRadius: number;
116
+ borderWidth: number;
117
+ alignItems: "center";
118
+ justifyContent: "center";
119
+ };
120
+ dark: {
121
+ backgroundColor: string;
122
+ borderColor: string;
123
+ width: number;
124
+ height: number;
125
+ borderRadius: number;
126
+ borderWidth: number;
127
+ alignItems: "center";
128
+ justifyContent: "center";
129
+ };
130
+ };
131
+ playing: {
132
+ light: {
133
+ backgroundColor: string;
134
+ borderColor: string;
135
+ width: number;
136
+ height: number;
137
+ borderRadius: number;
138
+ borderWidth: number;
139
+ alignItems: "center";
140
+ justifyContent: "center";
141
+ };
142
+ dark: {
143
+ backgroundColor: string;
144
+ borderColor: string;
145
+ width: number;
146
+ height: number;
147
+ borderRadius: number;
148
+ borderWidth: number;
149
+ alignItems: "center";
150
+ justifyContent: "center";
151
+ };
152
+ };
153
+ offline: {
154
+ light: {
155
+ backgroundColor: string;
156
+ borderColor: string;
157
+ width: number;
158
+ height: number;
159
+ borderRadius: number;
160
+ borderWidth: number;
161
+ alignItems: "center";
162
+ justifyContent: "center";
163
+ };
164
+ dark: {
165
+ backgroundColor: string;
166
+ borderColor: string;
167
+ width: number;
168
+ height: number;
169
+ borderRadius: number;
170
+ borderWidth: number;
171
+ alignItems: "center";
172
+ justifyContent: "center";
173
+ };
174
+ };
175
+ };
176
+ export declare const SplitButtonStyles: {
177
+ paused: {
178
+ light: {
179
+ container: {
180
+ backgroundColor: string;
181
+ borderColor: string;
182
+ width: number;
183
+ height: number;
184
+ borderRadius: number;
185
+ borderWidth: number;
186
+ flexDirection: "row";
187
+ alignItems: "center";
188
+ justifyContent: "center";
189
+ overflow: "hidden";
190
+ };
191
+ audio: {
192
+ flex: number;
193
+ height: number;
194
+ alignItems: "center";
195
+ justifyContent: "center";
196
+ };
197
+ subtitles: {
198
+ flex: number;
199
+ height: number;
200
+ alignItems: "center";
201
+ justifyContent: "center";
202
+ };
203
+ };
204
+ dark: {
205
+ container: {
206
+ backgroundColor: string;
207
+ borderColor: string;
208
+ width: number;
209
+ height: number;
210
+ borderRadius: number;
211
+ borderWidth: number;
212
+ flexDirection: "row";
213
+ alignItems: "center";
214
+ justifyContent: "center";
215
+ overflow: "hidden";
216
+ };
217
+ audio: {
218
+ flex: number;
219
+ height: number;
220
+ alignItems: "center";
221
+ justifyContent: "center";
222
+ };
223
+ subtitles: {
224
+ flex: number;
225
+ height: number;
226
+ alignItems: "center";
227
+ justifyContent: "center";
228
+ };
229
+ };
230
+ };
231
+ playing: {
232
+ light: {
233
+ container: {
234
+ backgroundColor: string;
235
+ borderColor: string;
236
+ width: number;
237
+ height: number;
238
+ borderRadius: number;
239
+ borderWidth: number;
240
+ flexDirection: "row";
241
+ alignItems: "center";
242
+ justifyContent: "center";
243
+ overflow: "hidden";
244
+ };
245
+ audio: {
246
+ flex: number;
247
+ height: number;
248
+ alignItems: "center";
249
+ justifyContent: "center";
250
+ };
251
+ subtitles: {
252
+ flex: number;
253
+ height: number;
254
+ alignItems: "center";
255
+ justifyContent: "center";
256
+ };
257
+ };
258
+ dark: {
259
+ container: {
260
+ backgroundColor: string;
261
+ borderColor: string;
262
+ width: number;
263
+ height: number;
264
+ borderRadius: number;
265
+ borderWidth: number;
266
+ flexDirection: "row";
267
+ alignItems: "center";
268
+ justifyContent: "center";
269
+ overflow: "hidden";
270
+ };
271
+ audio: {
272
+ flex: number;
273
+ height: number;
274
+ alignItems: "center";
275
+ justifyContent: "center";
276
+ };
277
+ subtitles: {
278
+ flex: number;
279
+ height: number;
280
+ alignItems: "center";
281
+ justifyContent: "center";
282
+ };
283
+ };
284
+ };
285
+ offline: {
286
+ light: {
287
+ container: {
288
+ backgroundColor: string;
289
+ borderColor: string;
290
+ width: number;
291
+ height: number;
292
+ borderRadius: number;
293
+ borderWidth: number;
294
+ flexDirection: "row";
295
+ alignItems: "center";
296
+ justifyContent: "center";
297
+ overflow: "hidden";
298
+ };
299
+ audio: {
300
+ flex: number;
301
+ height: number;
302
+ alignItems: "center";
303
+ justifyContent: "center";
304
+ };
305
+ subtitles: {
306
+ flex: number;
307
+ height: number;
308
+ alignItems: "center";
309
+ justifyContent: "center";
310
+ };
311
+ };
312
+ dark: {
313
+ container: {
314
+ backgroundColor: string;
315
+ borderColor: string;
316
+ width: number;
317
+ height: number;
318
+ borderRadius: number;
319
+ borderWidth: number;
320
+ flexDirection: "row";
321
+ alignItems: "center";
322
+ justifyContent: "center";
323
+ overflow: "hidden";
324
+ };
325
+ audio: {
326
+ flex: number;
327
+ height: number;
328
+ alignItems: "center";
329
+ justifyContent: "center";
330
+ };
331
+ subtitles: {
332
+ flex: number;
333
+ height: number;
334
+ alignItems: "center";
335
+ justifyContent: "center";
336
+ };
337
+ };
338
+ };
339
+ };
340
+ export default PlayButtonView;
341
+ //# sourceMappingURL=PlayButtonView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlayButtonView.d.ts","sourceRoot":"","sources":["../../../../src/components/PlayButtonView.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;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AiB;IAChC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,EAAE,YAAY,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmExD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WarningView.d.ts","sourceRoot":"","sources":["../../../../src/components/WarningView.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAiB9C,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.tsx"],"names":[],"mappings":"AAWA,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
@@ -1,17 +1,14 @@
1
- import { type UiState } from './util/UIState';
2
- import { type ForegroundServiceConfig } from './util/ForegroundServiceConfig';
3
- export type AvailableSubtitleConfigs = {
4
- [key: string]: (string | null)[];
5
- };
1
+ import { type UiState, type AvailableSubtitle } from "./util/UIState";
2
+ import { type ForegroundServiceConfig } from "./util/ForegroundServiceConfig";
6
3
  export type Claims = {
7
4
  hideBranding: boolean;
8
5
  customUiAllowed: boolean;
9
6
  };
10
- export * from './components';
11
- export * from './util/Translations';
12
- export * from './util/ForegroundServiceConfig';
13
- export * from './util/UIState';
14
- export * from './util/PlayingState';
7
+ export * from "./components";
8
+ export * from "./util/Translations";
9
+ export * from "./util/ForegroundServiceConfig";
10
+ export * from "./util/UIState";
11
+ export * from "./util/PlayingState";
15
12
  /**
16
13
  * Initialize the LiveVoice SDK.
17
14
  *
@@ -60,9 +57,9 @@ export declare function getCurrentUiState(): UiState;
60
57
  *
61
58
  * @abstract You should only need to call this method to get an initial value. Use {@link onAvailableSubtitleConfigsChanged}
62
59
  ` to be updated when the available subtitle configurations change.
63
- * @returns {AvailableSubtitleConfigs} The current available subtitle configuration
60
+ * @returns {[AvailableSubtitle]} The current available subtitles
64
61
  */
65
- export declare function getCurrentSubtitleConfiguration(): AvailableSubtitleConfigs;
62
+ export declare function getCurrentSubtitleConfiguration(): [AvailableSubtitle];
66
63
  /**
67
64
  * Get the current subtitle elemens LiveVoice SDK.
68
65
  *
@@ -103,9 +100,8 @@ export declare function stopChannel(): void;
103
100
  * Note: You have to make sure that subtitles for the given channel and language are enabled in the web-interface. You can use the {@link onAvailableSubtitleConfigsChanged} handler to check if subtitles are available for a given channel in a given language.
104
101
  *
105
102
  * @param {number | null} channelId - The channel to receive subtitles for. Set to `null` to always receive subtitles for the currently playing channel.
106
- * @param {string | null} language - The language code for the translation, or `null` to request the transcript.
107
103
  */
108
- export declare function startSubtitles(channelId: number | null, language: string | null): void;
104
+ export declare function startSubtitles(channelId: number | null): void;
109
105
  /**
110
106
  * Stop receiving subtitles.
111
107
  */
@@ -131,7 +127,7 @@ export declare function onUiStateChanged(handler: (arg: UiState) => void): {
131
127
  *
132
128
  * @returns { object } - An object with a`remove` method to unsubscribe from the event.
133
129
  */
134
- export declare function onAvailableSubtitleConfigsChanged(handler: (arg: AvailableSubtitleConfigs) => void): {
130
+ export declare function onAvailableSubtitleConfigsChanged(handler: (arg: [AvailableSubtitle]) => void): {
135
131
  remove: () => void;
136
132
  };
137
133
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE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