- Notifications
You must be signed in to change notification settings - Fork 185
/
Copy pathProgram.cs
39 lines (32 loc) · 1022 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
usingRtsp;
usingRtsp.Messages;
usingRtsp.Rtp;
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Security.Policy;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceTestConsole
{
internalclassProgram
{
staticvoidMain(string[]args)
{
RtspUtils.RegisterUri();
RtspTcpTransporttransport=newRtspTcpTransport(newUri(args[0]));
RtspListenerlistener=newRtspListener(transport);
listener.MessageReceived+=(sender,e)=>
{
Console.WriteLine("Received "+e.Message);
};
listener.Start();
RtspRequestoptionsMessage=newRtspRequestOptions();
listener.SendMessage(optionsMessage);
RtspRequestdescribeMessage=newRtspRequestDescribe();
listener.SendMessage(describeMessage);
Console.WriteLine("Press enter to exit");
Console.ReadLine();
}
}
}