Vote count: 0 My class: public class MainActivity_For_Youtube extend YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener { private static final int RECOVERY_DIALOG_REQUEST = 1; private YouTubePlayerView playerView; String fbid=""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Called to modify the window feature and resize to full screen requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.youtubevideo); fbid = getIntent().getStringExtra("urls"); playerView = (YouTubePlayerView) findViewById(R.id.player_view); // initializes the YouTube player view playerView.initialize(Config.API_KEY, this); } // Called when YouTube Player initialization is failed @Override public void onInitializationFailure(YouTubePlayer.Provider provider, YouTubeInitializationResult errorResult) { // shows dialog if user...
ادامه مطلبVote count: 0 I waa make a system that auto embeds youtube urls into the page. For example when user puts a link of a video from youtube. I waa make an iftame of the video. Any code lines is appreciated. asked 1 min agoJames Let's block ads!...
ادامه مطلبVote count: -1 I've tried pulling more than 1000 videos from youtube but am getting a server timeout. Anyone with an idea how I can achieve that please? Thank you asked 1 min agoderrick joel Let's block ads!...
ادامه مطلبVote count: 0 How to share a Youtube Video on Facebook using open graph share dialog. This is what I been trying, it creates a post but it does not take me to youtube. String actioame = "play"; String objectName = "song"; String nameSpace = "myNameSpace"; String videoUrl = "https://youtubeUrl"; String objectType = "music.song"; ShareOpenGraphObject object = new ShareOpenGraphObject.Builder() .putString("og:type", objectType) .putString("og:image", imageUrl) .putString("og:video:url", videoUrl) .putString("og:title", item.getSnippet().getTitle()) .build(); ShareOpenGraphAction action = new ShareOpenGraphAction.Builder() .setActionType(nameSpace + ":" + actioame) .putObject(objectName, object) .build(); ShareOpenGraphContent content = new ShareOpenGraphContent.Builder() .setPreviewPropertyName(objectName) .setAction(action) .setContentUrl(Uri.parse(videoUrl)) .build(); ShareDialog.show(context, content); asked 3 mins agoIlya_Gazman Let's block ads!...
ادامه مطلبVote count: 0 I have integrated Youtube api in my android app. it play video in youtubeplayerview. Now i want to give option for downloading or see offline. Can it possible to download video from my app or to give functionality to see offline. asked 1 min agoshailesh ojha This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلبVote count: 0 I am making a hybrid application by AngularJs/Cordova that can interact with youtube but now i have some problem with Youtube Api v3 and that is login with youtube by gmail. I have tried to redirect my application to google login page with this code: var logged = VideosService.getGoogleLogged(); if (logged == false) { cordova.InAppBrowser.open('https://accounts.google.com/o/oauth2/auth?client_id=' + $rootScope.googleClientId + '&redirect_uri=http%3A%2F%2Flocalhost%2Foauth2callback&scope=https://www.googleapis.com/auth/youtube&response_type=token', '_top', 'location=yes'); } else { alert('not logged in'); } But when i successfully logged in the api I do not know how to retu to my application and save the access token to my application. Can you point me out this problem?, i have searched 3 days but no luck to me. Thank you. asked 1 min agoduong khang This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, p...
ادامه مطلبVote count: 0 I'm having an issue trying to autoplay my UIWebView. Yes, I know there are tons of questions regarding it already. Fist off, here's my simple code: override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let youtubePlayer:UIWebView = UIWebView(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, UIScreen.mainScreen().bounds.height)) youtubePlayer.loadRequest(NSURLRequest(URL: NSURL(string: "https://www.youtube.com/embed/EzNinU0g-Q0")!) ) self.view.addSubview(youtubePlayer) } Now here's what I found: How to autoplay a YouTube video in a UIWebView Youtube video autoplay inside UIWebview How to get YouTube autoplay to work in UIWebView? I did as suggested with the following codes: youtubePlayer.mediaPlaybackRequiresUserAction = false youtubePlayer.allowsInlineMediaPlayback = true That did nothing. autoplay on video in UIWebview,iOS This solution works, however, it's not for embedded videos, which is wh...
ادامه مطلب