Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

YouTubeAPI [Released]

Discussion in 'Assets and Asset Store' started by 128bit, Jul 16, 2015.

  1. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    YouTubeAPI

    Get it: https://www.assetstore.unity3d.com/en/#!/content/39580

    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:

    //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:

    Example APP(included):





    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: https://www.assetstore.unity3d.com/en/#!/content/39580
     
    Last edited: Aug 18, 2015
  2. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Ive just cutted the price by 50%. It does only cost 15$ from now on! :)
     
  3. ducmanh86

    ducmanh86

    Joined:
    Jun 17, 2013
    Posts:
    1
    Can your plugin get youtube video caption srt?
     
  4. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Hi, currently not. But i can add it if youre interested!

    Edit: Since it sounds like an realy usefull feature, im going to add it. Going to submit an update to the asset store in the next 2 days. If you buy it, just send me your invoice number and you get the updated one. So you dont have to wait for unity to aproove it the update!
     
    Last edited: Aug 11, 2015
  5. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Last edited: Aug 18, 2015
    ducmanh86 and zyzyx like this.
  6. Perspicapp

    Perspicapp

    Joined:
    Dec 1, 2014
    Posts:
    2
    Hi,

    Does Youtube Data API v3 include insert function ?
     
  7. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Hi, what do you mean with insert? To upload an video? No currently not.
     
    Last edited: Aug 29, 2015
  8. CYBERDAD

    CYBERDAD

    Joined:
    Sep 11, 2012
    Posts:
    29
    Does it need server site scripting (like php/MySQL) ? or does it work without any additional setups. I am not a technical person but an artist so I am just asking if it's easy to use. I don't see any documentation/user manual on your site.
     
  9. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Hi,
    it does not need any server side script. The plugin is completetly written in c#, no php/sql or other server side things involved. Everything is running inside Unity3D.

    Have a look at the example api on the asset store page. Il think its very easy to use. Anyway, if you encountering problems, since youre not an programmer, il gonna help you.

    PS: New website is incoming, may take around 1-2 weeks.
     
  10. CYBERDAD

    CYBERDAD

    Joined:
    Sep 11, 2012
    Posts:
    29
    I just purchased your product. I am trying to figure out something simple like how to display youtube search result thumbnails on a Game Object (cube). Your example is on a 2D canvas. But I would like to display it on a cube. Secondly I am using Easy Movie Texture but I don't know how to use it with your product. An example or prefabs for both cases would be great. My ultimate goal is in fact to display thumbnails of a search results (5 videos) on a game object (cube). Once the displayed, the thumbnails can be clicked and selected video is played using the Easy Movie Texture.
    Thanks in advance for your support.
     
  11. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Do you want the thumbnails to be on a cube? 5 thumbnails on 1 cube or for each video one cube? Thumbnail api returns an texture, you could just apply it to an cube, or any other gameobject.

    For using Easy movie texture, just pass the mp4, returned by my plugin, link into easy movie textures Load function.

    Il gonna prepare an example scene tommorow, so youre able to see how to use my plugin for your purpose!
     
  12. CYBERDAD

    CYBERDAD

    Joined:
    Sep 11, 2012
    Posts:
    29
    Yes I want the thumbnails to be displayed on a surface gameObject (example cube) let's say 5 in a row. So that the player can click on one of them and it will play a movie on another surface (big screen .. also a cube or any game bject used as a display). This can be done via Easy movie texture but I need some examples of a prefab would be great.
    I will be waiting for your example scene tomorrow. Thanks again for your support !!
     
  13. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    PM!
     
  14. Mogpolgludh

    Mogpolgludh

    Joined:
    Jul 17, 2015
    Posts:
    8
    I need a way for people in a game world to paste youtube url's onto a game object and have the youtube video play on that object or another object in the 3d game world for them and their visitors to view. People will be logged in on pc's and mac computers. Will this product do this?
     
  15. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    My plugin does not provide an playback video texture engine. Its the youtube api only. If you have an playback solution for mp4 files, it will work. If not, then not.
     
  16. Aa22041100

    Aa22041100

    Joined:
    Oct 22, 2015
    Posts:
    7
    I would like to use your plugin for my project but at first I want to take a look at the readme file. Could you send it to me?
     
  17. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Send the readme to your mail :)
     
    Aa22041100 likes this.
  18. Aa22041100

    Aa22041100

    Joined:
    Oct 22, 2015
    Posts:
    7
    Got it! Thanks a lot
     
  19. Nemexyx-Lockheart

    Nemexyx-Lockheart

    Joined:
    Sep 10, 2015
    Posts:
    3
    Can you show me how to use with easy movie texture plis and how to get the .mp4 url i have a code for download but i can find that line
     
  20. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Hi,
    i beliebe youre the one who send me the mail?
    Thanks for buying, as said via mail, going to send ya an example tomorrow morning for how to use it with easy movie texture! :)
     
  21. Tony-Butterfield

    Tony-Butterfield

    Joined:
    Oct 19, 2012
    Posts:
    14
    I have a way to play a mp4 on a texture mesh.
    Is there a way to get the youtube video to play on a mesh?
     
  22. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Hi,
    sorry, didnt got notifified. Yeah, since YouTubeAPI exposes the .mp4 link, you can play it with every media player thats support .mp4. Like Easy Movie Texture.
     
  23. diogocortiz

    diogocortiz

    Joined:
    Aug 18, 2015
    Posts:
    7
    does this plugin work with Easy movie Texture in multiplayer?
     
  24. CrisCL

    CrisCL

    Joined:
    Mar 9, 2013
    Posts:
    14
    Hi! I need to upload videos to youtube from a Windows PC using Unity..
    But I see that this asset is not longer avalilable???

    Will you release your asset again?

    Best regards!

    Cris
     
    Debjyoti2607 likes this.
  25. stepan-stulov

    stepan-stulov

    Joined:
    Nov 26, 2013
    Posts:
    28
    Same question here, is this plugin not supported anymore? Would pay the buck.
     
    Debjyoti2607 likes this.
  26. gregacuna

    gregacuna

    Joined:
    Jun 25, 2015
    Posts:
    59
    I see the assets are still available on the Unity asset store, but the website for the publisher isn't working. Are the YouTube and YouTube + API still working? Are you supporting them? Are there any other solutions for playing YouTube videos in 3d space?
     
    Debjyoti2607 likes this.
  27. 128bit

    128bit

    Joined:
    Oct 8, 2014
    Posts:
    117
    Hi, the plugin doesnt get sold on the asset store anymore, where did you saw it? If you still need it, send me an pm and youl get an copy for free :)
     
    Deleted User and gregacuna like this.
  28. gregacuna

    gregacuna

    Joined:
    Jun 25, 2015
    Posts:
    59
    Hey 128bit...I think it's still on the asset store. Is it this one: https://www.assetstore.unity3d.com/en/#!/content/29704

    I would love to have it. I sent you a message, but it was in a conversation. Hope you got it.

    My e-mail is: gaming (at) planetearthlings (dot) org

    Thanks so much...Greg
     
  29. Deleted User

    Deleted User

    Guest

    @128bit... Is this asset still available? I would love to acquire it for a project I'm working on. Yours is the only one I've seen that can search for specific YouTube videos, and I need this functionality, as the YouTube channel will be continuously updated.
     
  30. Mask2007

    Mask2007

    Joined:
    Aug 7, 2014
    Posts:
    8
    @128bit
    Good afternoon!
    I would like to buy a script for YouTubeAPI, but it is no longer available in the store.
    Can you help me find him?
    My mail: mask.usa@gmail.com
     
  31. Hdipu2646

    Hdipu2646

    Joined:
    Dec 16, 2017
    Posts:
    1
  32. Ashish-Gogna576

    Ashish-Gogna576

    Joined:
    Oct 17, 2015
    Posts:
    1
    i want to stream youtube in unity, like video & audio files, but not find best solution

    i found this plugIn which are currently available on store,
    - but not sure does it working fine on android or IOS
    - provide me individual video, audio file for stream.

    Is there anyone who can gives me the asset "Youtube Video Player + Youtube API V3"
    https://assetstore.unity.com/packages/tools/video/youtube-video-player-youtube-api-v3-29704

    please suggest any other available plugin that you can provide me
    plz , send me.
    ashishgogna01991@gmail.com
     
  33. ashishchandy

    ashishchandy

    Joined:
    Jan 18, 2016
    Posts:
    7
    Hey I am looking to create an app for a youtube channel.
    My query is, does the view count on youtube rise when the video is viewed through this plugin?
     
    TruAmbition likes this.
  34. GXMark

    GXMark

    Joined:
    Oct 13, 2012
    Posts:
    514
    I come across a strange weird problem. I have 5 youtube IDs which were working fine yesterday not working today but all my other you tube ids are fine. I tried putting those IDs that did not work into the browser which work fine. I have no idea why this is happening almost like some caching or youtube ip id banning is happening

    Can someone shed some light on this ?

    I was getting Access Denied on the debug list to those but i have no idea why.