Upload to Youtube using C# and Youtube API

Hi
Have done a quick google search but only turned up

which is no longer available.

Is this still possible?
Building an interface for the desktop and want to upload .mp4 videos to youtube.

Firstly I think its important to ask, why are you using Unity? It is a Game Engine. Look into Visual Studio.

I do use Visual Studio for all my Unity scripting.
I’d like to think Unity is more than simply a game engine.

Have you tried simply using the YouTube .NET API like the following code example does? I haven’t bothered to verify if it works with Unity though and the code sample may need some adjustments for Mono.

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

It’s more than a game engine in the same sense that you can play pong on an oscilliscope. Using a tool for a purpose other than what it was made for is rarely easier than simply using the tools that are made for it.

2 Likes

I hear a browser works fairly well.

2 Likes

Hi eco_bach…I’m with you on this, and I’m trying to look into this as well . Let me know if you made progress on this and I will as well!

We have the same question and I think it’s great to see if there’s a easy way so Youtube can be used for uploading/watching inside Unity.

So players can share their gameplay videos to their own channels or our channel in Youtube, and watch others gameplay inside the game. It helps avoiding player switching app around and stay in game, i.e. decrease dropping off rate.

I am completely with you. I love to use unitys really nice and smooth UI framework, and its framework in general to build all sorts of applications.

I’ve created a [Video Tutorial] on how to upload video on YouTube with the usage of C# (.NET Core).
This solution will also work for Unity!
Watching this video will help you to solve your issue!
All documentation as well as source code is [here]!