react-native-tpstreams 0.1.15 → 0.2.1

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 (76) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +20 -418
  3. package/Tpstreams.podspec +3 -25
  4. package/android/build.gradle +14 -42
  5. package/android/src/main/AndroidManifest.xml +1 -3
  6. package/android/src/main/java/com/tpstreams/TPStreamsRNModule.kt +18 -0
  7. package/android/src/main/java/com/tpstreams/{TpstreamsPackage.kt → TPStreamsRNPackage.kt} +10 -5
  8. package/android/src/main/java/com/tpstreams/TPStreamsRNPlayerView.kt +162 -0
  9. package/android/src/main/java/com/tpstreams/TPStreamsRNPlayerViewManager.kt +97 -0
  10. package/ios/TpstreamsView.h +14 -0
  11. package/ios/TpstreamsView.mm +71 -0
  12. package/ios/TpstreamsViewManager.mm +19 -0
  13. package/lib/module/TPStreamsPlayer.js +159 -0
  14. package/lib/module/TPStreamsPlayer.js.map +1 -0
  15. package/lib/module/TPStreamsPlayerViewNativeComponent.ts +70 -0
  16. package/lib/module/index.js +10 -3
  17. package/lib/module/index.js.map +1 -1
  18. package/lib/typescript/package.json +1 -0
  19. package/lib/typescript/src/TPStreamsPlayer.d.ts +32 -0
  20. package/lib/typescript/src/TPStreamsPlayer.d.ts.map +1 -0
  21. package/lib/typescript/src/TPStreamsPlayerViewNativeComponent.d.ts +54 -0
  22. package/lib/typescript/src/TPStreamsPlayerViewNativeComponent.d.ts.map +1 -0
  23. package/lib/typescript/src/index.d.ts +8 -0
  24. package/lib/typescript/src/index.d.ts.map +1 -0
  25. package/package.json +42 -76
  26. package/src/TPStreamsPlayer.tsx +225 -0
  27. package/src/TPStreamsPlayerViewNativeComponent.ts +70 -0
  28. package/src/index.tsx +12 -7
  29. package/android/generated/java/com/tpstreams/NativeTpstreamsSpec.java +0 -37
  30. package/android/generated/jni/CMakeLists.txt +0 -36
  31. package/android/generated/jni/RNTpstreamsSpec-generated.cpp +0 -32
  32. package/android/generated/jni/RNTpstreamsSpec.h +0 -31
  33. package/android/generated/jni/react/renderer/components/RNTpstreamsSpec/RNTpstreamsSpecJSI-generated.cpp +0 -28
  34. package/android/generated/jni/react/renderer/components/RNTpstreamsSpec/RNTpstreamsSpecJSI.h +0 -71
  35. package/android/libs/extracted-aar/META-INF/com/android/build/gradle/aar-metadata.properties +0 -4
  36. package/android/src/main/AndroidManifestNew.xml +0 -2
  37. package/android/src/main/java/com/tpstreams/FragmentModule.kt +0 -225
  38. package/android/src/main/java/com/tpstreams/PlayerFragment.kt +0 -234
  39. package/android/src/main/java/com/tpstreams/TpStreamsPlayerView.kt +0 -102
  40. package/android/src/main/java/com/tpstreams/TpStreamsPlayerViewManager.kt +0 -55
  41. package/android/src/main/java/com/tpstreams/TpstreamsModule.kt +0 -168
  42. package/android/src/main/res/layout/fragment_player.xml +0 -29
  43. package/android/src/main/res/xml/network_security_config.xml +0 -8
  44. package/ios/Tpstreams.h +0 -6
  45. package/ios/Tpstreams.mm +0 -18
  46. package/ios/generated/RNTpstreamsSpec/RNTpstreamsSpec-generated.mm +0 -39
  47. package/ios/generated/RNTpstreamsSpec/RNTpstreamsSpec.h +0 -63
  48. package/ios/generated/RNTpstreamsSpecJSI-generated.cpp +0 -28
  49. package/ios/generated/RNTpstreamsSpecJSI.h +0 -71
  50. package/lib/commonjs/NativeTpstreams.js +0 -9
  51. package/lib/commonjs/NativeTpstreams.js.map +0 -1
  52. package/lib/commonjs/index.js +0 -10
  53. package/lib/commonjs/index.js.map +0 -1
  54. package/lib/commonjs/types.js +0 -2
  55. package/lib/commonjs/types.js.map +0 -1
  56. package/lib/module/NativeTpstreams.js +0 -5
  57. package/lib/module/NativeTpstreams.js.map +0 -1
  58. package/lib/module/types.js +0 -2
  59. package/lib/module/types.js.map +0 -1
  60. package/lib/typescript/commonjs/package.json +0 -1
  61. package/lib/typescript/commonjs/src/NativeTpstreams.d.ts +0 -7
  62. package/lib/typescript/commonjs/src/NativeTpstreams.d.ts.map +0 -1
  63. package/lib/typescript/commonjs/src/index.d.ts +0 -5
  64. package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
  65. package/lib/typescript/commonjs/src/types.d.ts +0 -11
  66. package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
  67. package/lib/typescript/module/src/NativeTpstreams.d.ts +0 -7
  68. package/lib/typescript/module/src/NativeTpstreams.d.ts.map +0 -1
  69. package/lib/typescript/module/src/index.d.ts +0 -5
  70. package/lib/typescript/module/src/index.d.ts.map +0 -1
  71. package/lib/typescript/module/src/types.d.ts +0 -11
  72. package/lib/typescript/module/src/types.d.ts.map +0 -1
  73. package/react-native.config.js +0 -12
  74. package/src/NativeTpstreams.ts +0 -8
  75. package/src/types.ts +0 -10
  76. /package/lib/{typescript/module → module}/package.json +0 -0
@@ -1,11 +0,0 @@
1
- export type TpStreamsPlayerProps = {
2
- videoId: string;
3
- accessToken: string;
4
- enableDownload?: boolean;
5
- autoPlay?: boolean;
6
- startAt?: number;
7
- offlineLicenseExpireTime?: number;
8
- downloadMetadata?: Record<string, string>;
9
- style?: import('react-native').ViewStyle;
10
- };
11
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,OAAO,cAAc,EAAE,SAAS,CAAC;CAC1C,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { TurboModule } from 'react-native';
2
- export interface Spec extends TurboModule {
3
- multiply(a: number, b: number): number;
4
- }
5
- declare const _default: Spec;
6
- export default _default;
7
- //# sourceMappingURL=NativeTpstreams.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NativeTpstreams.d.ts","sourceRoot":"","sources":["../../../../src/NativeTpstreams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxC;;AAED,wBAAmE"}
@@ -1,5 +0,0 @@
1
- import type { TpStreamsPlayerProps } from './types';
2
- declare const TpStreamsPlayerView: import("react-native").HostComponent<TpStreamsPlayerProps>;
3
- export default TpStreamsPlayerView;
4
- export type { TpStreamsPlayerProps };
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD,QAAA,MAAM,mBAAmB,4DAExB,CAAC;AAEF,eAAe,mBAAmB,CAAC;AACnC,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,11 +0,0 @@
1
- export type TpStreamsPlayerProps = {
2
- videoId: string;
3
- accessToken: string;
4
- enableDownload?: boolean;
5
- autoPlay?: boolean;
6
- startAt?: number;
7
- offlineLicenseExpireTime?: number;
8
- downloadMetadata?: Record<string, string>;
9
- style?: import('react-native').ViewStyle;
10
- };
11
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,OAAO,cAAc,EAAE,SAAS,CAAC;CAC1C,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * @type {import('@react-native-community/cli-types').UserDependencyConfig}
3
- */
4
- module.exports = {
5
- dependency: {
6
- platforms: {
7
- android: {
8
- cmakeListsPath: 'generated/jni/CMakeLists.txt',
9
- },
10
- },
11
- },
12
- };
@@ -1,8 +0,0 @@
1
- import type { TurboModule } from 'react-native';
2
- import { TurboModuleRegistry } from 'react-native';
3
-
4
- export interface Spec extends TurboModule {
5
- multiply(a: number, b: number): number;
6
- }
7
-
8
- export default TurboModuleRegistry.getEnforcing<Spec>('Tpstreams');
package/src/types.ts DELETED
@@ -1,10 +0,0 @@
1
- export type TpStreamsPlayerProps = {
2
- videoId: string;
3
- accessToken: string;
4
- enableDownload?: boolean;
5
- autoPlay?: boolean;
6
- startAt?: number;
7
- offlineLicenseExpireTime?: number;
8
- downloadMetadata?: Record<string, string>;
9
- style?: import('react-native').ViewStyle;
10
- };
File without changes