如何禁用Android版YouTube API字幕? [英] How to disable captions in Youtube Android API?

查看:551
本文介绍了如何禁用Android版YouTube API字幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用<一个href=\"https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/YouTubePlayerView\"相对=nofollow> YouTubePlayerView 从<一个href=\"https://developers.google.com/youtube/android/player/%20and%20I%20want%20to%20disable%20captions%20in%20my%20player.\"相对=nofollow> Android版YouTube API 。但我没有找到禁止内线球员字幕选项。这相当于cc_load_policy和加入iv_load_policy的。是否有关闭它们的解决方案。

I'm using YouTubePlayerView from Youtube Android API. But I didn't find option for disabling captions inside player. that's equivalent of cc_load_policy and iv_load_policy. Is there a solution for turning them off.

推荐答案

由于Android 4.4系统,关闭字幕是一个系统的功能。结果
您可以将用户重定向对应设置页面上:

Since Android 4.4, close captioning is a System feature.
You can redirect the user on the corresponding settings page :

startActivityForIntent(new Intent(Settings.ACTION_CAPTIONING_SETTINGS));

来源

这篇关于如何禁用Android版YouTube API字幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆