feat(android): record play-intent on remote play/pause
This commit is contained in:
@@ -172,6 +172,7 @@ class MinstrelForwardingPlayer(
|
|||||||
if (active == null) {
|
if (active == null) {
|
||||||
super.play()
|
super.play()
|
||||||
} else {
|
} else {
|
||||||
|
remoteState.setPlayIntent(true)
|
||||||
scope.launch {
|
scope.launch {
|
||||||
runCatching { active.avTransport.play() }
|
runCatching { active.avTransport.play() }
|
||||||
.onSuccess {
|
.onSuccess {
|
||||||
@@ -193,6 +194,7 @@ class MinstrelForwardingPlayer(
|
|||||||
if (active == null) {
|
if (active == null) {
|
||||||
super.pause()
|
super.pause()
|
||||||
} else {
|
} else {
|
||||||
|
remoteState.setPlayIntent(false)
|
||||||
scope.launch {
|
scope.launch {
|
||||||
runCatching { active.avTransport.pause() }
|
runCatching { active.avTransport.pause() }
|
||||||
.onSuccess {
|
.onSuccess {
|
||||||
|
|||||||
Reference in New Issue
Block a user