YouTubeAPI
Get it: Unity Asset Store - The Best Assets for Game Making
YouTubeAPI is a lightweight plugin for using YouTube’s functionality inside Unity.
Features:
- -Search for videos
- -Set Max Results
- -change relevance language
- -Order videos by different filters
- -Get Thumbnails
- -Get video Duration
- -Get video Description
- -Get the video MP4 video link! (you can play it by Handheld.PlayFullScreenMovie or any other video playback, also 3rd party plugins like Easy Movie texture are supported)
- -Uses Youtube Data API v3
- -Two example scenes included!
- -Get all available subtitle languages!
- -Save subtitles as SRT as an file!
- -Get subtitle SRT as an string!
Supported Platforms:
Windows, Mac, Linux, Android, IOS, WinPhone, BlackBerry
It is all written in C#, so it’s perfectly compatible with other native plugins!
API:
API
//Search for videos
YouTube.Search (YourSearchTerm,MaximalResults,YourApiKey,OrderBy)
OrderBy supports ordering results by:
relevance
viewCount
rating
date
title
videoCount
//Arrays which containing different data after search:
//Returns Titles Array from search
YouTube.Titles;
//Return YouTube IDs Array from search
YouTube.IDs;
//Return Thumb Links Array from search
YouTube.THLinks;
//Returns Description Array from search
YouTube.Description;
//Download Thumbs from THLinks and returns the array
YouTube.GetAllThumbs();
//returns an single thumbnail when passing in an valid video id
YouTube.GetSingleThumb (ThumbnailLink);
//returns the duration when passing in an valid video id
YouTube.GetDuration (YTVideoID, YourApiKey);
//Returns High Quality MP4 Link
YouTube.GetHighestQuality (YTVideoID);
//Returns Medium Quality MP4 Link
YouTube.GetMediumQuality (YTVideoID);
Example API Script:
API
Example APP(included):
Screen
[spoiler]
[/spoiler]
Faq:
Q: There other app alreay out, whats different in YouTubeAPI?
A: Lets Compare:
IYoutube offers you to get the mp4 link after passing an youtube link. But its missing many features like searching, description and so on. It does also only work on android/ios and uses native code that could cause issues with other plugins.
YouTube API V3 + YouTube Video Player: Almost same featureset, but this one requires an server site php script, which higher the risk of instability since it always have to comunicate with the php server. Also mine automatically filter protected videos. YouTube Video Player doesnt, it just throws an error.
Price: 15$
Get it: Unity Asset Store - The Best Assets for Game Making