Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
642c49b1ea | ||
|
|
e13b16f13c | ||
|
|
1f9fa9ba4f |
+2
-2
@@ -1,6 +1,6 @@
|
||||
cask "plezy" do
|
||||
version "1.26.1"
|
||||
sha256 "1474e1fb13689c08f9a25eb426bc84cc95c1127f85c4fb60ee7cb9ec57eb516a"
|
||||
version "1.27.0"
|
||||
sha256 "39baaece57637889946ef847e678f33817c0b900ae52a626f5db69415a60fb7b"
|
||||
|
||||
url "https://github.com/edde746/plezy/releases/download/#{version}/plezy-macos.dmg"
|
||||
name "Plezy"
|
||||
|
||||
@@ -115,7 +115,7 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
}
|
||||
},
|
||||
isPaused = {
|
||||
try { MPVLib.getPropertyBoolean("pause") }
|
||||
try { MPVLib.getPropertyBoolean("pause") == true }
|
||||
catch (e: Exception) { true }
|
||||
}
|
||||
)
|
||||
@@ -124,7 +124,7 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
handler = handler,
|
||||
onDisplayChanged = {
|
||||
try {
|
||||
if (MPVLib.getPropertyBoolean("pause")) {
|
||||
if (MPVLib.getPropertyBoolean("pause") == true) {
|
||||
Log.d(TAG, "Display changed, resuming playback")
|
||||
MPVLib.setPropertyBoolean("pause", false)
|
||||
}
|
||||
@@ -364,7 +364,7 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
if (disposing) return
|
||||
when (eventId) {
|
||||
MPVLib.MPV_EVENT_END_FILE -> {
|
||||
val eofReached = try { MPVLib.getPropertyBoolean("eof-reached") } catch (_: Exception) { false }
|
||||
val eofReached = try { MPVLib.getPropertyBoolean("eof-reached") == true } catch (_: Exception) { false }
|
||||
val data: Map<String, Any>? = if (eofReached) {
|
||||
mapOf("reason" to 0) // EOF
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
name: plezy
|
||||
description: "A beautiful Plex client for Flutter"
|
||||
publish_to: "none"
|
||||
version: 1.27.0+57
|
||||
version: 1.27.1+58
|
||||
|
||||
environment:
|
||||
sdk: ^3.8.1
|
||||
|
||||
Reference in New Issue
Block a user