L
lovermaple
Unregistered / Unconfirmed
GUEST, unregistred user!
捕捉到视频数据是15帧每秒.那么用UDP传输怎么才能实现15帧每秒?
procedure TForm4.Button1Click(Sender: TObject);
var
mBuf:TMemoryStream;
begin
mBuf := TMemoryStream.Create();
mBuf.Clear;
mBuf.SetSize(videostr^.dwBufferLength);
CopyMemory(Pointer(Longint(mBuf.Memory)),datapoint,videostr^.dwBufferLength);//
NMUDP1.SendStream(mBuf);
mBuf.Free;
end;
这是看人家的代码,但是这样实现的是实时传输吗?还是只传输了1帧?
分实在不够了,dFW们帮帮忙,分以后补上,谢谢了
procedure TForm4.Button1Click(Sender: TObject);
var
mBuf:TMemoryStream;
begin
mBuf := TMemoryStream.Create();
mBuf.Clear;
mBuf.SetSize(videostr^.dwBufferLength);
CopyMemory(Pointer(Longint(mBuf.Memory)),datapoint,videostr^.dwBufferLength);//
NMUDP1.SendStream(mBuf);
mBuf.Free;
end;
这是看人家的代码,但是这样实现的是实时传输吗?还是只传输了1帧?
分实在不够了,dFW们帮帮忙,分以后补上,谢谢了