Implement Spatial Audio with Agora video SDK in Unity - unity3d

I've managed to implement the video calling feature. Based on my requirement the remote user's video and audio get rendered inside the unity in a tv screen. I have disabled the local player's video.
I want to add audio spatialisation to that remote user's audio. So the audio intensity should differ when the player moves near to the screen.
I tried using some functions: SetRemoteVoicePosition() and EnableSoundPositionIndication() but it's not working.

Related

Is there any way to share Unity screen through Agora without using mic as audio source?

It seems that whenever I try to live stream my screen, all the audio go through the local mic. In my project, I just want to stream my game screen (video and audio) without my mic. Is there any way to disable my mic input or mute my mic without muting my game?
I've tried to create external audio source and change the source Id, but it doesn't work. It was always either all media are muted or my mic is still sending input.

Recording vr motion video

I want to record a vr motion video of my house using aframe so that I can show the demo view of the the house.What are the js files need to be included?How can I do it?
I assume you just want to record 360º video — if so, a 360º camera is the place to start. See: http://thewirecutter.com/reviews/best-360-degree-camera/
You may want to test things out on your device (Gear VR, Cardboard, Vive, whatever) before investing in a camera. Video playback in A-Frame may have some issues on mobile devices particularly.
Example: https://aframe.io/examples/showcase/videosphere/
hi kumar yes you use without using 360 camera by using normal mobile phone but to place that video you have to use latest version of unity that support not only 360 video format but also plane so where you can put that video as an medium.
or if you are using unity 4.6 to unity 5.3 then use have to use some packages like easy video texture in this package you have different options for placing video
https://github.com/maazirfan/Easy-Movie-Texture-for-Unity
and use where ever you want vr/gear vr / htc vive .

How to programmatically make an embedded video player play in fullscreen?

I am using the Embedded Video Player to add a video to a website. The video is contained within a small container. Therefore, I would like to provide alternative UI for starting the video in a fullscreen mode.
How to programmatically start video in an embedded video player in fullscreen?, i.e. equivalent to user hitting "Fullscreen" button on the video player itself.

Recording Video while playing a video on iPhone?

i am trying to record a video from front camera of iPhone using AVFoundation class while user watches a video...with the help of WWDC 2010 samples i am able to record the video using front camera when the video is not playing but when i try to record it while user plays a video in MPMovieViewController the video does not get recorded..When i use MPMovieViewController does it starts on a different thread due to which i am not able to record the video in the background?? is playing the video in a UIWebview will be a better option??
Try using NSThreads. You should find some info about them in tutorials.

Play video's audio track when enter background?

I'm using mpmovieplayer to play video on ios 4, and I want to keep the audio playing when my app enter background, but it doesn't work. I thing it's because video player use GPU to render video on screen and this is not allowed by apple when app enter background.
So, is there any way to do that? There are some apps have this feature, and they seems just use the mpmovieplayer, is it work by detach the video layer of mpmovieplayer?
Thanks for your answer!
You'll need to have separate audio file and video file for this. Play both when you need to play video and just the audio when app gets into background.