1234567891011121314151617181920212223242526 |
- using ManageLiteAV;
- using System;
- namespace Vinno.FIS.TRTCClient
- {
- public class RemoteVideoRenderCallback : ITRTCVideoRenderCallback
- {
- private readonly Action<TRTCVideoFrame, string> _frameArrivedCallback;
- public RemoteVideoRenderCallback(Action<TRTCVideoFrame, string> frameArrivedCallback)
- {
- _frameArrivedCallback = frameArrivedCallback;
- }
- /// <summary>
- /// Received remote video frame
- /// </summary>
- /// <param name="userId"></param>
- /// <param name="streamType"></param>
- /// <param name="frame"></param>
- public void onRenderVideoFrame(string userId, TRTCVideoStreamType streamType, TRTCVideoFrame frame)
- {
- _frameArrivedCallback?.Invoke(frame, userId);
- }
- }
- }
|