-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into config-changes
- Loading branch information
Showing
14 changed files
with
401 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,9 @@ js-server-sdk | |
Docusaurus | ||
pre-configured | ||
TabItem | ||
AndroidManifest.xml | ||
iOS | ||
Xcode | ||
UI | ||
dev | ||
Podfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
sidebar_position: 6 | ||
--- | ||
|
||
import Tabs from "@theme/Tabs"; | ||
import TabItem from "@theme/TabItem"; | ||
|
||
# Streaming from background | ||
|
||
On Android, it is possible to continue streaming when app is in background. Unfortunately this functionality is not available on iOS (due to Apple limitations) | ||
|
||
Below is configuration required to make it work: | ||
|
||
<Tabs groupId="app-type"> | ||
|
||
<TabItem value="expo" label="Expo"> | ||
|
||
You need to modify `app.json` file and add our plugin: | ||
|
||
```json | ||
{ | ||
"expo": { | ||
... | ||
"plugins": { | ||
... | ||
[ | ||
"@fishjam-cloud/react-native-client", | ||
{ | ||
"android": { | ||
"enableForegroundService": true | ||
} | ||
} | ||
], | ||
... | ||
} | ||
} | ||
} | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="rn" label="Bare workflow"> | ||
|
||
You need to modify `AndroidManifest.xml` file and add below service: | ||
|
||
```xml | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
... | ||
<application ...> | ||
... | ||
<service android:name="io.fishjam.reactnative.FishjamForegroundService" android:foregroundServiceType="camera|microphone|mediaProjection"/> | ||
</application> | ||
</manifest> | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.