Search Unity

Video Videoplayer not streaming 360 video from YouTube

Discussion in 'Audio & Video' started by lz7cjc, Apr 2, 2020.

  1. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    538
    Hi
    I am trying to stream videos from youtube with the videoplayer by entering the url. It works for embedded files but obviously these files are too big to embed.

    Is there a trick to doing this?
    thanks
     
  2. DominiqueLrx

    DominiqueLrx

    Unity Technologies

    Joined:
    Dec 14, 2016
    Posts:
    260
    Hi!

    Streaming from YouTube, 360 or not, involves not only consuming the media itself (which Unity's VideoPlayer is perfectly capable of), but also integration with the YouTube ecosystem (ads, authentication, cdn, ...) which has not been implemented yet.

    But if you have 360 content that you own, you can store it on a server that is accessible via http/https and you'll be able to play it. Here's an example of a (non-360, here, but as mentioned, this is orthogonal) clip that you can consume with the VideoPlayer: https://file-examples.com/wp-content/uploads/2017/04/file_example_MP4_480_1_5MG.mp4

    Hope this helps!

    Dominique
     
  3. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    538
    thanks but it is 3rd party content which is hosted on YouTube. When do you expect full integration to happen?
     
  4. eribera

    eribera

    Joined:
    Apr 3, 2020
    Posts:
    1
    I have the same problem. I can't integrate 360 youtube videos in my project via URL.
    Video Player works well with local 360 videos (video clip source) or self-hosted videos (url) but not directly with a 360 youtube video URL.
    In the asset store I found a posible solution by buying an asset: https://assetstore.unity.com/packages/tools/video/youtube-video-player-youtube-api-29704 but I didn't tryed.
    ¿Is there any option to do the same natively without paying an asset?
    Thanks