📄 vsess_demo.frm
字号:
VERSION 5.00
Object = "{4BF1E5CA-6C33-4509-89D1-FEB2A41D85B1}#1.0#0"; "VSessp2p.ocx"
Begin VB.Form Form1
Caption = "语音通信点对点示例"
ClientHeight = 2190
ClientLeft = 60
ClientTop = 345
ClientWidth = 5175
LinkTopic = "Form1"
ScaleHeight = 2190
ScaleWidth = 5175
StartUpPosition = 3 '窗口缺省
Begin VB.CheckBox Check1
Caption = "自动应答"
Height = 375
Left = 3480
TabIndex = 6
Top = 480
Width = 1095
End
Begin VB.CommandButton cmdHangup
Caption = "挂断"
Height = 375
Left = 2400
TabIndex = 4
Top = 1320
Width = 975
End
Begin VB.CommandButton cmdCall
Caption = "呼叫"
Height = 375
Left = 960
TabIndex = 3
Top = 1320
Width = 975
End
Begin VB.TextBox txtIp
Height = 375
Left = 1200
TabIndex = 1
Text = "127.0.0.1"
Top = 480
Width = 1815
End
Begin VSESSP2PLib.VSessp2p VSessp2p1
Height = 480
Left = 480
TabIndex = 0
Top = 840
Width = 480
_Version = 65536
_ExtentX = 847
_ExtentY = 847
_StockProps = 0
AutoAnswer = 1
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "如输入127.0.0.1,或本机IP,因为呼叫了自己,提示""对方正在忙!"""
Height = 195
Left = 120
TabIndex = 5
Top = 1920
Width = 4890
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请输入对方IP地址:"
Height = 195
Left = 480
TabIndex = 2
Top = 120
Width = 1455
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
VSessp2p1.AutoAnswer = Check1.Value
End Sub
Private Sub cmdCall_Click()
'呼叫
VSessp2p1.Call (txtIp.Text)
End Sub
Private Sub cmdHangup_Click()
'挂断
VSessp2p1.Hangup
End Sub
Private Sub Form_Load()
'初始化
Check1.Value = 0
VSessp2p1.Init
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -