Hololens/Lib/UdpCameras.cs
//#################################################################################################
/// <summary>
/// Overrided method from DataUdpSocket that the goal is to set frame sending.
/// </summary>
Overrided method from DataUdpSocket that the goal is to set frame sending.
Overrided method from DataUdpSocket that the goal is to set frame sending .
protected async override void PrepareData()
        {
            await _camera.CaptureFrame();
            byte[] jpg = await _camera.GetFrameJpg();
            BindData(jpg, 65000);
            SendNbPacket();
        }
protected async override void PrepareData ( ) { await _camera . CaptureFrame ( ) ; byte [ ] jpg = await _camera . GetFrameJpg ( ) ; BindData ( jpg , 65000 ) ; SendNbPacket ( ) ; }
Overrided method from DataUdpSocket that the goal is to set frame sending.
Overrided method from DataUdpSocket that the goal is to set frame sending .
// get the frame in jpg format // reply as standard DataUdpSocket