1

如您所知,当迷你控制器打开时,我们可以单击它并打开包含搜索栏的弹出窗口。我使用了 Cast Companion Library 和其他功能运行良好。

            CastConfiguration options = new CastConfiguration.Builder(applicationId)
            .enableAutoReconnect()
            .enableCaptionManagement()
            .enableDebug()
            .enableLockScreen()
            .enableNotification()
            .enableWifiReconnection()
            .setCastControllerImmersive(true)
            .setLaunchOptions(false, Locale.getDefault())
            .setNextPrevVisibilityPolicy(CastConfiguration.NEXT_PREV_VISIBILITY_POLICY_DISABLED)
            .addNotificationAction(CastConfiguration.NOTIFICATION_ACTION_REWIND, false)
            .addNotificationAction(CastConfiguration.NOTIFICATION_ACTION_PLAY_PAUSE, true)
            .addNotificationAction(CastConfiguration.NOTIFICATION_ACTION_DISCONNECT, true)
            .setForwardStep(10)
            .build();
    VideoCastManager.initialize(this, options);

有什么方法可以启用此搜索栏弹出窗口吗?

我已经调试了我的代码。VideoCastControllerActivity 未打开。我可以提供更多的调试结果来获得你们的帮助。

4

0 回答 0