@bits-innovate/react-native-vstarcam 1.0.63 → 1.0.64

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.
@@ -245,7 +245,8 @@ public class VStarCamVideoView extends FrameLayout
245
245
 
246
246
  Method createPlayerMethod = appPlayerClass.getMethod(
247
247
  "createPlayer", long.class, Surface.class, int.class, int.class, int.class);
248
- Object result = createPlayerMethod.invoke(null, 0L, surface, width, height, 0);
248
+ // The 5th parameter appears to be audio rate. The Flutter SDK uses 8000.
249
+ Object result = createPlayerMethod.invoke(null, 0L, surface, width, height, 8000);
249
250
  playerPtr = (Long) result;
250
251
  sendErrorEvent("Player created: ptr=" + playerPtr + " size=" + width + "x" + height);
251
252
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bits-innovate/react-native-vstarcam",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "React Native bridge for VStarCam P2P SDK",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -43,4 +43,4 @@
43
43
  "react": "*",
44
44
  "react-native": "*"
45
45
  }
46
- }
46
+ }