feat: Jam-Host abgeben, Einladen-Code mittig (1.7.0)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -19,8 +19,8 @@ android {
|
||||
applicationId = "de.fojadrachi.playtube"
|
||||
minSdk = 26
|
||||
targetSdk = 36
|
||||
versionCode = 11
|
||||
versionName = "1.6.1"
|
||||
versionCode = 12
|
||||
versionName = "1.7.0"
|
||||
|
||||
// Update-Quelle: eigener Gitea-Server (kein GitHub/Google Play).
|
||||
buildConfigField("String", "UPDATE_SERVER", "\"https://git.fojadrachi.de\"")
|
||||
|
||||
@@ -309,7 +309,18 @@ class JamActivity : AppCompatActivity() {
|
||||
Unit
|
||||
}
|
||||
} else null
|
||||
members.addView(row(name, info, image = null, initial = m.name.take(1).uppercase(), action1 = null, action2 = kick).apply {
|
||||
// Host-Rolle abgeben (nur an jemanden, der gerade verbunden ist).
|
||||
val makeHost = if (state.isHost && m.id != state.you && m.online) {
|
||||
R.drawable.ic_crown to {
|
||||
AlertDialog.Builder(this)
|
||||
.setMessage(getString(R.string.jam_make_host_confirm, m.name))
|
||||
.setPositiveButton(R.string.jam_make_host) { _, _ -> JamHub.send("transfer", "memberId" to m.id) }
|
||||
.setNegativeButton(R.string.pc_cancel, null)
|
||||
.show()
|
||||
Unit
|
||||
}
|
||||
} else null
|
||||
members.addView(row(name, info, image = null, initial = m.name.take(1).uppercase(), action1 = makeHost, action2 = kick).apply {
|
||||
alpha = if (m.online) 1f else 0.5f
|
||||
})
|
||||
}
|
||||
|
||||
@@ -276,6 +276,7 @@ object JamHub {
|
||||
"not_allowed" -> str(R.string.jam_error_not_allowed)
|
||||
"queue_full" -> str(R.string.jam_error_queue_full)
|
||||
"bad_video" -> str(R.string.jam_error_bad_video)
|
||||
"offline" -> str(R.string.jam_error_offline)
|
||||
"playlist_not_found" -> str(R.string.jam_error_playlist)
|
||||
"rate_limited" -> str(R.string.jam_error_rate_limited)
|
||||
else -> str(R.string.jam_error_other, error)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Krone: "Zum Host machen" in der Teilnehmerliste des Jams -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FFAAAAAA"
|
||||
android:pathData="M5,16L3,5l5.5,5L12,4l3.5,6L21,5l-2,11H5zM19,19c0,0.6 -0.4,1 -1,1H6c-0.6,0 -1,-0.4 -1,-1v-1h14v1z" />
|
||||
</vector>
|
||||
@@ -383,6 +383,7 @@
|
||||
<TextView
|
||||
android:id="@+id/jamInviteCode"
|
||||
android:layout_width="match_parent"
|
||||
android:gravity="center"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:letterSpacing="0.1"
|
||||
@@ -393,6 +394,7 @@
|
||||
<TextView
|
||||
android:id="@+id/jamInviteLink"
|
||||
android:layout_width="match_parent"
|
||||
android:gravity="center"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_muted"
|
||||
android:textIsSelectable="true"
|
||||
|
||||
@@ -96,6 +96,9 @@
|
||||
<string name="jam_client_web">Browser</string>
|
||||
<string name="jam_kick">Entfernen</string>
|
||||
<string name="jam_kick_confirm">%1$s aus dem Jam entfernen?</string>
|
||||
<string name="jam_make_host">Zum Host machen</string>
|
||||
<string name="jam_make_host_confirm">%1$s zum Host machen? Du gibst damit die Host-Rechte ab.</string>
|
||||
<string name="jam_error_offline">Diese Person ist gerade nicht verbunden.</string>
|
||||
<string name="jam_play_now">Jetzt spielen</string>
|
||||
<string name="jam_remove">Entfernen</string>
|
||||
<string name="jam_added">Hinzugefügt: %1$s</string>
|
||||
|
||||
+10
-20
@@ -1,27 +1,17 @@
|
||||
## Playtube für Android 1.6.1
|
||||
## Playtube für Android 1.7.0
|
||||
|
||||
- **„Jetzt senden“ schickt immer einen Bericht:** Bisher passierte nach einer frischen Installation nichts
|
||||
(„Keine neuen Einträge“). Jetzt geht auch ohne neue Einträge ein kurzer Bericht mit App-Version, Gerät
|
||||
und dem Vermerk „manuell gesendet“ raus – so lässt sich prüfen, ob der Versand klappt.
|
||||
- **Jam genauer synchron:** Kleine Abweichungen werden unhörbar über ein leicht angepasstes Tempo ausgeglichen
|
||||
(die Tonhöhe bleibt gleich); gesprungen wird erst ab 1 Sekunde Abweichung und mit Vorhalt.
|
||||
- **Host abgeben:** Als Host kannst du die Rolle im Jam an jemand anderen übergeben – in der Liste „Dabei“ auf die
|
||||
Krone neben dem Namen tippen und bestätigen.
|
||||
- **„Freunde einladen“:** Code und Link stehen jetzt mittig.
|
||||
|
||||
Neu in 1.6.0: Diagnosedaten (Abstürze und Verbindungsfehler, ohne Cookies, Anmeldedaten, Suchanfragen oder
|
||||
Songtitel), abschaltbar über das Zahnrad am rechten Rand. Details: playtube-ppp-eula.pages.dev/playtube/privacy/#diag
|
||||
|
||||
Voraussetzung: Android 8.0 oder neuer.
|
||||
Alles Weitere wie in 1.6.1. Voraussetzung: Android 8.0 oder neuer.
|
||||
|
||||
---
|
||||
|
||||
## Playtube for Android 1.6.1
|
||||
## Playtube for Android 1.7.0
|
||||
|
||||
- **"Send now" always sends a report:** after a fresh install nothing happened ("No new entries"). Now a short
|
||||
report with app version, device and the note "sent manually" goes out even without new entries – so you can
|
||||
check that sending works.
|
||||
- **Jam stays more closely in sync:** small offsets are corrected inaudibly by slightly adjusting the playback
|
||||
speed (pitch stays the same); it only seeks once the offset reaches 1 second, with a lead time.
|
||||
- **Hand over host:** as host you can pass the role in a jam to someone else – tap the crown next to their name in
|
||||
the "Listening" list and confirm.
|
||||
- **"Invite friends":** the code and link are now centered.
|
||||
|
||||
New in 1.6.0: diagnostic data (crashes and connection errors, no cookies, sign-in data, searches or song titles),
|
||||
can be turned off via the gear button on the right edge. Details: playtube-ppp-eula.pages.dev/playtube/privacy/#diag
|
||||
|
||||
Requires Android 8.0 or newer.
|
||||
Everything else as in 1.6.1. Requires Android 8.0 or newer.
|
||||
|
||||
Reference in New Issue
Block a user