mirror of
https://github.com/zoriya/Opus.git
synced 2025-12-06 06:26:15 +00:00
Solving a bug that prevented playback when the user have no google APIs on his device.
This commit is contained in:
@@ -227,7 +227,7 @@ namespace Opus.Api.Services
|
|||||||
RegisterReceiver(noisyReceiver, new IntentFilter(AudioManager.ActionAudioBecomingNoisy));
|
RegisterReceiver(noisyReceiver, new IntentFilter(AudioManager.ActionAudioBecomingNoisy));
|
||||||
noisyRegistered = true;
|
noisyRegistered = true;
|
||||||
|
|
||||||
RemotePlayer = MainActivity.CastContext.SessionManager.CurrentCastSession?.RemoteMediaClient;
|
RemotePlayer = MainActivity.CastContext?.SessionManager.CurrentCastSession?.RemoteMediaClient;
|
||||||
if(RemotePlayer != null)
|
if(RemotePlayer != null)
|
||||||
{
|
{
|
||||||
if (CastCallback == null)
|
if (CastCallback == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user