public static void Argb32RemoteVideoFrameCallback(IntPtr userData, ref Argb32VideoFrame frame)
        {
            var peer = Utils.ToWrapper <PeerConnection>(userData);

            peer.OnArgb32RemoteVideoFrameReady(in frame);
        }
        public static void Argb32FrameCallback(IntPtr userData, Argb32VideoFrame frame)
        {
            var track = Utils.ToWrapper <LocalVideoTrack>(userData);

            track.OnArgb32FrameReady(frame);
        }
예제 #3
0
 protected void Argb32VideoFrameReady(Argb32VideoFrame frame)
 {
     // This callback is generally from a non-UI thread, but Unity object access is only allowed
     // on the main UI thread, so defer to that point.
     _argb32FrameQueue.Enqueue(frame);
 }