Search code examples
androidandroid-youtube-api

Upload Video on youtube from android application


I'm working on an application that uses youtube player to play youtube videos, for this purpose i'm using youtube android player api v3, Now i want to upload videos on youtube using my application, i've found a solution for that purpose, below is the link,

https://developers.google.com/youtube/v3/code_samples/java#upload_a_video

I downlaoded google-api-java-client library, but i can't find any jar file that contains these classes

import com.google.api.services.samples.youtube.cmdline.Auth;
import com.google.api.services.youtube.YouTube;
import com.google.api.services.youtube.model.Video;
import com.google.api.services.youtube.model.VideoSnippet;
import com.google.api.services.youtube.model.VideoStatus;
import com.google.common.collect.Lists;

can you please help me, or give me any idea how can i do this thing, thanks


Solution

  • Just look into the following links and you will get an idea about uploading an video in you tube.

    android youtube upload video with static username and password

    YouTube API 3 Upload Video - Access not configured - Android

    Also here i will provide you a demo project link as same as you required.

    https://github.com/youtube/yt-direct-lite-android

    just go through it and hope it will works.