@byteplus/react-native-live-push 1.1.3-rc.4 → 1.3.0-rc.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 (68) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/com/volcengine/velive/rn/push/ClassHelper.java +9 -0
  3. package/android/src/main/java/com/volcengine/velive/rn/push/NativeVariableManager.java +5 -8
  4. package/android/src/main/java/com/volcengine/velive/rn/push/VeLivePushModule.java +1 -0
  5. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerManager.java +2 -4
  6. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerView.java +50 -145
  7. package/android/src/main/java/com/volcengine/velive/rn/push/mixer/MixerViewManager.java +1 -37
  8. package/ios/VeLiveMixerHelper.h +16 -11
  9. package/ios/VeLiveMixerHelper.m +39 -13
  10. package/ios/VeLiveMixerView.h +1 -8
  11. package/ios/VeLiveMixerView.m +178 -231
  12. package/ios/VeLiveMixerViewManager.m +2 -38
  13. package/lib/commonjs/index.js +23205 -20306
  14. package/lib/commonjs/typescript/android/index.d.ts +0 -3
  15. package/lib/commonjs/typescript/codegen/android/api.d.ts +190 -644
  16. package/lib/commonjs/typescript/codegen/android/callback.d.ts +234 -2
  17. package/lib/commonjs/typescript/codegen/android/errorcode.d.ts +66 -0
  18. package/lib/commonjs/typescript/codegen/android/keytype.d.ts +1014 -181
  19. package/lib/commonjs/typescript/codegen/ios/api.d.ts +890 -0
  20. package/lib/commonjs/typescript/codegen/ios/callback.d.ts +162 -0
  21. package/lib/commonjs/typescript/codegen/ios/errorcode.d.ts +101 -1
  22. package/lib/commonjs/typescript/codegen/ios/keytype.d.ts +694 -0
  23. package/lib/commonjs/typescript/codegen/pack/api.d.ts +303 -686
  24. package/lib/commonjs/typescript/codegen/pack/callback.d.ts +37 -38
  25. package/lib/commonjs/typescript/codegen/pack/errorcode.d.ts +75 -5
  26. package/lib/commonjs/typescript/codegen/pack/keytype.d.ts +1002 -298
  27. package/lib/commonjs/typescript/core/api.d.ts +2 -1
  28. package/lib/commonjs/typescript/core/keytype.d.ts +2 -3
  29. package/lib/commonjs/typescript/core/pusher.d.ts +0 -3
  30. package/lib/commonjs/typescript/view/MixView.d.ts +1 -9
  31. package/lib/module/index.js +23206 -20306
  32. package/lib/module/typescript/android/index.d.ts +0 -3
  33. package/lib/module/typescript/codegen/android/api.d.ts +190 -644
  34. package/lib/module/typescript/codegen/android/callback.d.ts +234 -2
  35. package/lib/module/typescript/codegen/android/errorcode.d.ts +66 -0
  36. package/lib/module/typescript/codegen/android/keytype.d.ts +1014 -181
  37. package/lib/module/typescript/codegen/ios/api.d.ts +890 -0
  38. package/lib/module/typescript/codegen/ios/callback.d.ts +162 -0
  39. package/lib/module/typescript/codegen/ios/errorcode.d.ts +101 -1
  40. package/lib/module/typescript/codegen/ios/keytype.d.ts +694 -0
  41. package/lib/module/typescript/codegen/pack/api.d.ts +303 -686
  42. package/lib/module/typescript/codegen/pack/callback.d.ts +37 -38
  43. package/lib/module/typescript/codegen/pack/errorcode.d.ts +75 -5
  44. package/lib/module/typescript/codegen/pack/keytype.d.ts +1002 -298
  45. package/lib/module/typescript/core/api.d.ts +2 -1
  46. package/lib/module/typescript/core/keytype.d.ts +2 -3
  47. package/lib/module/typescript/core/pusher.d.ts +0 -3
  48. package/lib/module/typescript/view/MixView.d.ts +1 -9
  49. package/lib/typescript/android/index.d.ts +0 -3
  50. package/lib/typescript/codegen/android/api.d.ts +190 -644
  51. package/lib/typescript/codegen/android/callback.d.ts +234 -2
  52. package/lib/typescript/codegen/android/errorcode.d.ts +66 -0
  53. package/lib/typescript/codegen/android/keytype.d.ts +1014 -181
  54. package/lib/typescript/codegen/ios/api.d.ts +890 -0
  55. package/lib/typescript/codegen/ios/callback.d.ts +162 -0
  56. package/lib/typescript/codegen/ios/errorcode.d.ts +101 -1
  57. package/lib/typescript/codegen/ios/keytype.d.ts +694 -0
  58. package/lib/typescript/codegen/pack/api.d.ts +303 -686
  59. package/lib/typescript/codegen/pack/callback.d.ts +37 -38
  60. package/lib/typescript/codegen/pack/errorcode.d.ts +75 -5
  61. package/lib/typescript/codegen/pack/keytype.d.ts +1002 -298
  62. package/lib/typescript/core/api.d.ts +2 -1
  63. package/lib/typescript/core/keytype.d.ts +2 -3
  64. package/lib/typescript/core/pusher.d.ts +0 -3
  65. package/lib/typescript/view/MixView.d.ts +1 -9
  66. package/package.json +1 -1
  67. package/react-native-velive-push.podspec +3 -3
  68. package/android/src/main/java/com/volcengine/velive/rn/push/ScreenCaptureHelper.java +0 -73
@@ -1,4 +1,5 @@
1
- import { VeLiveAudioDevice, VeLiveAudioFrame, VeLiveCameraDevice, VeLiveMediaPlayer, VeLivePusher as _VeLivePusher, VeLivePusherConfiguration, VeLiveVideoEffectManager, VeLiveVideoFrame } from '../codegen/pack/api';
1
+ import { VeLiveAudioDevice, VeLiveCameraDevice, VeLiveMediaPlayer, VeLivePusher as _VeLivePusher, VeLivePusherConfiguration, VeLiveVideoEffectManager } from '../codegen/pack/api';
2
+ import { VeLiveAudioFrame, VeLiveVideoFrame } from '../codegen/pack/keytype';
2
3
  import { VeLiveMixerManager } from './mixer';
3
4
  declare module '../codegen/pack/api' {
4
5
  interface VeLivePusher {
@@ -7,12 +7,11 @@ export interface MixConfig {
7
7
  alpha?: number;
8
8
  zOrder?: number;
9
9
  renderMode?: number;
10
- captureMode?: 'onchange' | 'realtime' | 'auto' | 'manual';
10
+ captureMode?: 'onchange' | 'realtime' | 'manual';
11
11
  }
12
12
  export interface MixViewConfig {
13
13
  renderMode?: number;
14
- captureMode?: 'onchange' | 'realtime' | 'auto' | 'manual';
14
+ captureMode?: 'onchange' | 'realtime' | 'manual';
15
15
  captureFramerate?: number;
16
- autoSensitivity?: number;
17
16
  }
18
17
  export { VeLiveOrientation, VeLiveAudioBufferType, VeLiveAudioCaptureConfiguration, VeLiveAudioCaptureType, VeLiveAudioChannel, VeLiveAudioEncoderConfiguration, VeLiveAudioFrameSource, VeLiveAudioMixType, VeLiveAudioPowerLevel, VeLiveAudioProfile, VeLiveAudioSampleRate, VeLiveFileRecorderConfiguration, VeLiveFirstFrameType, VeLiveMixAudioLayout, VeLiveMixVideoLayout, VeLiveNetworkQuality, VeLivePixelFormat, VeLivePusherLogLevel, VeLivePusherRenderMode, VeLivePusherStatistics, VeLivePusherStatus, VeLiveStreamMixDescription, VeLiveVideoBufferType, VeLiveVideoCaptureConfiguration, VeLiveVideoCaptureType, VeLiveVideoCodec, VeLiveVideoEffectLicenseConfiguration, VeLiveVideoEffectLicenseType, VeLiveVideoEncoderConfiguration, VeLiveVideoFrameSource, VeLiveVideoMirrorType, VeLiveVideoResolution, VeLiveVideoRotation, };
@@ -11,6 +11,3 @@ export interface InitOptions extends Partial<VeLivePusherConfiguration> {
11
11
  }
12
12
  export declare function initPusher(options: InitOptions): Promise<VeLivePusher>;
13
13
  export declare function relaunchPusher(options: InitOptions): Promise<VeLivePusher>;
14
- export declare function startScreenCapture(pusher: VeLivePusher, options: {
15
- enableAppAudio: boolean;
16
- }): Promise<boolean>;
@@ -17,20 +17,12 @@ export interface NativeMixViewProps extends ViewProps, Partial<MixViewConfig> {
17
17
  * - 'manual': User controls capture timing via ref methods
18
18
  * Best for: Custom scenarios where you want full control
19
19
  * Performance: Depends on user implementation
20
- *
21
- * - 'auto': Automatically detect based on content behavior (experimental)
22
- * Monitors view changes and switches between onchange/realtime
23
20
  */
24
- captureMode?: 'onchange' | 'realtime' | 'manual' | 'auto';
21
+ captureMode?: 'onchange' | 'realtime' | 'manual';
25
22
  /**
26
23
  * For realtime mode: custom framerate (default uses stream framerate)
27
24
  */
28
25
  captureFramerate?: number;
29
- /**
30
- * For auto mode: sensitivity threshold for switching to realtime
31
- * Higher values = less sensitive to changes
32
- */
33
- autoSensitivity?: number;
34
26
  }
35
27
  export interface MixViewEventProps {
36
28
  /**