public static void ARGBRemoteVideoFrameCallback(IntPtr userData, IntPtr data, int stride, int width, int height) { var peer = Utils.ToWrapper <PeerConnection>(userData); var frame = new ARGBVideoFrame() { width = (uint)width, height = (uint)height, data = data, stride = stride }; peer.OnARGBRemoteVideoFrameReady(frame); }
public static void ARGBFrameCallback(IntPtr userData, IntPtr data, int stride, int width, int height) { var track = Utils.ToWrapper <LocalVideoTrack>(userData); var frame = new ARGBVideoFrame() { width = (uint)width, height = (uint)height, data = data, stride = stride }; track.OnARGBFrameReady(frame); }