I'm a new programmer in Android studio.
I am trying to create a button that gets a file location and uploads it to my youtube account:
I succeeded to get a video file's directory in my android code:
File mediaFile =
new File(Environment.getExternalStorageDirectory().getAbsolutePath()....)
I added a button that calls UploadToYoutube
function.
Now I would like to upload it to my youtube account through the file path I have.
Can someone direct me?
Any help appreciated!
My suggestion:
Get Start
Obtaining authorization credentials
Implementing OAuth 2.0 Authentication
YouTube API: Client Libraries
Using google-api-java-client:
Use YouTube Data API (v3)
Create and manage YouTube video caption tracks
Upload a video thumbnail image
Upload a video << Example code in java : )