Skip to content

Feature/rtmp stream screen #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
}

dependencies {
Expand All @@ -71,6 +77,7 @@ dependencies {
implementation 'com.google.android.exoplayer:exoplayer:2.13.3'
implementation 'io.sentry:sentry-android:4.3.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.0.2'

testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
Expand Down
37 changes: 26 additions & 11 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,32 @@
package="com.fpvout.digiview">

<uses-feature android:name="android.hardware.usb.host" />

<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Digiview"
>
android:theme="@style/Theme.Digiview">
<activity
android:name=".DataCollectionAgreementPopupActivity"
android:label="@string/title_activity_data_collection"
android:theme="@style/Theme.AppCompat.Dialog"></activity>
android:theme="@style/Theme.AppCompat.Dialog" />
<activity
android:name=".SettingsActivity"
android:label="@string/title_activity_settings"></activity>
android:label="@string/title_activity_settings" />

<activity
android:launchMode="singleTask"
android:name="com.fpvout.digiview.MainActivity"
android:screenOrientation="sensorLandscape"
android:configChanges="orientation|keyboardHidden">
android:configChanges="orientation|keyboardHidden"
android:launchMode="singleTask"
android:screenOrientation="sensorLandscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -38,14 +41,26 @@
<action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" />
</intent-filter>

<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />

<meta-data android:name="android.hardware.usb.action.USB_DEVICE_DETACHED"
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_DETACHED"
android:resource="@xml/device_filter" />
</activity>
<meta-data android:name="io.sentry.dsn" android:value="https://[email protected]/5764247" />
<meta-data android:name="io.sentry.auto-init" android:value="false" />

<service
android:name=".streaming.StreamingService"
android:foregroundServiceType="mediaProjection" />

<meta-data
android:name="io.sentry.dsn"
android:value="https://[email protected]/5764247" />
<meta-data
android:name="io.sentry.auto-init"
android:value="false" />

<provider
android:name="io.sentry.android.core.SentryInitProvider"
android:authorities="com.fpvout.digiview.SentryInitProvider"
Expand Down
Loading