Fixes default values and adds explanation message for permission request
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
This commit is contained in:
@@ -45,7 +45,7 @@ class MainActivity : AppCompatActivity() {
|
||||
// Explain why we need permissions
|
||||
showDialog(
|
||||
title = "Permissions denied",
|
||||
message = "Explain why you need to grant $permissions permissions to stream",
|
||||
message = getString(R.string.message),
|
||||
positiveButtonText = R.string.accept,
|
||||
onPositiveButtonClick = { onRequiredPermissionLastTime() },
|
||||
negativeButtonText = R.string.denied
|
||||
|
||||
@@ -11,7 +11,7 @@ class SettingsActivity : AppCompatActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
PreferenceManager.setDefaultValues(this, R.xml.root_preferences, false);
|
||||
//PreferenceManager.setDefaultValues(this, R.xml.root_preferences, false);
|
||||
setContentView(R.layout.settings_activity)
|
||||
if (savedInstanceState == null) {
|
||||
supportFragmentManager
|
||||
@@ -39,4 +39,4 @@ class SettingsActivity : AppCompatActivity() {
|
||||
fun getBitrate(context: Context): String =
|
||||
PreferenceManager.getDefaultSharedPreferences(context).getString("pref_bitrate", "") ?: ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
<string name="app_name">Pico Streaming App</string>
|
||||
<string name="denied">Denied</string>
|
||||
<string name="accept">Accept</string>
|
||||
<string name="message">Video and Audio permissions are required to stream from main camera and microphone.</string>
|
||||
<string name="title_activity_settings">Settings</string>
|
||||
|
||||
<!-- Preference Titles -->
|
||||
<string name="messages_header">Server</string>
|
||||
<string name="messages_header">Connection</string>
|
||||
<string name="sync_header">Sync</string>
|
||||
|
||||
</resources>
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<EditTextPreference
|
||||
app:key="pref_server"
|
||||
app:title="Server"
|
||||
app:title="Stream URL"
|
||||
app:summary="srt://host:port or rtsp://..."
|
||||
app:useSimpleSummaryProvider="true"
|
||||
app:defaultValue=""/>
|
||||
@@ -30,4 +30,4 @@
|
||||
app:defaultValue="@array/default_bitrate"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
</PreferenceScreen>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
Minimal RTMP streaming app based on StreamPack-boilerplate.
|
||||
Minimal RTMP streaming app heavily based on StreamPack-boilerplate.
|
||||
|
||||
It really just adds a bunch of options to make it flexible enough to stream from an Android phone.
|
||||
|
||||
Sends video to specified RTMP/RTSP url using main camera and microphone.
|
||||
|
||||
Reference in New Issue
Block a user