Android TV:如何在YouTube v2.00.17更新中只按一次返回按钮

时间:2017-07-19 06:32:32

标签: android android-intent youtube android-tv

我过去常常对新的YouTube意图应用以下建议。

Android TV embedded youtube 1080p

String videoId = "dQw4w9WgXcQ";
    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + videoId));
    intent.putExtra("force_fullscreen", true);
    intent.putExtra("finish_on_ended", true);
    startActivity(intent);

对于YouTube v1.3.11,可以按遥控器的“返回”按钮1次以回到呼叫意图,但在YouTube更新到v2.00.17之后。我会见:

  1. 输入新的YouTube意图后,会显示一个消息框"您已退出"
  2. 按“返回”按钮,会出现一个对话框"您确定要退出YouTube吗?"

  3. 然而,没有办法真正退出这个     时间到了,即使我一直按下Back并选择EXIT。

  4. 然后我尝试将putExtra命令标记如下:

    String videoId = "dQw4w9WgXcQ";
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:" + videoId));
        //intent.putExtra("force_fullscreen", true);
        //intent.putExtra("finish_on_ended", true);
        startActivity(intent);
    

    新的YouTube意图变得正常,但我需要按 3 次以返回到调用意图。

    在YouTube v2.00.17上,是否可以按<返回 1 时间返回?感谢。

0 个答案:

没有答案