protected override void OnNewIntent(Intent intent)
        {
            string url = "";

            if (intent != null)
            {
                try
                {
                    url = intent.GetStringExtra("URL");
                    if ((url != null || url != "") && MainPlaybackSticky.NotificationShouldPlayInBkgrd)
                    {
                        NotificationIsBringingAppForeground = true;
                        NotificationRequestedInBackground   = true;
                        Instance.MoveTaskToBack(true);
                    }
                }
                catch { }
            }
            if (url == "" || url == null)
            {
                return;
            }
            try
            {
                if (PlaystateManagement.PlayerTypeQueued() == PlaystateManagement.PlayerType.WebViewPlayer)
                {
                    if (!AppState.NotificationStartedApp)
                    {
                        if (PlaystateManagement.GetWebViewPlayerById(-1, ViewPager.CurrentItem).Id
                            != PlaystateManagement.WebViewPlayerNumberIsStreaming)
                        {
                            PlaystateManagement._webViewPlayerQueuedId = PlaystateManagement.WebViewPlayerNumberIsStreaming;
                        }
                        PlaystateManagement.GetWebViewPlayerById(-1, ViewPager.CurrentItem).LoadUrlWithDelay(url);
                        PlaystateManagement.WebViewPlayerNumberIsStreaming =
                            PlaystateManagement.GetWebViewPlayerById(-1, ViewPager.CurrentItem).Id;
                        PlaystateManagement.WebViewPlayerIsStreaming = true;
                    }
                }
                else
                {
                }
            }
            catch { }
            base.OnNewIntent(intent);
        }
            public override void OnReceive(Context context, Intent intent)
            {
                if (intent.Action == Intent.ActionHeadsetPlug)
                {
                    int state = intent.GetIntExtra("state", -1);
                    switch (state)
                    {
                    case 0:
                        //headset unplugged
                        PlaystateManagement.SendPauseVideoCommand();
                        break;

                    case 1:
                        //headset plugged
                        break;

                    default:
                        break;
                    }
                }
            }