I can't play video or take photo on Hololens - c#

I am doing 3 things,video record,take photo, play the video.
However, 3 option works on unity but when I build the app for hololens and test it, just video recording is working. I can't take photos and play the video. Basically, I am using these scripts https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unity/locatable-camera-in-unity . The crazy part is Hololens uses flash while taking photos but I can't see my photos in the folder. Also, I can't see the holograms in recorded video.

The issue was Unity Version I was using 2020.3.12f1. I updated to 2020.3.33f1 now video playing is working.

Related

Joining a channel on Agora (Unity/iOS) makes in-game music almost inaudible

I'm trying to integrate Agora voice SDK in a multiplayer project (built using Photon). The level has loads of 3D spacial audio setup and a background music that is properly audible. The moment I join a voice channel, all the in-game audio levels drop drastically. The voice chat volume itself sounds fine however. And this happens only on actual device(iOS), not on Unity editor.
I tried reproducing this issue in the HelloUnity3D sample scene that comes with the SDK. No code change. Simply added an audio source in the scene with a music clip. Seems to be happening there as well.
Is this expected? How do I keep Agora from modifying other audio sources?
Unity version:2020.3.28f1. Agora SDK version: 3.5.0.70
For anyone running into this issue, I was able to fix it by setting the audio profile to AUDIO_SCENARIO_GAME_STREAMING.
mRtcEngine.SetAudioProfile(AUDIO_PROFILE_TYPE.AUDIO_PROFILE_SPEECH_STANDARD, AUDIO_SCENARIO_TYPE.AUDIO_SCENARIO_GAME_STREAMING);
The idea is to simply treat the voice chat audio as media volume instead of 'call' volume.
This answer about audio ducking with the Agora SDK is likely what you're after. You might have to add some iOS specific code to your project to achieve it:
https://stackoverflow.com/a/62840934/2156765

Unity VideoPlayer audio broken after an Agora.io video call

Our application has a scene that does video calling built on agora.io and another scene which plays videos using the Unity VideoPlayer. The problem is that when opening the video player scene after leaving an agora.io call the video playback does not have any audio. This only seems to be a problem on iOS. Android playback is fine.
In xcode when trying play the video we see a lot of the below error repeating while the video plays:
AudioSampleProvider buffer overflow. 4096 sample frames discarded.
Is it possible that you can provide a stripped-down sample project that reproduces this issue?
Otherwise, my recommendation is try a few things:
Do not destroy the Agora engine or disable audio when leaving the Agora scene.
Check if the volume of playback is set to zero (with/without #1 above)
Call the following private API before joining the agora channel:
// Stops the Agora SDK from ending the audio session
mRtcEngine.SetParameters("{\"che.audio.keep.audiosession\": true}");

Mp4 file in Easy Movie Texture keeps jittering and skipping

I'm building a video display in Unity 3D using the Easy Movie Texture asset and everytime I try to play my mp4 file on the video manager object my video skips and jitters (specifically in my iOS build, haven't deployed to Android yet). Has anybody else had this experience with the Easy Movie Texture with iOS? And if so, what were your solutions to solve it? Mind you I've tried OGV files and MOV files and they don't play well either.

set a video as background on mobile app unity

I am making a login screen for a mobile app in unity3d, that has a video keep on playing in the background and can work on iOS and Android. I have searched online and found out movie texture doesn't work on mobile.
Currently I only can play a video using Handheld.PlayFullScreenMovie, but it is not what I want. I want the video playing and still see the text and have button to click.
I see similar post Set a video as background. But I am using C#. Does anyone know how to do this in unity? Many Thanks!

How can I stream video from the camera to a <Image>

Im making an app that should let the user see video from the camera on the back of the phone in a small frame in my app (300x300)
But im having some problems fetching the stream. I've tried a CameraCaptureTask but does not work on my phone. I seems to open the video app and them close it, returning to the app, right away
Check out the Basic Camera Sample from here: Code Samples for Windows Phone
It's an excellent, fully featured example of probably everything you'll need for your project.
Here's the 'walkthrough' version if you're interested: How to: Create a Base Camera Application for Windows Phone

Categories