react-native-tpstreams 1.0.3-debug.9 → 1.0.4

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 (31) hide show
  1. package/README.md +552 -76
  2. package/TPStreamsRNPlayerView.podspec +1 -1
  3. package/android/src/main/java/com/tpstreams/JsonUtils.kt +46 -0
  4. package/android/src/main/java/com/tpstreams/TPStreamsDownloadModule.kt +2 -7
  5. package/android/src/main/java/com/tpstreams/TPStreamsRNPlayerView.kt +3 -3
  6. package/ios/TPStreamsDownloadModule.swift +0 -13
  7. package/ios/TPStreamsRNPlayerView.swift +2 -2
  8. package/lib/typescript/src/TPStreamsDownload.d.ts +1 -1
  9. package/lib/typescript/src/TPStreamsDownload.d.ts.map +1 -1
  10. package/lib/typescript/src/TPStreamsPlayer.d.ts +1 -1
  11. package/lib/typescript/src/TPStreamsPlayer.d.ts.map +1 -1
  12. package/package.json +1 -4
  13. package/src/TPStreamsDownload.tsx +1 -1
  14. package/src/TPStreamsPlayer.tsx +1 -1
  15. package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/TPStreamsRNPlayerViewManagerDelegate.java +0 -87
  16. package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/TPStreamsRNPlayerViewManagerInterface.java +0 -34
  17. package/android/app/build/generated/source/codegen/jni/CMakeLists.txt +0 -36
  18. package/android/app/build/generated/source/codegen/jni/TPStreamsPlayerViewSpec-generated.cpp +0 -22
  19. package/android/app/build/generated/source/codegen/jni/TPStreamsPlayerViewSpec.h +0 -24
  20. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/ComponentDescriptors.cpp +0 -22
  21. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/ComponentDescriptors.h +0 -24
  22. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/EventEmitters.cpp +0 -107
  23. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/EventEmitters.h +0 -81
  24. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/Props.cpp +0 -32
  25. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/Props.h +0 -34
  26. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/ShadowNodes.cpp +0 -17
  27. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/ShadowNodes.h +0 -32
  28. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/States.cpp +0 -16
  29. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/States.h +0 -29
  30. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/TPStreamsPlayerViewSpecJSI-generated.cpp +0 -17
  31. package/android/app/build/generated/source/codegen/jni/react/renderer/components/TPStreamsPlayerViewSpec/TPStreamsPlayerViewSpecJSI.h +0 -19
@@ -1,81 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateEventEmitterH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewEventEmitter.h>
13
-
14
-
15
- namespace facebook::react {
16
- class TPStreamsRNPlayerViewEventEmitter : public ViewEventEmitter {
17
- public:
18
- using ViewEventEmitter::ViewEventEmitter;
19
-
20
- struct OnCurrentPosition {
21
- double position;
22
- };
23
-
24
- struct OnDuration {
25
- double duration;
26
- };
27
-
28
- struct OnIsPlaying {
29
- bool isPlaying;
30
- };
31
-
32
- struct OnPlaybackSpeed {
33
- Float speed;
34
- };
35
-
36
- struct OnPlayerStateChanged {
37
- int playbackState;
38
- };
39
-
40
- struct OnIsPlayingChanged {
41
- bool isPlaying;
42
- };
43
-
44
- struct OnPlaybackSpeedChanged {
45
- double speed;
46
- };
47
-
48
- struct OnIsLoadingChanged {
49
- bool isLoading;
50
- };
51
-
52
- struct OnError {
53
- std::string message;
54
- int code;
55
- std::string details;
56
- };
57
-
58
- struct OnAccessTokenExpired {
59
- std::string videoId;
60
- };
61
- void onCurrentPosition(OnCurrentPosition value) const;
62
-
63
- void onDuration(OnDuration value) const;
64
-
65
- void onIsPlaying(OnIsPlaying value) const;
66
-
67
- void onPlaybackSpeed(OnPlaybackSpeed value) const;
68
-
69
- void onPlayerStateChanged(OnPlayerStateChanged value) const;
70
-
71
- void onIsPlayingChanged(OnIsPlayingChanged value) const;
72
-
73
- void onPlaybackSpeedChanged(OnPlaybackSpeedChanged value) const;
74
-
75
- void onIsLoadingChanged(OnIsLoadingChanged value) const;
76
-
77
- void onError(OnError value) const;
78
-
79
- void onAccessTokenExpired(OnAccessTokenExpired value) const;
80
- };
81
- } // namespace facebook::react
@@ -1,32 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsCpp.js
9
- */
10
-
11
- #include <react/renderer/components/TPStreamsPlayerViewSpec/Props.h>
12
- #include <react/renderer/core/PropsParserContext.h>
13
- #include <react/renderer/core/propsConversions.h>
14
-
15
- namespace facebook::react {
16
-
17
- TPStreamsRNPlayerViewProps::TPStreamsRNPlayerViewProps(
18
- const PropsParserContext &context,
19
- const TPStreamsRNPlayerViewProps &sourceProps,
20
- const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),
21
-
22
- videoId(convertRawProp(context, rawProps, "videoId", sourceProps.videoId, {})),
23
- accessToken(convertRawProp(context, rawProps, "accessToken", sourceProps.accessToken, {})),
24
- shouldAutoPlay(convertRawProp(context, rawProps, "shouldAutoPlay", sourceProps.shouldAutoPlay, {false})),
25
- startAt(convertRawProp(context, rawProps, "startAt", sourceProps.startAt, {0.0})),
26
- enableDownload(convertRawProp(context, rawProps, "enableDownload", sourceProps.enableDownload, {false})),
27
- showDefaultCaptions(convertRawProp(context, rawProps, "showDefaultCaptions", sourceProps.showDefaultCaptions, {false})),
28
- downloadMetadata(convertRawProp(context, rawProps, "downloadMetadata", sourceProps.downloadMetadata, {})),
29
- offlineLicenseExpireTime(convertRawProp(context, rawProps, "offlineLicenseExpireTime", sourceProps.offlineLicenseExpireTime, {0.0}))
30
- {}
31
-
32
- } // namespace facebook::react
@@ -1,34 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GeneratePropsH.js
9
- */
10
- #pragma once
11
-
12
- #include <react/renderer/components/view/ViewProps.h>
13
- #include <react/renderer/core/PropsParserContext.h>
14
-
15
- namespace facebook::react {
16
-
17
- class TPStreamsRNPlayerViewProps final : public ViewProps {
18
- public:
19
- TPStreamsRNPlayerViewProps() = default;
20
- TPStreamsRNPlayerViewProps(const PropsParserContext& context, const TPStreamsRNPlayerViewProps &sourceProps, const RawProps &rawProps);
21
-
22
- #pragma mark - Props
23
-
24
- std::string videoId{};
25
- std::string accessToken{};
26
- bool shouldAutoPlay{false};
27
- double startAt{0.0};
28
- bool enableDownload{false};
29
- bool showDefaultCaptions{false};
30
- std::string downloadMetadata{};
31
- double offlineLicenseExpireTime{0.0};
32
- };
33
-
34
- } // namespace facebook::react
@@ -1,17 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeCpp.js
9
- */
10
-
11
- #include <react/renderer/components/TPStreamsPlayerViewSpec/ShadowNodes.h>
12
-
13
- namespace facebook::react {
14
-
15
- extern const char TPStreamsRNPlayerViewComponentName[] = "TPStreamsRNPlayerView";
16
-
17
- } // namespace facebook::react
@@ -1,32 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateShadowNodeH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <react/renderer/components/TPStreamsPlayerViewSpec/EventEmitters.h>
14
- #include <react/renderer/components/TPStreamsPlayerViewSpec/Props.h>
15
- #include <react/renderer/components/TPStreamsPlayerViewSpec/States.h>
16
- #include <react/renderer/components/view/ConcreteViewShadowNode.h>
17
- #include <jsi/jsi.h>
18
-
19
- namespace facebook::react {
20
-
21
- JSI_EXPORT extern const char TPStreamsRNPlayerViewComponentName[];
22
-
23
- /*
24
- * `ShadowNode` for <TPStreamsRNPlayerView> component.
25
- */
26
- using TPStreamsRNPlayerViewShadowNode = ConcreteViewShadowNode<
27
- TPStreamsRNPlayerViewComponentName,
28
- TPStreamsRNPlayerViewProps,
29
- TPStreamsRNPlayerViewEventEmitter,
30
- TPStreamsRNPlayerViewState>;
31
-
32
- } // namespace facebook::react
@@ -1,16 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateStateCpp.js
9
- */
10
- #include <react/renderer/components/TPStreamsPlayerViewSpec/States.h>
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
- } // namespace facebook::react
@@ -1,29 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateStateH.js
8
- */
9
- #pragma once
10
-
11
- #ifdef ANDROID
12
- #include <folly/dynamic.h>
13
- #endif
14
-
15
- namespace facebook::react {
16
-
17
- class TPStreamsRNPlayerViewState {
18
- public:
19
- TPStreamsRNPlayerViewState() = default;
20
-
21
- #ifdef ANDROID
22
- TPStreamsRNPlayerViewState(TPStreamsRNPlayerViewState const &previousState, folly::dynamic data){};
23
- folly::dynamic getDynamic() const {
24
- return {};
25
- };
26
- #endif
27
- };
28
-
29
- } // namespace facebook::react
@@ -1,17 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "TPStreamsPlayerViewSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
-
17
- } // namespace facebook::react
@@ -1,19 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react