MPV remote support (#445)

Co-authored-by: Ferenc Nánási <husudous94@gmail.com>
This commit is contained in:
Ferenc Nánási 2022-03-20 18:38:14 +01:00 committed by GitHub
parent 6db203c219
commit 493fb155e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -121,6 +121,7 @@ class ExternalIntents(val anime: Anime, val source: AnimeSource) {
MPV_PLAYER -> ComponentName(packageName, "$packageName.MPVActivity")
MX_PLAYER_FREE, MX_PLAYER_PRO -> ComponentName(packageName, "$packageName.ActivityScreen")
VLC_PLAYER -> ComponentName(packageName, "$packageName.gui.video.VideoPlayerActivity")
MPV_REMOTE -> ComponentName(packageName, "$packageName.MainActivity")
else -> null
}
}
@ -139,3 +140,4 @@ private const val MPV_PLAYER = "is.xyz.mpv"
private const val MX_PLAYER_FREE = "com.mxtech.videoplayer.ad"
private const val MX_PLAYER_PRO = "com.mxtech.videoplayer.pro"
private const val VLC_PLAYER = "org.videolan.vlc"
private const val MPV_REMOTE = "com.husudosu.mpvremote"

View file

@ -82,6 +82,7 @@ class SettingsPlayerController : SettingsController() {
"com.mxtech.videoplayer.ad" -> true
"com.mxtech.videoplayer.pro" -> true
"org.videolan.vlc" -> true
"com.husudosu.mpvremote" -> true
else -> false
}
}