android-youtube-api

UNIQUE constraint failed when trying to share video via intent

此生再无相见时 提交于 2019-12-08 07:28:28
问题 Hey I'm trying to develop an app which would allow users to share video files. Whenever I try to share the same video file for the second time I get constraint failed error 11-21 20:46:47.103 1076-4528/? E/SQLiteDatabase﹕ Error inserting bucket_id=-1634214109 date_modified=1448138795 datetaken=1448138795000 bucket_display_name=.estrongs parent=894 format=12299 storage_id=131073 media_type=3 mime_type=video/mp4 _size=1235266 title=video1 _data=/storage/sdcard1/.estrongs/video1.mp4 date_added

YouTube Client on Android having a java.lang.NullPointerException

拈花ヽ惹草 提交于 2019-12-08 06:44:28
Now I know the problem but still no idea how to resolve it, the resquest is rejected by google instead of the fact that I renewed the key, and it was working before, now it gives me this error: ipRefererBlocked : "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed." the list returned is null since the request is rejected. ******the Old issue******* Im trying sice along time to create

android YouTubePlayerView shows “Ad” word

我只是一个虾纸丫 提交于 2019-12-08 06:40:01
问题 We've been using YouTubePlayerView with YouTubePlayer in our app for some time and recently I noticed we start seeing the word " Ad " on the bottom left of the view. Double checking it I am certain this comes from YouTubePlayerView and not from the player or from any other layout part related to our app. Our initialization of the player is straightforward, we're doing this: mYoutubePlayer.setShowFullscreenButton(false); mYoutubePlayer.setPlayerStyle(YouTubePlayer.PlayerStyle.MINIMAL);

Youtube Android/IOS SDKs don't seem to count views when playing

有些话、适合烂在心里 提交于 2019-12-08 06:07:21
问题 I've built a custom app that uses the Youtube Android and IOS SDKs to play videos. I have noticed that the views of these videos in the app do not seem to be counting towards the overall view count. This is problematic - is there any way to make Youtube views in the app count? Perhaps if I switch off auto-play of videos in the SDK? Any advice would be appreciated. 回答1: My developed app count views of video. If you send me your target video title name or ID, I will test views through my app.

Is there any way to disable “Watch Next” block at the end of video using YouTube Android Player API?

允我心安 提交于 2019-12-08 04:37:28
问题 In my app I'm using YouTube Android Player API library from here https://developers.google.com/youtube/android/player/ I have a fragment that extends YouTubePlayerFragment. All works fine, but I need to make some improvements to app. At the end of some videos I see block "Watch Next" with the link to another video, so I'm curious - does we have a possibility to disable this feature? I created another solution using WebView, and display video using it - in this case I'm able to turn off any

Youtube video played in WebView shows black screen when taken to fullscreen

孤街醉人 提交于 2019-12-08 02:45:00
问题 Short Version: To play YouTube video, I'm using a WebView like this, webView.loadData("<style> body{margin:0; background-color:black;}div{width:100%; height:100%; background-color:black}iframe{ width:100%; height:100%; border:none; overflow:hidden; }</style><div><iframe src=\"http://www.youtube-nocookie.com/embed/4eO9SS3wvLY?autoplay=1&rel=0&app=youtube_gdata&fs=1" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" webkitallowfullscreen=\"webkitallowfullscreen\"></iframe></div>", "text

Android Youtube Player in Fragment and Activity causes black screen

拥有回忆 提交于 2019-12-07 12:29:13
问题 I need to load a video in youtube player in an fragment (Consider it as Fragment A) as a header to a gridview in a fragment.Video is loading fine without any issue. But if i click on a grid item and loads seperate activity (Consider it as Activity B) in which there also, I am having youtube video player. It is playing fine in that activity. But when i come back to fragment from the activity B , now youtube player is not playing. Simply black screen is displaying. FYI, I am having Fragment A

Getting lot of crashes in Youtube Player API

£可爱£侵袭症+ 提交于 2019-12-07 06:45:01
问题 I have implemented youtube player api in android app. I get the following crash frequently while playing the video: 08-03 11:18:25.289 15393 15393 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void iqe.a(boolean)' on a null object reference 08-03 11:18:25.289 15393 15393 E AndroidRuntime: at ioy.onFilterTouchEventForSecurity(SourceFile:115) 08-03 11:18:25.289 15393 15393 E AndroidRuntime: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2091)

YouTube ads never show while using YouTube Android Player API

纵饮孤独 提交于 2019-12-06 23:58:07
问题 YouTube ads never show no matter what the player style or what the video. Actual YouTube version: 10.18.55 YouTube Android Player API: 1.2.1 I remember that I saw some ads while was developing my app. Now I can't see any ad after hundreds of tests. This is actually a problem, because my app gets constantly suspended or rejected because of "unauthorized use" of YouTube API. Google Play Support Team thinks that I disable the ads somehow. Please confirm the issue. 回答1: Same thing happened to me

android YouTubePlayerView shows “Ad” word

左心房为你撑大大i 提交于 2019-12-06 19:15:28
We've been using YouTubePlayerView with YouTubePlayer in our app for some time and recently I noticed we start seeing the word " Ad " on the bottom left of the view. Double checking it I am certain this comes from YouTubePlayerView and not from the player or from any other layout part related to our app. Our initialization of the player is straightforward, we're doing this: mYoutubePlayer.setShowFullscreenButton(false); mYoutubePlayer.setPlayerStyle(YouTubePlayer.PlayerStyle.MINIMAL); mYoutubePlayer.addFullscreenControlFlag(YouTubePlayer.FULLSCREEN_FLAG_CONTROL_SYSTEM_UI); mYoutubePlayer