Play or Stream a Video with 3D audio in Unity

preview_player
Показать описание
Learn how to play or stream a video in unity on a 3D object using the VideoPlayer component. The VideoPlayer component can load a local file or use a HTTP url. For streaming, you cannot use YouTube directly, but can host the video on a server or on Vimeo and get the link to the direct playback (I show to how in the video). Then we will implement 3D spatial sound, where the audio changes direction and volume depending on the user proximity to the video source.

ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓

📥 Download the Source Code 📥

📥 Get the Asset 📥

Wishlist my new game BUMBI on Steam!

🤝 Support Me 🤝

►⏱️ Timestamps ⏱️
0:00 Intro
1:11 Video Player
3:42 Stream a Video
4:33 3D Sound
7:11 Outro

💖💖THANK YOU TO ALL MY PATRONS 💖💖

❯❯❯ My Links ❮❮❮
💗 Patreon 💗
💬 Discord Server 💬
🐦 Twitter 🐦
📚 Facebook 📚
🎵 Music 🎵
Ambient Gold
👍 Like and Subscribe! 👍

🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.

Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!

#unity #gamedev #devlog
Рекомендации по теме
Комментарии
Автор

The VideoPlayer component is great :) Thanks for the tutorial!

ColeWithAGoal
Автор

Maybe you`d like to enhance the scene with a illumination of the environment by the video. So the video would act as a lightsource and the room gets darker when the content in the video gets dark.

chriswatts
Автор

This has so many great applications, thanks for the video Sam!

justusforan
Автор

Thank you so much for this tutorial. I just added the free cinema asset to my game and quickly got a video running thanks to you.

Kgotso_Koete
Автор

This is my favorite channel for game development. Thank you!

nicholasdavis
Автор

Thanks sam.
That was awesome! I always wondered how that was done.

gazzer
Автор

when i make it 3d it doesn't play sound PLEASE HELP ):

SOS_Studios
Автор

Thank you for the explanation. The video doesn't work after android building in Oculus 2. Do you know how to solve it?

avivbenezra
Автор

A game where you watch cinema will be very cool

pramilayadav
Автор

@samyam Thx for guide. Greate video. Also have a quastion. Is there a way for Unitys Video Player to play some live streams from URL? mb not exactly twitch or youtube i wonder like in general is it possible? any option will be great. Not just video that can bedownloaded from internet, but literally the one which is currently Live. like make retranslation to my game.

данет-эл
Автор

this is so cool! i've been planning a pretty big game for a while, and something like this would be perfect for the TV at the main characters house! this gives me something to look forward to for when i start making that project :) :) :)

GlasTaibhse
Автор

Is there any way of doing that without the video player component?

otohime
Автор

I have a doubt, this works to live transmissions in vimeo?

ElSolitarioPerpetuo
Автор

Wow that's way easier then I thought.

GemTappX
Автор

Does the video player stream from RTMP/RTSP streams?

ricardomota
Автор

AVPro is best to add to VR Unity3D projects that need control of the video better.

tetvris
Автор

Please make a video on how to use agora sdk for live video streaming

vivekmusafir
Автор

The vimeo portion doesn't seem to exist anymore. Please help.

PhilM
Автор

I Love You So much Sister. Thanx for making such useful videos, That help us lot.

RJs_World_
Автор

Nice tutorial. I wonder if you can read and play movie files outside of the game build?

TheMeanArena