如何禁用Android版YouTube API字幕? [英] How to disable captions in Youtube Android 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屋!