@fishjam-cloud/react-native-client 0.23.0 → 0.25.0-rc.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.
- package/README.md +56 -15
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/overrides/RTCPeerConnection.d.ts +8 -0
- package/dist/overrides/RTCPeerConnection.d.ts.map +1 -0
- package/dist/overrides/RTCPeerConnection.js +16 -0
- package/dist/overrides/RTCView.d.ts +11 -0
- package/dist/overrides/RTCView.d.ts.map +1 -0
- package/dist/overrides/RTCView.js +21 -0
- package/dist/polyfills/local-storage.d.ts +10 -0
- package/dist/polyfills/local-storage.d.ts.map +1 -0
- package/dist/polyfills/local-storage.js +24 -0
- package/{build/hooks → dist}/useForegroundService.d.ts +10 -10
- package/dist/useForegroundService.d.ts.map +1 -0
- package/dist/useForegroundService.js +10 -0
- package/dist/webrtc-polyfill.d.ts +2 -0
- package/dist/webrtc-polyfill.d.ts.map +1 -0
- package/dist/webrtc-polyfill.js +14 -0
- package/package.json +44 -92
- package/plugin/broadcastExtensionFiles/Atomic.swift +37 -0
- package/plugin/broadcastExtensionFiles/DarwinNotificationCenter.swift +29 -0
- package/plugin/broadcastExtensionFiles/Info.plist +2 -2
- package/plugin/broadcastExtensionFiles/SampleHandler.swift +104 -0
- package/plugin/broadcastExtensionFiles/SampleUploader.swift +146 -0
- package/plugin/broadcastExtensionFiles/SocketConnection.swift +198 -0
- package/plugin/build/types.d.ts +5 -3
- package/plugin/build/withFishjam.d.ts +31 -2
- package/plugin/build/withFishjam.js +32 -6
- package/plugin/build/withFishjamAndroid.d.ts +2 -2
- package/plugin/build/withFishjamAndroid.js +60 -13
- package/plugin/build/withFishjamIos.d.ts +3 -8
- package/plugin/build/withFishjamIos.js +54 -69
- package/plugin/src/types.ts +19 -0
- package/plugin/src/withFishjam.ts +42 -0
- package/plugin/src/withFishjamAndroid.ts +112 -0
- package/plugin/src/withFishjamIos.ts +336 -0
- package/plugin/tsconfig.json +9 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/LICENSE.txt +0 -201
- package/android/build.gradle +0 -95
- package/android/src/main/AndroidManifest.xml +0 -2
- package/android/src/main/java/io/fishjam/reactnative/AudioDeviceKind.kt +0 -34
- package/android/src/main/java/io/fishjam/reactnative/AudioSwitchManager.kt +0 -61
- package/android/src/main/java/io/fishjam/reactnative/EmitableEvents.kt +0 -126
- package/android/src/main/java/io/fishjam/reactnative/Errors.kt +0 -31
- package/android/src/main/java/io/fishjam/reactnative/PipContainerView.kt +0 -282
- package/android/src/main/java/io/fishjam/reactnative/PipContainerViewModule.kt +0 -41
- package/android/src/main/java/io/fishjam/reactnative/PipTrackSelector.kt +0 -98
- package/android/src/main/java/io/fishjam/reactnative/PipViewFactory.kt +0 -186
- package/android/src/main/java/io/fishjam/reactnative/RNFishjamClient.kt +0 -1001
- package/android/src/main/java/io/fishjam/reactnative/RNFishjamClientModule.kt +0 -358
- package/android/src/main/java/io/fishjam/reactnative/Utils.kt +0 -11
- package/android/src/main/java/io/fishjam/reactnative/VideoPreviewView.kt +0 -40
- package/android/src/main/java/io/fishjam/reactnative/VideoPreviewViewModule.kt +0 -22
- package/android/src/main/java/io/fishjam/reactnative/VideoRendererView.kt +0 -76
- package/android/src/main/java/io/fishjam/reactnative/VideoRendererViewModule.kt +0 -33
- package/android/src/main/java/io/fishjam/reactnative/VideoView.kt +0 -257
- package/android/src/main/java/io/fishjam/reactnative/extensions/CaptureDevice.kt +0 -17
- package/android/src/main/java/io/fishjam/reactnative/foregroundService/FishjamForegroundService.kt +0 -101
- package/android/src/main/java/io/fishjam/reactnative/foregroundService/ForegroundServiceManager.kt +0 -118
- package/android/src/main/java/io/fishjam/reactnative/foregroundService/ForegroundServiceState.kt +0 -46
- package/android/src/main/java/io/fishjam/reactnative/helpers/PictureInPictureHelperFragment.kt +0 -20
- package/android/src/main/java/io/fishjam/reactnative/managers/ListenerManager.kt +0 -24
- package/android/src/main/java/io/fishjam/reactnative/managers/LocalCameraTracksChangedListenersManager.kt +0 -8
- package/android/src/main/java/io/fishjam/reactnative/managers/LocalTracksSwitchListenersManager.kt +0 -17
- package/android/src/main/java/io/fishjam/reactnative/managers/TracksUpdateListenersManager.kt +0 -7
- package/android/src/main/java/io/fishjam/reactnative/utils/PermissionUtils.kt +0 -45
- package/build/RNFishjamClientModule.d.ts +0 -106
- package/build/RNFishjamClientModule.d.ts.map +0 -1
- package/build/RNFishjamClientModule.js +0 -21
- package/build/RNFishjamClientModule.js.map +0 -1
- package/build/common/metadata.d.ts +0 -9
- package/build/common/metadata.d.ts.map +0 -1
- package/build/common/metadata.js +0 -11
- package/build/common/metadata.js.map +0 -1
- package/build/components/FishjamRoom/GridTrackItem.d.ts +0 -12
- package/build/components/FishjamRoom/GridTrackItem.d.ts.map +0 -1
- package/build/components/FishjamRoom/GridTrackItem.js +0 -56
- package/build/components/FishjamRoom/GridTrackItem.js.map +0 -1
- package/build/components/FishjamRoom/VideosGrid.d.ts +0 -3
- package/build/components/FishjamRoom/VideosGrid.d.ts.map +0 -1
- package/build/components/FishjamRoom/VideosGrid.js +0 -20
- package/build/components/FishjamRoom/VideosGrid.js.map +0 -1
- package/build/components/FishjamRoom/index.d.ts +0 -33
- package/build/components/FishjamRoom/index.d.ts.map +0 -1
- package/build/components/FishjamRoom/index.js +0 -53
- package/build/components/FishjamRoom/index.js.map +0 -1
- package/build/components/FishjamRoom/parsePeersToTracks.d.ts +0 -4
- package/build/components/FishjamRoom/parsePeersToTracks.d.ts.map +0 -1
- package/build/components/FishjamRoom/parsePeersToTracks.js +0 -37
- package/build/components/FishjamRoom/parsePeersToTracks.js.map +0 -1
- package/build/components/PipContainerView.d.ts +0 -48
- package/build/components/PipContainerView.d.ts.map +0 -1
- package/build/components/PipContainerView.js +0 -34
- package/build/components/PipContainerView.js.map +0 -1
- package/build/components/VideoPreviewView.d.ts +0 -28
- package/build/components/VideoPreviewView.d.ts.map +0 -1
- package/build/components/VideoPreviewView.js +0 -17
- package/build/components/VideoPreviewView.js.map +0 -1
- package/build/components/VideoRendererView.d.ts +0 -39
- package/build/components/VideoRendererView.d.ts.map +0 -1
- package/build/components/VideoRendererView.js +0 -25
- package/build/components/VideoRendererView.js.map +0 -1
- package/build/consts/index.d.ts +0 -5
- package/build/consts/index.d.ts.map +0 -1
- package/build/consts/index.js +0 -8
- package/build/consts/index.js.map +0 -1
- package/build/debug/common/webRTC.d.ts +0 -9
- package/build/debug/common/webRTC.d.ts.map +0 -1
- package/build/debug/common/webRTC.js +0 -11
- package/build/debug/common/webRTC.js.map +0 -1
- package/build/debug/index.d.ts +0 -4
- package/build/debug/index.d.ts.map +0 -1
- package/build/debug/index.js +0 -3
- package/build/debug/index.js.map +0 -1
- package/build/debug/stats/types.d.ts +0 -55
- package/build/debug/stats/types.d.ts.map +0 -1
- package/build/debug/stats/types.js +0 -2
- package/build/debug/stats/types.js.map +0 -1
- package/build/debug/stats/useRTCStatistics.d.ts +0 -9
- package/build/debug/stats/useRTCStatistics.d.ts.map +0 -1
- package/build/debug/stats/useRTCStatistics.js +0 -79
- package/build/debug/stats/useRTCStatistics.js.map +0 -1
- package/build/hooks/internal/useFishjamEvent.d.ts +0 -4
- package/build/hooks/internal/useFishjamEvent.d.ts.map +0 -1
- package/build/hooks/internal/useFishjamEvent.js +0 -38
- package/build/hooks/internal/useFishjamEvent.js.map +0 -1
- package/build/hooks/internal/useFishjamEventState.d.ts +0 -3
- package/build/hooks/internal/useFishjamEventState.d.ts.map +0 -1
- package/build/hooks/internal/useFishjamEventState.js +0 -18
- package/build/hooks/internal/useFishjamEventState.js.map +0 -1
- package/build/hooks/useAppScreenShare.d.ts +0 -20
- package/build/hooks/useAppScreenShare.d.ts.map +0 -1
- package/build/hooks/useAppScreenShare.js +0 -54
- package/build/hooks/useAppScreenShare.js.map +0 -1
- package/build/hooks/useAudioSettings.d.ts +0 -49
- package/build/hooks/useAudioSettings.d.ts.map +0 -1
- package/build/hooks/useAudioSettings.js +0 -70
- package/build/hooks/useAudioSettings.js.map +0 -1
- package/build/hooks/useBandwidthEstimation.d.ts +0 -14
- package/build/hooks/useBandwidthEstimation.d.ts.map +0 -1
- package/build/hooks/useBandwidthEstimation.js +0 -19
- package/build/hooks/useBandwidthEstimation.js.map +0 -1
- package/build/hooks/useCallKit.d.ts +0 -121
- package/build/hooks/useCallKit.d.ts.map +0 -1
- package/build/hooks/useCallKit.js +0 -142
- package/build/hooks/useCallKit.js.map +0 -1
- package/build/hooks/useCamera.d.ts +0 -113
- package/build/hooks/useCamera.d.ts.map +0 -1
- package/build/hooks/useCamera.js +0 -95
- package/build/hooks/useCamera.js.map +0 -1
- package/build/hooks/useConnection.d.ts +0 -73
- package/build/hooks/useConnection.d.ts.map +0 -1
- package/build/hooks/useConnection.js +0 -46
- package/build/hooks/useConnection.js.map +0 -1
- package/build/hooks/useForegroundService.d.ts.map +0 -1
- package/build/hooks/useForegroundService.js +0 -66
- package/build/hooks/useForegroundService.js.map +0 -1
- package/build/hooks/useMicrophone.d.ts +0 -16
- package/build/hooks/useMicrophone.d.ts.map +0 -1
- package/build/hooks/useMicrophone.js +0 -31
- package/build/hooks/useMicrophone.js.map +0 -1
- package/build/hooks/usePeerStatus.d.ts +0 -10
- package/build/hooks/usePeerStatus.d.ts.map +0 -1
- package/build/hooks/usePeerStatus.js +0 -13
- package/build/hooks/usePeerStatus.js.map +0 -1
- package/build/hooks/usePeers.d.ts +0 -98
- package/build/hooks/usePeers.d.ts.map +0 -1
- package/build/hooks/usePeers.js +0 -81
- package/build/hooks/usePeers.js.map +0 -1
- package/build/hooks/usePermissions.d.ts +0 -24
- package/build/hooks/usePermissions.d.ts.map +0 -1
- package/build/hooks/usePermissions.js +0 -61
- package/build/hooks/usePermissions.js.map +0 -1
- package/build/hooks/useReconnection.d.ts +0 -11
- package/build/hooks/useReconnection.d.ts.map +0 -1
- package/build/hooks/useReconnection.js +0 -14
- package/build/hooks/useReconnection.js.map +0 -1
- package/build/hooks/useSandbox.d.ts +0 -20
- package/build/hooks/useSandbox.d.ts.map +0 -1
- package/build/hooks/useSandbox.js +0 -54
- package/build/hooks/useSandbox.js.map +0 -1
- package/build/hooks/useScreenShare.d.ts +0 -37
- package/build/hooks/useScreenShare.d.ts.map +0 -1
- package/build/hooks/useScreenShare.js +0 -52
- package/build/hooks/useScreenShare.js.map +0 -1
- package/build/hooks/useUpdatePeerMetadata.d.ts +0 -15
- package/build/hooks/useUpdatePeerMetadata.d.ts.map +0 -1
- package/build/hooks/useUpdatePeerMetadata.js +0 -21
- package/build/hooks/useUpdatePeerMetadata.js.map +0 -1
- package/build/index.d.ts +0 -36
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -30
- package/build/index.js.map +0 -1
- package/build/livestream/components/LivestreamStreamer.d.ts +0 -24
- package/build/livestream/components/LivestreamStreamer.d.ts.map +0 -1
- package/build/livestream/components/LivestreamStreamer.js +0 -12
- package/build/livestream/components/LivestreamStreamer.js.map +0 -1
- package/build/livestream/components/LivestreamViewer.d.ts +0 -46
- package/build/livestream/components/LivestreamViewer.d.ts.map +0 -1
- package/build/livestream/components/LivestreamViewer.js +0 -10
- package/build/livestream/components/LivestreamViewer.js.map +0 -1
- package/build/livestream/hooks/useLivestreamStreamer.d.ts +0 -65
- package/build/livestream/hooks/useLivestreamStreamer.d.ts.map +0 -1
- package/build/livestream/hooks/useLivestreamStreamer.js +0 -72
- package/build/livestream/hooks/useLivestreamStreamer.js.map +0 -1
- package/build/livestream/hooks/useLivestreamViewer.d.ts +0 -36
- package/build/livestream/hooks/useLivestreamViewer.d.ts.map +0 -1
- package/build/livestream/hooks/useLivestreamViewer.js +0 -73
- package/build/livestream/hooks/useLivestreamViewer.js.map +0 -1
- package/build/livestream/index.d.ts +0 -11
- package/build/livestream/index.d.ts.map +0 -1
- package/build/livestream/index.js +0 -6
- package/build/livestream/index.js.map +0 -1
- package/build/protos/fishjam/peer_notifications.d.ts +0 -63
- package/build/protos/fishjam/peer_notifications.d.ts.map +0 -1
- package/build/protos/fishjam/peer_notifications.js +0 -235
- package/build/protos/fishjam/peer_notifications.js.map +0 -1
- package/build/types.d.ts +0 -34
- package/build/types.d.ts.map +0 -1
- package/build/types.js +0 -2
- package/build/types.js.map +0 -1
- package/build/utils/config.d.ts +0 -6
- package/build/utils/config.d.ts.map +0 -1
- package/build/utils/config.js +0 -10
- package/build/utils/config.js.map +0 -1
- package/build/utils/errorListener.d.ts +0 -2
- package/build/utils/errorListener.d.ts.map +0 -1
- package/build/utils/errorListener.js +0 -15
- package/build/utils/errorListener.js.map +0 -1
- package/build/utils/eventPayloadValidator.d.ts +0 -3
- package/build/utils/eventPayloadValidator.d.ts.map +0 -1
- package/build/utils/eventPayloadValidator.js +0 -86
- package/build/utils/eventPayloadValidator.js.map +0 -1
- package/build/utils/getFishjamUrl.d.ts +0 -2
- package/build/utils/getFishjamUrl.d.ts.map +0 -1
- package/build/utils/getFishjamUrl.js +0 -10
- package/build/utils/getFishjamUrl.js.map +0 -1
- package/debug/package.json +0 -4
- package/expo-module.config.json +0 -19
- package/ios/CameraPermissionsRequester.swift +0 -117
- package/ios/Events.swift +0 -152
- package/ios/PictureInPictureManager.swift +0 -215
- package/ios/PipContainerView.swift +0 -56
- package/ios/PipContainerViewModule.swift +0 -48
- package/ios/RNFishjamClient.podspec +0 -30
- package/ios/RNFishjamClient.swift +0 -995
- package/ios/RNFishjamClientModule.swift +0 -289
- package/ios/RNFishjamProxy.swift +0 -12
- package/ios/Utils/PermissionUtils.swift +0 -16
- package/ios/Utils.swift +0 -23
- package/ios/VideoPreviewView.swift +0 -54
- package/ios/VideoPreviewViewModule.swift +0 -21
- package/ios/VideoRendererView.swift +0 -98
- package/ios/VideoRendererViewModule.swift +0 -23
- package/ios/extensions/AVCaptureDevice.swift +0 -20
- package/ios/managers/LocalCameraTracksChangedListenersManager.swift +0 -23
- package/ios/managers/TracksUpdateListenersManager.swift +0 -21
- package/livestream/package.json +0 -4
- package/plugin/broadcastExtensionFiles/FishjamBroadcastSampleHandler.swift +0 -50
- /package/plugin/broadcastExtensionFiles/{FishjamScreenBroadcastExtension.entitlements → ScreenBroadcastExtension.entitlements} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLivestreamStreamer.js","sourceRoot":"","sources":["../../../src/livestream/hooks/useLivestreamStreamer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAEL,OAAO,EAKP,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AA6DhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EACpC,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,eAAe,EACf,oBAAoB,EACpB,oBAAoB,MACW,EAAE,EAA+B,EAAE;IAClE,MAAM,KAAK,GAAG,sBAAsB,EAAE,CAAC;IACvC,MAAM,WAAW,GAAG,KAAK,KAAK,WAAW,CAAC;IAE1C,MAAM,aAAa,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAC;IAE7D,MAAM,OAAO,GAAG,WAAW,CAAC,KAAK,EAAE,KAAa,EAAE,WAAoB,EAAE,EAAE;QACxE,MAAM,WAAW,GAAG,WAAW,IAAI,gBAAgB,CAAC;QACpD,MAAM,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC;YACnC,SAAS,EAAE,KAAK;YAChB,SAAS,EAAE,WAAW;SACvB,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;QACxC,MAAM,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC;IAC5C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;QACxC,MA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AAU;QACV,UAAU;QACV,YAAY;QACZ,qBAAqB;QACrB,WAAW;QACX,aAAa;KACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useCallback, useRef, useEffect } from 'react';\nimport {\n Camera,\n cameras,\n SenderAudioCodecName,\n SenderVideoCodecName,\n VideoParameters,\n WhipClientViewRef,\n useWhipConnectionState,\n} from 'react-native-whip-whep';\nimport { FISHJAM_WHIP_URL } from '../../consts';\n\n/**\n * @category Livestream\n */\nexport interface useLivestreamStreamerResult {\n /**\n * Callback used to start publishing the selected audio and video media streams.\n *\n * @remarks\n * Calling {@link connect} multiple times will have the effect of only publishing the **last** specified inputs.\n */\n connect: (token: string, urlOverride?: string) => Promise<void>;\n /** Callback to stop publishing anything previously published with {@link connect} */\n disconnect: () => Promise<void>;\n /** Callback to flip camera */\n flipCamera: () => Promise<void>;\n /** Callback to switch camera to the one passed as arguement */\n switchCamera: (deviceId: string) => Promise<void>;\n /** Callback to get the id of camera which is used for streaming */\n currentCameraDeviceId: () => Promise<string | undefined>;\n /** Utility flag which indicates the current connection status */\n isConnected: boolean;\n /**\n * Reference to the WhipClient instance. Needs to be passed to the {@link LivestreamStreamer} component.\n */\n whipClientRef: React.RefObject<WhipClientViewRef | null>;\n}\n\nexport type UseLivestreamStreamerParams = {\n /**\n * If video track should be enabled.\n * Defaults to true.\n */\n videoEnabled?: boolean;\n /**\n * If audio track should be enabled.\n * Defaults to true.\n */\n audioEnabled?: boolean;\n /**\n * Camera to use for the livestream.\n * Use {@link cameras} to get the list of supported cameras.\n */\n camera?: Camera;\n /**\n * Set video parameters for the camera\n */\n videoParameters?: VideoParameters;\n /**\n * Set the preferred video codecs for sending the video.\n * Use {@link WhipClient.getSupportedVideoCodecs} to get the list of supported video codecs.\n */\n preferredVideoCodecs?: SenderVideoCodecName[];\n /**\n * Set the preferred audio codecs for sending the audio.\n * Use {@link WhipClient.getSupportedAudioCodecs} to get the list of supported audio codecs.\n */\n preferredAudioCodecs?: SenderAudioCodecName[];\n};\n\n/**\n * Hook for publishing a livestream, which can be then received with {@link useLivestreamViewer}\n * @category Livestream\n * @group Hooks\n */\nexport const useLivestreamStreamer = ({\n videoEnabled,\n audioEnabled,\n camera,\n videoParameters,\n preferredVideoCodecs,\n preferredAudioCodecs,\n}: UseLivestreamStreamerParams = {}): useLivestreamStreamerResult => {\n const state = useWhipConnectionState();\n const isConnected = state === 'connected';\n\n const whipClientRef = useRef<WhipClientViewRef | null>(null);\n\n const connect = useCallback(async (token: string, urlOverride?: string) => {\n const resolvedUrl = urlOverride ?? FISHJAM_WHIP_URL;\n await whipClientRef.current?.connect({\n authToken: token,\n serverUrl: resolvedUrl,\n });\n }, []);\n\n const disconnect = useCallback(async () => {\n await whipClientRef.current?.disconnect();\n }, []);\n\n const flipCamera = useCallback(async () => {\n await whipClientRef.current?.flipCamera();\n }, []);\n\n const switchCamera = useCallback(async (deviceId: string) => {\n return await whipClientRef.current?.switchCamera(deviceId);\n }, []);\n\n const currentCameraDeviceId = useCallback(async () => {\n return await whipClientRef.current?.currentCameraDeviceId();\n }, []);\n\n useEffect(() => {\n try {\n const initializeCamera = async () => {\n await whipClientRef.current?.initializeCamera({\n audioEnabled: audioEnabled ?? true,\n videoEnabled: videoEnabled ?? true,\n videoDeviceId: camera?.id ?? cameras[0].id,\n videoParameters: videoParameters,\n preferredVideoCodecs: preferredVideoCodecs,\n preferredAudioCodecs: preferredAudioCodecs,\n });\n };\n initializeCamera();\n } catch {\n console.error('Failed to initialize camera');\n }\n const ref = whipClientRef.current;\n return () => {\n ref?.disconnect();\n };\n }, [\n camera,\n videoParameters,\n videoEnabled,\n audioEnabled,\n preferredVideoCodecs,\n preferredAudioCodecs,\n whipClientRef,\n ]);\n\n return {\n connect,\n disconnect,\n flipCamera,\n switchCamera,\n currentCameraDeviceId,\n isConnected,\n whipClientRef,\n };\n};\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { WhepClientViewRef } from 'react-native-whip-whep';
|
|
2
|
-
export type ConnectViewerConfig = {
|
|
3
|
-
token: string;
|
|
4
|
-
streamId?: never;
|
|
5
|
-
} | {
|
|
6
|
-
streamId: string;
|
|
7
|
-
token?: never;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @category Livestream
|
|
11
|
-
*/
|
|
12
|
-
export interface useLivestreamViewerResult {
|
|
13
|
-
/**
|
|
14
|
-
* Callback to start receiving a livestream.
|
|
15
|
-
* If the livestream is private, provide `token`.
|
|
16
|
-
* If the livestream is public, provide `streamId`.
|
|
17
|
-
*/
|
|
18
|
-
connect: (config: ConnectViewerConfig, url?: string) => Promise<void>;
|
|
19
|
-
/** Disconnect from a stream previously connected to with {@link connect} */
|
|
20
|
-
disconnect: () => Promise<void>;
|
|
21
|
-
/** Utility flag which indicates the current connection status */
|
|
22
|
-
isConnected: boolean;
|
|
23
|
-
/** Utility flag which indicates if whep client is connecting */
|
|
24
|
-
isLoading: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Reference to the WhepClient instance. Needs to be passed to the {@link LivestreamViewer} component.
|
|
27
|
-
*/
|
|
28
|
-
whepClientRef: React.RefObject<WhepClientViewRef | null>;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Hook for receiving a published livestream.
|
|
32
|
-
* @category Livestream
|
|
33
|
-
* @group Hooks
|
|
34
|
-
*/
|
|
35
|
-
export declare const useLivestreamViewer: () => useLivestreamViewerResult;
|
|
36
|
-
//# sourceMappingURL=useLivestreamViewer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLivestreamViewer.d.ts","sourceRoot":"","sources":["../../../src/livestream/hooks/useLivestreamViewer.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAGhC,MAAM,MAAM,mBAAmB,GAC3B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,GACnC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAOxC;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,4EAA4E;IAC5E,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,iEAAiE;IACjE,WAAW,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CAC1D;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAO,yBAqEtC,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { useWhepConnectionState, } from 'react-native-whip-whep';
|
|
3
|
-
import { FISHJAM_WHEP_URL } from '../../consts';
|
|
4
|
-
const urlFromConfig = (config) => {
|
|
5
|
-
if (config.streamId)
|
|
6
|
-
return `${FISHJAM_WHEP_URL}/${config.streamId}`;
|
|
7
|
-
return FISHJAM_WHEP_URL;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Hook for receiving a published livestream.
|
|
11
|
-
* @category Livestream
|
|
12
|
-
* @group Hooks
|
|
13
|
-
*/
|
|
14
|
-
export const useLivestreamViewer = () => {
|
|
15
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
16
|
-
const [isInitialized, setIsInitialized] = useState(false);
|
|
17
|
-
const state = useWhepConnectionState();
|
|
18
|
-
const isConnected = state === 'connected';
|
|
19
|
-
const whepClientRef = useRef(null);
|
|
20
|
-
const isConnectingRef = useRef(false);
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
const createClient = () => {
|
|
23
|
-
whepClientRef.current?.createWhepClient({
|
|
24
|
-
audioEnabled: true,
|
|
25
|
-
videoEnabled: true,
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
createClient();
|
|
29
|
-
const ref = whepClientRef.current;
|
|
30
|
-
return () => {
|
|
31
|
-
ref?.disconnect();
|
|
32
|
-
};
|
|
33
|
-
}, []);
|
|
34
|
-
const connect = useCallback(async (config, url) => {
|
|
35
|
-
if (isConnectingRef.current) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
isConnectingRef.current = true;
|
|
39
|
-
setIsLoading(true);
|
|
40
|
-
try {
|
|
41
|
-
if (!isInitialized) {
|
|
42
|
-
await whepClientRef.current?.createWhepClient({
|
|
43
|
-
audioEnabled: true,
|
|
44
|
-
videoEnabled: true,
|
|
45
|
-
});
|
|
46
|
-
setIsInitialized(true);
|
|
47
|
-
}
|
|
48
|
-
await whepClientRef.current?.connect({
|
|
49
|
-
serverUrl: url ?? urlFromConfig(config),
|
|
50
|
-
authToken: config.token,
|
|
51
|
-
});
|
|
52
|
-
setIsLoading(false);
|
|
53
|
-
}
|
|
54
|
-
catch (error) {
|
|
55
|
-
console.error('Failed to connect to WHEP Client', error);
|
|
56
|
-
setIsLoading(false);
|
|
57
|
-
}
|
|
58
|
-
finally {
|
|
59
|
-
isConnectingRef.current = false;
|
|
60
|
-
}
|
|
61
|
-
}, [isInitialized]);
|
|
62
|
-
const disconnect = useCallback(async () => {
|
|
63
|
-
await whepClientRef.current?.disconnect();
|
|
64
|
-
}, []);
|
|
65
|
-
return {
|
|
66
|
-
connect,
|
|
67
|
-
disconnect,
|
|
68
|
-
whepClientRef,
|
|
69
|
-
isConnected,
|
|
70
|
-
isLoading,
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=useLivestreamViewer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLivestreamViewer.js","sourceRoot":"","sources":["../../../src/livestream/hooks/use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AM,OAAO,GAAG,WAAW,CACzB,KAAK,EAAE,MAA2B,EAAE,GAAY,EAAE,EAAE;QAClD,IAAI,eAAe,CAAC,OAAO,EAAE,CAAC;YAC5B,OAAO;QACT,CAAC;QAED,eAAe,CAAC,OAAO,GAAG,IAAI,CAAC;QAC/B,YAAY,CAAC,IAAI,CAAC,CAAC;QAEnB,IAAI,CAAC;YACH,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnB,MAAM,aAAa,CAAC,OAAO,EAAE,gBAAgB,CAAC;oBAC5C,YAAY,EAAE,IAAI;oBAClB,YAAY,EAAE,IAAI;iBACnB,CAAC,CAAC;gBACH,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;YAED,MAAM,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC;gBACnC,SAAS,EAAE,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC;gBACvC,SAAS,EAAE,MAAM,CAAC,KAAK;aACxB,CAAC,CAAC;YAEH,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;YACzD,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;gBAAS,CAAC;YACT,eAAe,CAAC,OAAO,GAAG,KAAK,CAAC;QAClC,CAAC;IACH,CAAC,EACD,CAAC,aAAa,CAAC,CAChB,CAAC;IAEF,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;QACxC,MAAM,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC;IAC5C,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,OAAO;QACP,UAAU;QACV,aAAa;QACb,WAAW;QACX,SAAS;KACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useCallback, useEffect, useRef, useState } from 'react';\nimport {\n useWhepConnectionState,\n WhepClientViewRef,\n} from 'react-native-whip-whep';\nimport { FISHJAM_WHEP_URL } from '../../consts';\n\nexport type ConnectViewerConfig =\n | { token: string; streamId?: never }\n | { streamId: string; token?: never };\n\nconst urlFromConfig = (config: ConnectViewerConfig) => {\n if (config.streamId) return `${FISHJAM_WHEP_URL}/${config.streamId}`;\n return FISHJAM_WHEP_URL;\n};\n\n/**\n * @category Livestream\n */\nexport interface useLivestreamViewerResult {\n /**\n * Callback to start receiving a livestream.\n * If the livestream is private, provide `token`.\n * If the livestream is public, provide `streamId`.\n */\n connect: (config: ConnectViewerConfig, url?: string) => Promise<void>;\n /** Disconnect from a stream previously connected to with {@link connect} */\n disconnect: () => Promise<void>;\n /** Utility flag which indicates the current connection status */\n isConnected: boolean;\n /** Utility flag which indicates if whep client is connecting */\n isLoading: boolean;\n /**\n * Reference to the WhepClient instance. Needs to be passed to the {@link LivestreamViewer} component.\n */\n whepClientRef: React.RefObject<WhepClientViewRef | null>;\n}\n\n/**\n * Hook for receiving a published livestream.\n * @category Livestream\n * @group Hooks\n */\nexport const useLivestreamViewer = (): useLivestreamViewerResult => {\n const [isLoading, setIsLoading] = useState(false);\n const [isInitialized, setIsInitialized] = useState(false);\n const state = useWhepConnectionState();\n const isConnected = state === 'connected';\n\n const whepClientRef = useRef<WhepClientViewRef | null>(null);\n const isConnectingRef = useRef(false);\n\n useEffect(() => {\n const createClient = () => {\n whepClientRef.current?.createWhepClient({\n audioEnabled: true,\n videoEnabled: true,\n });\n };\n createClient();\n\n const ref = whepClientRef.current;\n return () => {\n ref?.disconnect();\n };\n }, []);\n\n const connect = useCallback(\n async (config: ConnectViewerConfig, url?: string) => {\n if (isConnectingRef.current) {\n return;\n }\n\n isConnectingRef.current = true;\n setIsLoading(true);\n\n try {\n if (!isInitialized) {\n await whepClientRef.current?.createWhepClient({\n audioEnabled: true,\n videoEnabled: true,\n });\n setIsInitialized(true);\n }\n\n await whepClientRef.current?.connect({\n serverUrl: url ?? urlFromConfig(config),\n authToken: config.token,\n });\n\n setIsLoading(false);\n } catch (error) {\n console.error('Failed to connect to WHEP Client', error);\n setIsLoading(false);\n } finally {\n isConnectingRef.current = false;\n }\n },\n [isInitialized],\n );\n\n const disconnect = useCallback(async () => {\n await whepClientRef.current?.disconnect();\n }, []);\n\n return {\n connect,\n disconnect,\n whepClientRef,\n isConnected,\n isLoading,\n };\n};\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { LivestreamStreamer } from './components/LivestreamStreamer';
|
|
2
|
-
export { LivestreamViewer } from './components/LivestreamViewer';
|
|
3
|
-
export { useLivestreamViewer } from './hooks/useLivestreamViewer';
|
|
4
|
-
export { useLivestreamStreamer } from './hooks/useLivestreamStreamer';
|
|
5
|
-
export { cameras, VideoParameters } from 'react-native-whip-whep';
|
|
6
|
-
export type { LivestreamStreamerProps } from './components/LivestreamStreamer';
|
|
7
|
-
export type { ConnectViewerConfig } from './hooks/useLivestreamViewer';
|
|
8
|
-
export type { useLivestreamViewerResult } from './hooks/useLivestreamViewer';
|
|
9
|
-
export type { useLivestreamStreamerResult } from './hooks/useLivestreamStreamer';
|
|
10
|
-
export type { LivestreamViewerProps, LivestreamViewerRef, } from './components/LivestreamViewer';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/livestream/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAClE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,YAAY,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,YAAY,EACV,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { LivestreamStreamer } from './components/LivestreamStreamer';
|
|
2
|
-
export { LivestreamViewer } from './components/LivestreamViewer';
|
|
3
|
-
export { useLivestreamViewer } from './hooks/useLivestreamViewer';
|
|
4
|
-
export { useLivestreamStreamer } from './hooks/useLivestreamStreamer';
|
|
5
|
-
export { cameras, VideoParameters } from 'react-native-whip-whep';
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/livestream/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC","sourcesContent":["export { LivestreamStreamer } from './components/LivestreamStreamer';\nexport { LivestreamViewer } from './components/LivestreamViewer';\nexport { useLivestreamViewer } from './hooks/useLivestreamViewer';\nexport { useLivestreamStreamer } from './hooks/useLivestreamStreamer';\nexport { cameras, VideoParameters } from 'react-native-whip-whep';\nexport type { LivestreamStreamerProps } from './components/LivestreamStreamer';\nexport type { ConnectViewerConfig } from './hooks/useLivestreamViewer';\nexport type { useLivestreamViewerResult } from './hooks/useLivestreamViewer';\nexport type { useLivestreamStreamerResult } from './hooks/useLivestreamStreamer';\nexport type {\n LivestreamViewerProps,\n LivestreamViewerRef,\n} from './components/LivestreamViewer';\n"]}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "fishjam";
|
|
3
|
-
/** Defines any type of message sent between FJ and a peer */
|
|
4
|
-
export interface PeerMessage {
|
|
5
|
-
authenticated?: PeerMessage_Authenticated | undefined;
|
|
6
|
-
authRequest?: PeerMessage_AuthRequest | undefined;
|
|
7
|
-
mediaEvent?: PeerMessage_MediaEvent | undefined;
|
|
8
|
-
}
|
|
9
|
-
/** Response sent by FJ, confirming successfull authentication */
|
|
10
|
-
export interface PeerMessage_Authenticated {
|
|
11
|
-
}
|
|
12
|
-
/** Request sent by peer, to authenticate to FJ server */
|
|
13
|
-
export interface PeerMessage_AuthRequest {
|
|
14
|
-
token: string;
|
|
15
|
-
}
|
|
16
|
-
/** Any type of WebRTC messages passed betweend FJ and peer */
|
|
17
|
-
export interface PeerMessage_MediaEvent {
|
|
18
|
-
data: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const PeerMessage: {
|
|
21
|
-
encode(message: PeerMessage, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PeerMessage;
|
|
23
|
-
fromJSON(object: any): PeerMessage;
|
|
24
|
-
toJSON(message: PeerMessage): unknown;
|
|
25
|
-
create<I extends Exact<DeepPartial<PeerMessage>, I>>(base?: I): PeerMessage;
|
|
26
|
-
fromPartial<I extends Exact<DeepPartial<PeerMessage>, I>>(object: I): PeerMessage;
|
|
27
|
-
};
|
|
28
|
-
export declare const PeerMessage_Authenticated: {
|
|
29
|
-
encode(_: PeerMessage_Authenticated, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PeerMessage_Authenticated;
|
|
31
|
-
fromJSON(_: any): PeerMessage_Authenticated;
|
|
32
|
-
toJSON(_: PeerMessage_Authenticated): unknown;
|
|
33
|
-
create<I extends Exact<DeepPartial<PeerMessage_Authenticated>, I>>(base?: I): PeerMessage_Authenticated;
|
|
34
|
-
fromPartial<I extends Exact<DeepPartial<PeerMessage_Authenticated>, I>>(_: I): PeerMessage_Authenticated;
|
|
35
|
-
};
|
|
36
|
-
export declare const PeerMessage_AuthRequest: {
|
|
37
|
-
encode(message: PeerMessage_AuthRequest, writer?: _m0.Writer): _m0.Writer;
|
|
38
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PeerMessage_AuthRequest;
|
|
39
|
-
fromJSON(object: any): PeerMessage_AuthRequest;
|
|
40
|
-
toJSON(message: PeerMessage_AuthRequest): unknown;
|
|
41
|
-
create<I extends Exact<DeepPartial<PeerMessage_AuthRequest>, I>>(base?: I): PeerMessage_AuthRequest;
|
|
42
|
-
fromPartial<I extends Exact<DeepPartial<PeerMessage_AuthRequest>, I>>(object: I): PeerMessage_AuthRequest;
|
|
43
|
-
};
|
|
44
|
-
export declare const PeerMessage_MediaEvent: {
|
|
45
|
-
encode(message: PeerMessage_MediaEvent, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PeerMessage_MediaEvent;
|
|
47
|
-
fromJSON(object: any): PeerMessage_MediaEvent;
|
|
48
|
-
toJSON(message: PeerMessage_MediaEvent): unknown;
|
|
49
|
-
create<I extends Exact<DeepPartial<PeerMessage_MediaEvent>, I>>(base?: I): PeerMessage_MediaEvent;
|
|
50
|
-
fromPartial<I extends Exact<DeepPartial<PeerMessage_MediaEvent>, I>>(object: I): PeerMessage_MediaEvent;
|
|
51
|
-
};
|
|
52
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
53
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
54
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
55
|
-
} : Partial<T>;
|
|
56
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
57
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
58
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
59
|
-
} & {
|
|
60
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
61
|
-
};
|
|
62
|
-
export {};
|
|
63
|
-
//# sourceMappingURL=peer_notifications.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"peer_notifications.d.ts","sourceRoot":"","sources":["../../../src/protos/fishjam/peer_notifications.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,eAAO,MAAM,eAAe,YAAY,CAAC;AAEzC,6DAA6D;AAC7D,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IACtD,WAAW,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAClD,UAAU,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;CACjD;AAED,iEAAiE;AACjE,MAAM,WAAW,yBAAyB;CACzC;AAED,yDAAyD;AACzD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,8DAA8D;AAC9D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAMD,eAAO,MAAM,WAAW;oBACN,WAAW,WAAU,GAAG,CAAC,MAAM,GAAyB,GAAG,CAAC,MAAM;kBAapE,GAAG,CAAC,MAAM,GAAG,UAAU,WAAW,MAAM,GAAG,WAAW;qBAqCnD,GAAG,GAAG,WAAW;oBAQlB,WAAW,GAAG,OAAO;WAc9B,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,WAAW;gBAG/D,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC,C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
|
|
4
|
-
// protoc v5.26.1
|
|
5
|
-
// source: protos/fishjam/peer_notifications.proto
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
import * as _m0 from "protobufjs/minimal";
|
|
8
|
-
export const protobufPackage = "fishjam";
|
|
9
|
-
function createBasePeerMessage() {
|
|
10
|
-
return { authenticated: undefined, authRequest: undefined, mediaEvent: undefined };
|
|
11
|
-
}
|
|
12
|
-
export const PeerMessage = {
|
|
13
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
14
|
-
if (message.authenticated !== undefined) {
|
|
15
|
-
PeerMessage_Authenticated.encode(message.authenticated, writer.uint32(10).fork()).ldelim();
|
|
16
|
-
}
|
|
17
|
-
if (message.authRequest !== undefined) {
|
|
18
|
-
PeerMessage_AuthRequest.encode(message.authRequest, writer.uint32(18).fork()).ldelim();
|
|
19
|
-
}
|
|
20
|
-
if (message.mediaEvent !== undefined) {
|
|
21
|
-
PeerMessage_MediaEvent.encode(message.mediaEvent, writer.uint32(26).fork()).ldelim();
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
},
|
|
25
|
-
decode(input, length) {
|
|
26
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
27
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBasePeerMessage();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag !== 10) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.authenticated = PeerMessage_Authenticated.decode(reader, reader.uint32());
|
|
37
|
-
continue;
|
|
38
|
-
case 2:
|
|
39
|
-
if (tag !== 18) {
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
message.authRequest = PeerMessage_AuthRequest.decode(reader, reader.uint32());
|
|
43
|
-
continue;
|
|
44
|
-
case 3:
|
|
45
|
-
if (tag !== 26) {
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
message.mediaEvent = PeerMessage_MediaEvent.decode(reader, reader.uint32());
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
reader.skipType(tag & 7);
|
|
55
|
-
}
|
|
56
|
-
return message;
|
|
57
|
-
},
|
|
58
|
-
fromJSON(object) {
|
|
59
|
-
return {
|
|
60
|
-
authenticated: isSet(object.authenticated) ? PeerMessage_Authenticated.fromJSON(object.authenticated) : undefined,
|
|
61
|
-
authRequest: isSet(object.authRequest) ? PeerMessage_AuthRequest.fromJSON(object.authRequest) : undefined,
|
|
62
|
-
mediaEvent: isSet(object.mediaEvent) ? PeerMessage_MediaEvent.fromJSON(object.mediaEvent) : undefined,
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
toJSON(message) {
|
|
66
|
-
const obj = {};
|
|
67
|
-
if (message.authenticated !== undefined) {
|
|
68
|
-
obj.authenticated = PeerMessage_Authenticated.toJSON(message.authenticated);
|
|
69
|
-
}
|
|
70
|
-
if (message.authRequest !== undefined) {
|
|
71
|
-
obj.authRequest = PeerMessage_AuthRequest.toJSON(message.authRequest);
|
|
72
|
-
}
|
|
73
|
-
if (message.mediaEvent !== undefined) {
|
|
74
|
-
obj.mediaEvent = PeerMessage_MediaEvent.toJSON(message.mediaEvent);
|
|
75
|
-
}
|
|
76
|
-
return obj;
|
|
77
|
-
},
|
|
78
|
-
create(base) {
|
|
79
|
-
return PeerMessage.fromPartial(base ?? {});
|
|
80
|
-
},
|
|
81
|
-
fromPartial(object) {
|
|
82
|
-
const message = createBasePeerMessage();
|
|
83
|
-
message.authenticated = (object.authenticated !== undefined && object.authenticated !== null)
|
|
84
|
-
? PeerMessage_Authenticated.fromPartial(object.authenticated)
|
|
85
|
-
: undefined;
|
|
86
|
-
message.authRequest = (object.authRequest !== undefined && object.authRequest !== null)
|
|
87
|
-
? PeerMessage_AuthRequest.fromPartial(object.authRequest)
|
|
88
|
-
: undefined;
|
|
89
|
-
message.mediaEvent = (object.mediaEvent !== undefined && object.mediaEvent !== null)
|
|
90
|
-
? PeerMessage_MediaEvent.fromPartial(object.mediaEvent)
|
|
91
|
-
: undefined;
|
|
92
|
-
return message;
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
function createBasePeerMessage_Authenticated() {
|
|
96
|
-
return {};
|
|
97
|
-
}
|
|
98
|
-
export const PeerMessage_Authenticated = {
|
|
99
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
100
|
-
return writer;
|
|
101
|
-
},
|
|
102
|
-
decode(input, length) {
|
|
103
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
104
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
105
|
-
const message = createBasePeerMessage_Authenticated();
|
|
106
|
-
while (reader.pos < end) {
|
|
107
|
-
const tag = reader.uint32();
|
|
108
|
-
switch (tag >>> 3) {
|
|
109
|
-
}
|
|
110
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
reader.skipType(tag & 7);
|
|
114
|
-
}
|
|
115
|
-
return message;
|
|
116
|
-
},
|
|
117
|
-
fromJSON(_) {
|
|
118
|
-
return {};
|
|
119
|
-
},
|
|
120
|
-
toJSON(_) {
|
|
121
|
-
const obj = {};
|
|
122
|
-
return obj;
|
|
123
|
-
},
|
|
124
|
-
create(base) {
|
|
125
|
-
return PeerMessage_Authenticated.fromPartial(base ?? {});
|
|
126
|
-
},
|
|
127
|
-
fromPartial(_) {
|
|
128
|
-
const message = createBasePeerMessage_Authenticated();
|
|
129
|
-
return message;
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
function createBasePeerMessage_AuthRequest() {
|
|
133
|
-
return { token: "" };
|
|
134
|
-
}
|
|
135
|
-
export const PeerMessage_AuthRequest = {
|
|
136
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
137
|
-
if (message.token !== "") {
|
|
138
|
-
writer.uint32(10).string(message.token);
|
|
139
|
-
}
|
|
140
|
-
return writer;
|
|
141
|
-
},
|
|
142
|
-
decode(input, length) {
|
|
143
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
144
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
145
|
-
const message = createBasePeerMessage_AuthRequest();
|
|
146
|
-
while (reader.pos < end) {
|
|
147
|
-
const tag = reader.uint32();
|
|
148
|
-
switch (tag >>> 3) {
|
|
149
|
-
case 1:
|
|
150
|
-
if (tag !== 10) {
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
message.token = reader.string();
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
157
|
-
break;
|
|
158
|
-
}
|
|
159
|
-
reader.skipType(tag & 7);
|
|
160
|
-
}
|
|
161
|
-
return message;
|
|
162
|
-
},
|
|
163
|
-
fromJSON(object) {
|
|
164
|
-
return { token: isSet(object.token) ? globalThis.String(object.token) : "" };
|
|
165
|
-
},
|
|
166
|
-
toJSON(message) {
|
|
167
|
-
const obj = {};
|
|
168
|
-
if (message.token !== "") {
|
|
169
|
-
obj.token = message.token;
|
|
170
|
-
}
|
|
171
|
-
return obj;
|
|
172
|
-
},
|
|
173
|
-
create(base) {
|
|
174
|
-
return PeerMessage_AuthRequest.fromPartial(base ?? {});
|
|
175
|
-
},
|
|
176
|
-
fromPartial(object) {
|
|
177
|
-
const message = createBasePeerMessage_AuthRequest();
|
|
178
|
-
message.token = object.token ?? "";
|
|
179
|
-
return message;
|
|
180
|
-
},
|
|
181
|
-
};
|
|
182
|
-
function createBasePeerMessage_MediaEvent() {
|
|
183
|
-
return { data: "" };
|
|
184
|
-
}
|
|
185
|
-
export const PeerMessage_MediaEvent = {
|
|
186
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
187
|
-
if (message.data !== "") {
|
|
188
|
-
writer.uint32(10).string(message.data);
|
|
189
|
-
}
|
|
190
|
-
return writer;
|
|
191
|
-
},
|
|
192
|
-
decode(input, length) {
|
|
193
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
194
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
195
|
-
const message = createBasePeerMessage_MediaEvent();
|
|
196
|
-
while (reader.pos < end) {
|
|
197
|
-
const tag = reader.uint32();
|
|
198
|
-
switch (tag >>> 3) {
|
|
199
|
-
case 1:
|
|
200
|
-
if (tag !== 10) {
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
message.data = reader.string();
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
reader.skipType(tag & 7);
|
|
210
|
-
}
|
|
211
|
-
return message;
|
|
212
|
-
},
|
|
213
|
-
fromJSON(object) {
|
|
214
|
-
return { data: isSet(object.data) ? globalThis.String(object.data) : "" };
|
|
215
|
-
},
|
|
216
|
-
toJSON(message) {
|
|
217
|
-
const obj = {};
|
|
218
|
-
if (message.data !== "") {
|
|
219
|
-
obj.data = message.data;
|
|
220
|
-
}
|
|
221
|
-
return obj;
|
|
222
|
-
},
|
|
223
|
-
create(base) {
|
|
224
|
-
return PeerMessage_MediaEvent.fromPartial(base ?? {});
|
|
225
|
-
},
|
|
226
|
-
fromPartial(object) {
|
|
227
|
-
const message = createBasePeerMessage_MediaEvent();
|
|
228
|
-
message.data = object.data ?? "";
|
|
229
|
-
return message;
|
|
230
|
-
},
|
|
231
|
-
};
|
|
232
|
-
function isSet(value) {
|
|
233
|
-
return value !== null && value !== undefined;
|
|
234
|
-
}
|
|
235
|
-
//# sourceMappingURL=peer_notifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"peer_notifications.js","sourceRoot":"","sources":["../../../src/protos/fishjam/peer_notifications.ts"],"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-gen-ts_proto v1.178.0\n// protoc v5.26.1\n// source: protos/fishjam/peer_notifications.proto\n\n/* eslint-disable */\nimport * as _m0 from \"protobufjs/minimal\";\n\nexport const protobufPackage = \"fishjam\";\n\n/** Defines any type of message sent between FJ and a peer */\nexport interface PeerMessage {\n authenticated?: PeerMessage_Authenticated | undefined;\n authRequest?: PeerMessage_AuthRequest | undefined;\n mediaEvent?: PeerMessage_MediaEvent | undefined;\n}\n\n/** Response sent by FJ, confirming successfull authentication */\nexport interface PeerMessage_Authenticated {\n}\n\n/** Request sent by peer, to authenticate to FJ server */\nexport interface PeerMessage_AuthRequest {\n token: string;\n}\n\n/** Any type of WebRTC messages passed betweend FJ and peer */\nexport interface PeerMessage_MediaEvent {\n data: string;\n}\n\nfunction createBasePeerMessage(): PeerMessage {\n return { authenticated: undefined, authRequest: undefined, mediaEvent: undefined };\n}\n\nexport const PeerMessage = {\n encode(message: PeerMessage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.authenticated !== undefined) {\n PeerMessage_Authenticated.encode(message.authenticated, writer.uint32(10).fork()).ldelim();\n }\n if (message.authRequest !== undefined) {\n PeerMessage_AuthRequest.encode(message.authRequest, writer.uint32(18).fork()).ldelim();\n }\n if (message.mediaEvent !== undefined) {\n PeerMessage_MediaEvent.encode(message.mediaEvent, writer.uint32(26).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): PeerMessage {\n const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePeerMessage();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n if (tag !== 10) {\n break;\n }\n\n message.authenticated = PeerMessage_Authenticated.decode(reader, reader.uint32());\n continue;\n case 2:\n if (tag !== 18) {\n break;\n }\n\n message.authRequest = PeerMessage_AuthRequest.decode(reader, reader.uint32());\n continue;\n case 3:\n if (tag !== 26) {\n break;\n }\n\n message.mediaEvent = PeerMessage_MediaEvent.decode(reader, reader.uint32());\n continue;\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skipType(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PeerMessage {\n return {\n authenticated: isSet(object.authenticated) ? PeerMessage_Authenticated.fromJSON(object.authenticated) : undefined,\n authRequest: isSet(object.authRequest) ? PeerMessage_AuthRequest.fromJSON(object.authRequest) : undefined,\n mediaEvent: isSet(object.mediaEvent) ? PeerMessage_MediaEvent.fromJSON(object.mediaEvent) : undefined,\n };\n },\n\n toJSON(message: PeerMessage): unknown {\n const obj: any = {};\n if (message.authenticated !== undefined) {\n obj.authenticated = PeerMessage_Authenticated.toJSON(message.authenticated);\n }\n if (message.authRequest !== undefined) {\n obj.authRequest = PeerMessage_AuthRequest.toJSON(message.authRequest);\n }\n if (message.mediaEvent !== undefined) {\n obj.mediaEvent = PeerMessage_MediaEvent.toJSON(message.mediaEvent);\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<PeerMessage>, I>>(base?: I): PeerMessage {\n return PeerMessage.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<PeerMessage>, I>>(object: I): PeerMessage {\n const message = createBasePeerMessage();\n message.authenticated = (object.authenticated !== undefined && object.authenticated !== null)\n ? PeerMessage_Authenticated.fromPartial(object.authenticated)\n : undefined;\n message.authRequest = (object.authRequest !== undefined && object.authRequest !== null)\n ? PeerMessage_AuthRequest.fromPartial(object.authRequest)\n : undefined;\n message.mediaEvent = (object.mediaEvent !== undefined && object.mediaEvent !== null)\n ? PeerMessage_MediaEvent.fromPartial(object.mediaEvent)\n : undefined;\n return message;\n },\n};\n\nfunction createBasePeerMessage_Authenticated(): PeerMessage_Authenticated {\n return {};\n}\n\nexport const PeerMessage_Authenticated = {\n encode(_: PeerMessage_Authenticated, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): PeerMessage_Authenticated {\n const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePeerMessage_Authenticated();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skipType(tag & 7);\n }\n return message;\n },\n\n fromJSON(_: any): PeerMessage_Authenticated {\n return {};\n },\n\n toJSON(_: PeerMessage_Authenticated): unknown {\n const obj: any = {};\n return obj;\n },\n\n create<I extends Exact<DeepPartial<PeerMessage_Authenticated>, I>>(base?: I): PeerMessage_Authenticated {\n return PeerMessage_Authenticated.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<PeerMessage_Authenticated>, I>>(_: I): PeerMessage_Authenticated {\n const message = createBasePeerMessage_Authenticated();\n return message;\n },\n};\n\nfunction createBasePeerMessage_AuthRequest(): PeerMessage_AuthRequest {\n return { token: \"\" };\n}\n\nexport const PeerMessage_AuthRequest = {\n encode(message: PeerMessage_AuthRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.token !== \"\") {\n writer.uint32(10).string(message.token);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): PeerMessage_AuthRequest {\n const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePeerMessage_AuthRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n if (tag !== 10) {\n break;\n }\n\n message.token = reader.string();\n continue;\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skipType(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PeerMessage_AuthRequest {\n return { token: isSet(object.token) ? globalThis.String(object.token) : \"\" };\n },\n\n toJSON(message: PeerMessage_AuthRequest): unknown {\n const obj: any = {};\n if (message.token !== \"\") {\n obj.token = message.token;\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<PeerMessage_AuthRequest>, I>>(base?: I): PeerMessage_AuthRequest {\n return PeerMessage_AuthRequest.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<PeerMessage_AuthRequest>, I>>(object: I): PeerMessage_AuthRequest {\n const message = createBasePeerMessage_AuthRequest();\n message.token = object.token ?? \"\";\n return message;\n },\n};\n\nfunction createBasePeerMessage_MediaEvent(): PeerMessage_MediaEvent {\n return { data: \"\" };\n}\n\nexport const PeerMessage_MediaEvent = {\n encode(message: PeerMessage_MediaEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.data !== \"\") {\n writer.uint32(10).string(message.data);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): PeerMessage_MediaEvent {\n const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBasePeerMessage_MediaEvent();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n if (tag !== 10) {\n break;\n }\n\n message.data = reader.string();\n continue;\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skipType(tag & 7);\n }\n return message;\n },\n\n fromJSON(object: any): PeerMessage_MediaEvent {\n return { data: isSet(object.data) ? globalThis.String(object.data) : \"\" };\n },\n\n toJSON(message: PeerMessage_MediaEvent): unknown {\n const obj: any = {};\n if (message.data !== \"\") {\n obj.data = message.data;\n }\n return obj;\n },\n\n create<I extends Exact<DeepPartial<PeerMessage_MediaEvent>, I>>(base?: I): PeerMessage_MediaEvent {\n return PeerMessage_MediaEvent.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<PeerMessage_MediaEvent>, I>>(object: I): PeerMessage_MediaEvent {\n const message = createBasePeerMessage_MediaEvent();\n message.data = object.data ?? \"\";\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin ? T\n : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>\n : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };\n\nfunction isSet(value: any): boolean {\n return value !== null && value !== undefined;\n}\n"]}
|
package/build/types.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `FILL` or `FIT` - it works just like RN Image component. `FILL` fills the whole view
|
|
3
|
-
* with video and it may cut some parts of the video. `FIT` scales the video so the whole
|
|
4
|
-
* video is visible, but it may leave some empty space in the view.
|
|
5
|
-
*/
|
|
6
|
-
export type VideoLayout = 'FILL' | 'FIT';
|
|
7
|
-
/**
|
|
8
|
-
* A type describing simulcast configuration.
|
|
9
|
-
*
|
|
10
|
-
* At the moment, simulcast track is initialized in three versions - low, medium and high.
|
|
11
|
-
* High resolution is the original track resolution, while medium and low resolutions are
|
|
12
|
-
* the original track resolution scaled down by 2 and 4 respectively.
|
|
13
|
-
*/
|
|
14
|
-
export type SimulcastConfig = {
|
|
15
|
-
/**
|
|
16
|
-
* whether to simulcast track or not. By default simulcast is disabled.
|
|
17
|
-
*/
|
|
18
|
-
enabled: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type TrackMetadata = {
|
|
21
|
-
active: boolean;
|
|
22
|
-
type: 'microphone' | 'camera' | 'screenShareVideo' | 'screenShareAudio';
|
|
23
|
-
};
|
|
24
|
-
export type GenericMetadata = Record<string, unknown>;
|
|
25
|
-
declare const brand: unique symbol;
|
|
26
|
-
/**
|
|
27
|
-
* Branded type
|
|
28
|
-
*/
|
|
29
|
-
export type Brand<T, TBrand extends string> = T & {
|
|
30
|
-
[brand]: TBrand;
|
|
31
|
-
};
|
|
32
|
-
export type RoomType = 'conference' | 'audio-only' | 'livestream';
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=types.d.ts.map
|
package/build/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,YAAY,GAAG,QAAQ,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAGtD,OAAO,CAAC,MAAM,KAAK,EAAE,OAAO,MAAM,CAAC;AACnC;;GAEG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,MAAM,SAAS,MAAM,IAAI,CAAC,GAAG;IAAE,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC"}
|
package/build/types.js
DELETED
package/build/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * `FILL` or `FIT` - it works just like RN Image component. `FILL` fills the whole view\n * with video and it may cut some parts of the video. `FIT` scales the video so the whole\n * video is visible, but it may leave some empty space in the view.\n */\nexport type VideoLayout = 'FILL' | 'FIT';\n\n/**\n * A type describing simulcast configuration.\n *\n * At the moment, simulcast track is initialized in three versions - low, medium and high.\n * High resolution is the original track resolution, while medium and low resolutions are\n * the original track resolution scaled down by 2 and 4 respectively.\n */\nexport type SimulcastConfig = {\n /**\n * whether to simulcast track or not. By default simulcast is disabled.\n */\n enabled: boolean;\n};\n\nexport type TrackMetadata = {\n active: boolean;\n type: 'microphone' | 'camera' | 'screenShareVideo' | 'screenShareAudio';\n};\n\nexport type GenericMetadata = Record<string, unknown>;\n\n// branded types are useful for restricting where given value can be passed\ndeclare const brand: unique symbol;\n/**\n * Branded type\n */\nexport type Brand<T, TBrand extends string> = T & { [brand]: TBrand };\n\nexport type RoomType = 'conference' | 'audio-only' | 'livestream';\n"]}
|
package/build/utils/config.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAMF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAI,CAE3E;AAED,wBAAgB,cAAc,IAAI,WAAW,CAE5C"}
|
package/build/utils/config.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const debugConfig = {
|
|
2
|
-
validateEventPayloads: process.env.EXPO_PUBLIC_CHECK_EVENT_PAYLOAD ?? false,
|
|
3
|
-
};
|
|
4
|
-
export function setOverwriteDebugConfig(partial) {
|
|
5
|
-
Object.assign(debugConfig, partial);
|
|
6
|
-
}
|
|
7
|
-
export function getDebugConfig() {
|
|
8
|
-
return debugConfig;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,GAAgB;IAC/B,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC,+BAA+B,IAAI,KAAK;CAC5E,CAAC;AAEF,MAAM,UAAU,uBAAuB,CAAC,OAA6B;IACnE,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["export type DebugConfig = {\n validateEventPayloads: boolean;\n};\n\nconst debugConfig: DebugConfig = {\n validateEventPayloads: process.env.EXPO_PUBLIC_CHECK_EVENT_PAYLOAD ?? false,\n};\n\nexport function setOverwriteDebugConfig(partial: Partial<DebugConfig>): void {\n Object.assign(debugConfig, partial);\n}\n\nexport function getDebugConfig(): DebugConfig {\n return debugConfig;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorListener.d.ts","sourceRoot":"","sources":["../../src/utils/errorListener.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,YAarC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import nativeModule, { ReceivableEvents } from '../RNFishjamClientModule';
|
|
2
|
-
export const initializeWarningListener = () => {
|
|
3
|
-
if (!__DEV__) {
|
|
4
|
-
return;
|
|
5
|
-
}
|
|
6
|
-
try {
|
|
7
|
-
nativeModule.addListener(ReceivableEvents.Warning, (event) => {
|
|
8
|
-
console.warn(event[ReceivableEvents.Warning]);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
catch (error) {
|
|
12
|
-
console.error(`Failed to start warning listener: ${error instanceof Error ? error.message : ''}`);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=errorListener.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errorListener.js","sourceRoot":"","sources":["../../src/utils/errorListener.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;IACT,CAAC;IACD,IAAI,CAAC;QACH,YAAY,CAAC,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAC3D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,OAAO,CAAC,KAAK,CACX,qCAAqC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACnF,CAAC;IACJ,CAAC;AACH,CAAC,CAAC","sourcesContent":["import nativeModule, { ReceivableEvents } from '../RNFishjamClientModule';\n\nexport const initializeWarningListener = () => {\n if (!__DEV__) {\n return;\n }\n try {\n nativeModule.addListener(ReceivableEvents.Warning, (event) => {\n console.warn(event[ReceivableEvents.Warning]);\n });\n } catch (error: unknown) {\n console.error(\n `Failed to start warning listener: ${error instanceof Error ? error.message : ''}`,\n );\n }\n};\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ReceivableEventPayloads, ReceivableEvents } from '../RNFishjamClientModule';
|
|
2
|
-
export declare function validateNativeEventPayload<T extends keyof typeof ReceivableEvents>(eventName: T, payload: ReceivableEventPayloads[T]): void;
|
|
3
|
-
//# sourceMappingURL=eventPayloadValidator.d.ts.map
|