android-youtube-api

Youtube Comment API: Comment Insert 403 forbidden insufficient permissions

混江龙づ霸主 提交于 2019-12-02 09:33:39
This is what im using to add comments to youtube : gapi.client.youtube.commentThreads.insert({ part: "snippet", commentData }).then(function (response) { console.log("response", response); }) This is what im getting while hit that : { "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission: Request had insufficient authentication scopes." } ], "code": 403, "message": "Insufficient Permission: Request had insufficient authentication scopes." } } Insufficient Permission: Request had insufficient authentication scopes. Means exactly

Google Play store app rejection due to policy violation

孤人 提交于 2019-12-02 07:52:44
问题 After app submission I am getting message that "My app submission was rejected for violating the Device and Network Abuse policy. Before submitting your app for another review, read through the policy and modify your app to make sure that it doesn't download, monetise or access YouTube videos in a way that violates the YouTube Terms of Service." In that app I am just playing a youtube video with youtube video player. Suggest me that how to publish this app successfully. 回答1: I just solved

YouTubePlayerFragment backstack

亡梦爱人 提交于 2019-12-02 05:43:40
问题 I want to use YouTubePlayerFragment in my activity with backstack. So when I press back button fragment disappears and on some action in future (button click for example) appears again with another video. Here's my code public class YouTubeTestActivity extends Activity implements YouTubePlayer.OnInitializedListener { @OnClick(R.id.button) public void click(){ init(); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

Is it possible to overlay some views on YouTube Android Player?

二次信任 提交于 2019-12-02 05:08:46
问题 I want to use my media controller instead of build-in one of YouTube Android Player. So, I have put some views overlapped YouTube Android Player. However, I got a problem which is it always pauses automatically after played one second. Therefore, is it possible to overlay some views on YouTube Android Player? 回答1: Youtube deliberately prevent any attempt at displaying anything on top of their player. As soon as it detects this the playback will pause. This blocks the growth of a whole

How can I play YouTube live streams with the YouTube Android Player API?

混江龙づ霸主 提交于 2019-12-02 04:30:37
I have managed to play YouTube videos using YouTubePlayer. However, when I try to play live streams using YouTubePlayer, nothing happens. Is playing live streams supported by the API? If so, how do I do it? There is no difference in playing normal YouTube videos and live videos.I was unable to play live videos on android version 4.1. however on version 4.2.2, live videos played successfully. Latest version of Official Youtube app must be installed in order to use API. Code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); YouTubePlayerView youTubeView =

YouTubePlayerFragment backstack

ε祈祈猫儿з 提交于 2019-12-02 01:06:42
I want to use YouTubePlayerFragment in my activity with backstack. So when I press back button fragment disappears and on some action in future (button click for example) appears again with another video. Here's my code public class YouTubeTestActivity extends Activity implements YouTubePlayer.OnInitializedListener { @OnClick(R.id.button) public void click(){ init(); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.test); ButterKnife.inject(this); init(); } private void init() { YouTubePlayerFragment f =

Is it possible to overlay some views on YouTube Android Player?

坚强是说给别人听的谎言 提交于 2019-12-01 22:55:05
I want to use my media controller instead of build-in one of YouTube Android Player. So, I have put some views overlapped YouTube Android Player. However, I got a problem which is it always pauses automatically after played one second. Therefore, is it possible to overlay some views on YouTube Android Player? Youtube deliberately prevent any attempt at displaying anything on top of their player. As soon as it detects this the playback will pause. This blocks the growth of a whole industry of video meme players :( One main reason for this could be to prevent the obvious attempt at competing

YouTubePlayerSupportFragment and AppCompatActivity error

做~自己de王妃 提交于 2019-12-01 20:38:51
问题 I'm developing application which uses YouTube android API. For playing video I used YouTubePlayerFragment. When I extend my activity from Activity class all goes right, but when I switched to AppCompatActivity and YouTubePlayerSupportFragment video can't start and I see these errors in logcat: 11-09 21:43:42.770 28199-28199/org.appspot.apprtc E/YouTubeAndroidPlayerAPI: Error creating YouTubePlayerView 11-09 21:43:42.770 28199-28199/org.appspot.apprtc E/YouTubeAndroidPlayerAPI: com.google

Swipe Gesture are not working in YouTubePlayerView in full screen mode

▼魔方 西西 提交于 2019-12-01 14:34:06
问题 I am using the YouTube API , and I want to apply the Swipe left and right gesture on YouTubePlayerView in full screen mode. The Swipe gestures are not working in Android version 4.0+ when YouTubePlayerView is in full screen mode. Please help me with this. Thanks in advance. 回答1: You can try Extending YoutubePlayerView and Override onTouchEvent and return false 回答2: Better late than never. The problem is the equivalent to the z-index in css. The video in fullscreen is added after the activity

Youtube Exit Full Screen Mode TextView Visibility Issue

拥有回忆 提交于 2019-12-01 14:00:40
问题 I am playing video in a full screen mode, and when I do click on back button I am able to exit full screen mode - but not able to show TextView which I have hide in case of full screen. To Hide textView on Full Screen mode, I am using below code: @Override public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player, boolean wasRestored) { if (!wasRestored) { showPlayer(); videoPlayer = player; videoPlayer.setOnFullscreenListener(new OnFullscreenListener() {