microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
908 stars 282 forks source link

I420VideoFrameStorage could not be found #676

Open truongtin opened 3 years ago

truongtin commented 3 years ago

I420VideoFrameStorage could not be found I've added MixedReality.WebRTC.UWP in my UWP project. But I420VideoFrameStorage could not be found. image I don't know how to fix this issue. Please help me Thank you

djee-ms commented 3 years ago

I don't know either; you skipped the Issue Template with all the basic information about your project and environment, so I have no idea what you are trying to do on which platform with which version of the code.

truongtin commented 3 years ago

@djee-ms I follow the tutorial for UWP at https://microsoft.github.io/MixedReality-WebRTC/manual/cs/helloworld-cs-mediatracks-uwp.html. I have a stuck at Add Local Media Tracks. When added existed VideoBridge.cs and StreamSamplePool.cs files. In VideoBridge.cs file, I cannot call I420VideoFrameStorage class. Visual Studio noticed that "could not be found I420VideoFrameStorage ", I've added MixedReality.WebRTC.UWP by nuget package as Tutorial

djee-ms commented 3 years ago

The class I420VideoFrameStorage is defined here: https://github.com/microsoft/MixedReality-WebRTC/blob/8666f367e61fd478be5433b01939695a33f81d5b/libs/Microsoft.MixedReality.WebRTC/VideoFrameQueue.cs#L41

truongtin commented 3 years ago

I saw this code, I'll add this class into StreamSamplePool.cs file Thank you

djee-ms commented 3 years ago

No, this code is in the core C# library, there is no need to add it anywhere.

truongtin commented 3 years ago

But I cannot call this class in my project. How do I call this class in StreamSamplePool.cs ?

truongtin commented 3 years ago

@djee-ms Do you know where I can get these files? image Thank you