blix-expo-settings 0.1.1 → 0.1.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoSettingsModule.js","sourceRoot":"","sources":["../src/ExpoSettingsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGxD,sEAAsE;AACtE,MAAM,kBAAkB,GAAG,QAAQ,CAAC,EAAE,KAAK,KAAK;IAC9C,CAAC,CAAC,mBAAmB,CAAC,cAAc,CAAC;IACrC,CAAC,CAAC;QACE,+CAA+C;QAC/C,iBAAiB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAG,kCAAkC;QAC/E,aAAa,EAAE,CAAC,IAAY,EAAE,UAAkB,EAAE,EAAE,GAAE,CAAC;QACvD,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC;QACpB,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;KAClD,CAAC;AAEN,eAAe,kBAAkB,CAAC","sourcesContent":["import { Platform } from 'react-native';\nimport { requireNativeModule } from 'expo-modules-core';\n\n\n// Só carrega o native module no iOS; no Android, exporta stubs vazios\nconst ExpoSettingsModule = Platform.OS === 'ios'\n ? requireNativeModule('ExpoSettings')\n : {\n // Métodos usados pelo seu fluxo de live-stream\n initializePreview: () => Promise.resolve(), // se for async, senão só () => {}\n publishStream: (_url: string, _streamKey: string) => {},\n stopStream: () => {},\n getStreamStatus: () => Promise.resolve('stopped'),\n };\n\nexport default ExpoSettingsModule;\n\n"]}
1
+ {"version":3,"file":"ExpoSettingsModule.js","sourceRoot":"","sources":["../src/ExpoSettingsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGxD,sEAAsE;AACtE,MAAM,kBAAkB,GAAG,QAAQ,CAAC,EAAE,KAAK,KAAK;IAC9C,CAAC,CAAC,mBAAmB,CAAC,cAAc,CAAC;IACrC,CAAC,CAAC;QACE,+CAA+C;QAC/C,iBAAiB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAG,kCAAkC;QAC/E,aAAa,EAAE,CAAC,IAAY,EAAE,UAAkB,EAAE,EAAE,GAAE,CAAC;QACvD,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC;QACpB,eAAe,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;KAClD,CAAC;AAEN,eAAe,kBAAkB,CAAC","sourcesContent":["import { Platform } from 'react-native';\nimport { requireNativeModule } from 'expo-modules-core';\n\n\n// Só carrega o native module no iOS; no Android, exporta stubs vazios\nconst ExpoSettingsModule = Platform.OS === 'ios'\n ? requireNativeModule('ExpoSettings')\n : {\n // Métodos usados pelo seu fluxo de live-stream\n initializePreview: () => Promise.resolve(), // se for async, senão só () => {}\n publishStream: (_url: string, _streamKey: string) => {},\n stopStream: () => {},\n getStreamStatus: () => Promise.resolve('stopped'),\n };\n\nexport default ExpoSettingsModule;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoSettingsView.js","sourceRoot":"","sources":["../src/ExpoSettingsView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,UAAU,GACd,wBAAwB,CAAC,cAAc,CAAC,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAA4B;IACnE,OAAO,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACnC,CAAC","sourcesContent":["import { requireNativeViewManager } from \"expo-modules-core\";\nimport * as React from \"react\";\nimport {\n ExpoSettingsViewProps,\n} from \"./ExpoSettings.types\";\n\nconst NativeView: React.ComponentType<ExpoSettingsViewProps> =\n requireNativeViewManager(\"ExpoSettings\");\n\n export default function ExpoSettingsView(props: ExpoSettingsViewProps) {\n return <NativeView {...props} />;\n }\n"]}
1
+ {"version":3,"file":"ExpoSettingsView.js","sourceRoot":"","sources":["../src/ExpoSettingsView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,UAAU,GACd,wBAAwB,CAAC,cAAc,CAAC,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAA4B;IACnE,OAAO,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACnC,CAAC","sourcesContent":["import { requireNativeViewManager } from \"expo-modules-core\";\nimport * as React from \"react\";\nimport {\n ExpoSettingsViewProps,\n} from \"./ExpoSettings.types\";\n\nconst NativeView: React.ComponentType<ExpoSettingsViewProps> =\n requireNativeViewManager(\"ExpoSettings\");\n\n export default function ExpoSettingsView(props: ExpoSettingsViewProps) {\n return <NativeView {...props} />;\n }"]}
@@ -19,4 +19,4 @@ Pod::Spec.new do |s|
19
19
  }
20
20
 
21
21
  s.source_files = "**/*.{h,m,mm,swift,hpp,cpp}"
22
- end
22
+ end
@@ -53,7 +53,7 @@ public class ExpoSettingsModule: Module {
53
53
 
54
54
  // 3) Configurar captura: frame rate e preset
55
55
  stream.frameRate = 30
56
- stream.sessionPreset = .medium
56
+ stream.sessionPreset = .hd1920x1080
57
57
  stream.configuration { captureSession in
58
58
  captureSession.automaticallyConfiguresApplicationAudioSession = true
59
59
  }
@@ -98,9 +98,9 @@ public class ExpoSettingsModule: Module {
98
98
  stream.audioSettings = audioSettings
99
99
 
100
100
  let videoSettings = VideoCodecSettings(
101
- videoSize: .init(width: 720, height: 1280),
102
- bitRate: 1500 * 1000,
103
- profileLevel: kVTProfileLevel_H264_Baseline_3_1 as String,
101
+ videoSize: .init(width: 1080, height: 1920),
102
+ bitRate: 4000 * 1000,
103
+ profileLevel: kVTProfileLevel_H264_Baseline_4_0 as String,
104
104
  scalingMode: .trim,
105
105
  bitRateMode: .average,
106
106
  maxKeyFrameIntervalDuration: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blix-expo-settings",
3
- "version": "0.1.1",
3
+ "version": "0.1.6",
4
4
  "description": "LiveStream",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -14,4 +14,3 @@ const ExpoSettingsModule = Platform.OS === 'ios'
14
14
  };
15
15
 
16
16
  export default ExpoSettingsModule;
17
-
@@ -9,4 +9,4 @@ const NativeView: React.ComponentType<ExpoSettingsViewProps> =
9
9
 
10
10
  export default function ExpoSettingsView(props: ExpoSettingsViewProps) {
11
11
  return <NativeView {...props} />;
12
- }
12
+ }