amazon-ivs-react-native-player 1.0.0 → 1.1.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 (132) hide show
  1. package/NOTICE +1 -0
  2. package/README.md +1 -1
  3. package/amazon-ivs-react-native-player.podspec +1 -1
  4. package/android/build.gradle +2 -3
  5. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  6. package/android/gradle.properties +4 -4
  7. package/android/src/main/java/com/amazonaws/ivs/reactnative/player/AmazonIvsView.kt +27 -3
  8. package/android/src/main/java/com/amazonaws/ivs/reactnative/player/AmazonIvsViewManager.kt +5 -0
  9. package/ios/.gitignore +1 -0
  10. package/ios/AmazonIvsManager.m +1 -0
  11. package/ios/AmazonIvsView.swift +21 -0
  12. package/lib/commonjs/IVSPlayer.js +37 -34
  13. package/lib/commonjs/IVSPlayer.js.flow +2 -0
  14. package/lib/commonjs/IVSPlayer.js.map +1 -1
  15. package/lib/module/IVSPlayer.js +37 -34
  16. package/lib/module/IVSPlayer.js.flow +2 -0
  17. package/lib/module/IVSPlayer.js.map +1 -1
  18. package/lib/typescript/IVSPlayer.d.ts +2 -1
  19. package/lib/typescript/types.d.ts +1 -0
  20. package/package.json +9 -9
  21. package/src/IVSPlayer.js.flow +2 -0
  22. package/src/IVSPlayer.tsx +5 -0
  23. package/src/types.ts +2 -0
  24. package/android/build/.transforms/1f4dbdc38179d2776be8ed38c6bd3b8d/classes/classes.dex +0 -0
  25. package/android/build/.transforms/1f4dbdc38179d2776be8ed38c6bd3b8d.bin +0 -1
  26. package/android/build/generated/source/buildConfig/debug/com/amazonaws/ivs/reactnative/player/BuildConfig.java +0 -10
  27. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -20
  28. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -16
  29. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -2
  30. package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
  31. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  32. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  33. package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -1864
  34. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  35. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  36. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  37. package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +0 -1
  38. package/android/build/intermediates/incremental/packageDebugResources/merger.xml +0 -2
  39. package/android/build/intermediates/javac/debug/classes/com/amazonaws/ivs/reactnative/player/BuildConfig.class +0 -0
  40. package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
  41. package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +0 -20
  42. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
  43. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -28
  44. package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
  45. package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -16
  46. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  47. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -1384
  48. package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.len +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/counters.tab +0 -2
  99. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.len +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.len +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.len +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab.values.at +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/caches-jvm/lookups/lookups.tab_i.len +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
  121. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -52
  122. package/android/build/tmp/compileDebugJavaWithJavac/source-classes-mapping.txt +0 -2
  123. package/android/build/tmp/kotlin-classes/debug/META-INF/amazonivsreactnativeplayer_debug.kotlin_module +0 -0
  124. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsPackage.class +0 -0
  125. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsView$$special$$inlined$timerTask$1.class +0 -0
  126. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsView$1.class +0 -0
  127. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsView$Events.class +0 -0
  128. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsView$WhenMappings.class +0 -0
  129. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsView$mLayoutRunnable$1.class +0 -0
  130. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsView.class +0 -0
  131. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsViewManager$Commands.class +0 -0
  132. package/android/build/tmp/kotlin-classes/debug/com/amazonaws/ivs/reactnative/player/AmazonIvsViewManager.class +0 -0
@@ -15,6 +15,7 @@ import type {
15
15
  TextMetadataCue,
16
16
  VideoData,
17
17
  IVSPlayerRef,
18
+ ResizeMode,
18
19
  } from './types';
19
20
 
20
21
  declare type Props = {|
@@ -23,6 +24,7 @@ declare type Props = {|
23
24
  muted?: boolean,
24
25
  autoplay?: boolean,
25
26
  streamUrl?: string,
27
+ resizeMode?: ResizeMode,
26
28
  liveLowLatency?: boolean,
27
29
  playbackRate?: number,
28
30
  logLevel?: LogLevel,
package/src/IVSPlayer.tsx CHANGED
@@ -21,6 +21,7 @@ import type {
21
21
  TextMetadataCue,
22
22
  VideoData,
23
23
  IVSPlayerRef,
24
+ ResizeMode,
24
25
  } from './types';
25
26
 
26
27
  type IVSPlayerProps = {
@@ -31,6 +32,7 @@ type IVSPlayerProps = {
31
32
  liveLowLatency?: boolean;
32
33
  playbackRate?: number;
33
34
  streamUrl?: string;
35
+ resizeMode?: ResizeMode;
34
36
  logLevel?: LogLevel;
35
37
  progressInterval?: number;
36
38
  volume?: number;
@@ -81,6 +83,7 @@ type Props = {
81
83
  liveLowLatency?: boolean;
82
84
  playbackRate?: number;
83
85
  logLevel?: LogLevel;
86
+ resizeMode?: ResizeMode;
84
87
  progressInterval?: number;
85
88
  volume?: number;
86
89
  quality?: Quality | null;
@@ -121,6 +124,7 @@ const IVSPlayerContainer = React.forwardRef<IVSPlayerRef, Props>(
121
124
  streamUrl,
122
125
  paused,
123
126
  muted,
127
+ resizeMode,
124
128
  autoplay = true,
125
129
  liveLowLatency,
126
130
  playbackRate,
@@ -315,6 +319,7 @@ const IVSPlayerContainer = React.forwardRef<IVSPlayerRef, Props>(
315
319
  playbackRate={playbackRate}
316
320
  streamUrl={streamUrl}
317
321
  logLevel={logLevel}
322
+ resizeMode={resizeMode}
318
323
  progressInterval={progressInterval}
319
324
  volume={volume}
320
325
  quality={quality}
package/src/types.ts CHANGED
@@ -40,3 +40,5 @@ export type IVSPlayerRef = {
40
40
  pause: () => void;
41
41
  seekTo: (position: number) => void;
42
42
  };
43
+
44
+ export type ResizeMode = 'aspectFill' | 'aspectFit' | 'aspectZoom';
@@ -1,10 +0,0 @@
1
- /**
2
- * Automatically generated file. DO NOT MODIFY
3
- */
4
- package com.amazonaws.ivs.reactnative.player;
5
-
6
- public final class BuildConfig {
7
- public static final boolean DEBUG = Boolean.parseBoolean("true");
8
- public static final String LIBRARY_PACKAGE_NAME = "com.amazonaws.ivs.reactnative.player";
9
- public static final String BUILD_TYPE = "debug";
10
- }
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.amazonaws.ivs.reactnative.player"
4
- android:versionCode="1"
5
- android:versionName="1.0.0" >
6
-
7
- <uses-sdk
8
- android:minSdkVersion="21"
9
- android:targetSdkVersion="29" />
10
-
11
- <application>
12
- <meta-data
13
- android:name="com.amazonaws.ivs.player.FRAMEWORK_NAME"
14
- android:value="reactnativeplayer" />
15
- <meta-data
16
- android:name="com.amazonaws.ivs.player.FRAMEWORK_VERSION"
17
- android:value="1.0.0" />
18
- </application>
19
-
20
- </manifest>
@@ -1,16 +0,0 @@
1
- {
2
- "version": 2,
3
- "artifactType": {
4
- "type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
5
- "kind": "Directory"
6
- },
7
- "applicationId": "com.amazonaws.ivs.reactnative.player",
8
- "variantName": "debug",
9
- "elements": [
10
- {
11
- "type": "SINGLE",
12
- "filters": [],
13
- "outputFile": "AndroidManifest.xml"
14
- }
15
- ]
16
- }
@@ -1,2 +0,0 @@
1
- aarFormatVersion=1.0
2
- aarMetadataVersion=1.0