- VERSION 5.00
- Object = "{7896655F-D245-4279-B2BC-D565488C0CDC}#3.0#0"; "VideoComm.ocx"
- Begin VB.Form Form1
- Caption = "视频通信示例"
- ClientHeight = 7155
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 11370
- LinkTopic = "Form1"
- ScaleHeight = 477
- ScaleMode = 3 'Pixel
- ScaleWidth = 758
- StartUpPosition = 3 '窗口缺省
- Begin VIDEOCOMMLib.VideoComm VideoComm1
- Height = 2175
- Left = 0
- TabIndex = 0
- Top = 240
- Width = 2655
- _Version = 65536
- _ExtentX = 4683
- _ExtentY = 3836
- _StockProps = 0
- VideoWidth = 177
- VideoHeight = 145
- End
- Begin VB.CommandButton cmdShowRemote
- Caption = "ShowRemote"
- Height = 615
- Left = 9480
- TabIndex = 7
- Top = 5640
- Width = 1455
- End
- Begin VB.CommandButton cmdShowLocal
- Caption = "ShowLocal"
- Height = 615
- Left = 9480
- TabIndex = 6
- Top = 4740
- Width = 1455
- End
- Begin VB.CommandButton cmdZoomToInital
- Caption = "ZoomToInital"
- Height = 615
- Left = 9480
- TabIndex = 5
- Top = 3840
- Width = 1455
- End
- Begin VB.CommandButton Command4
- Caption = "Stop"
- Height = 615
- Left = 9480
- TabIndex = 4
- Top = 1140
- Width = 1455
- End
- Begin VB.CommandButton Command3
- Caption = "ZoomOut"
- Height = 615
- Left = 9480
- TabIndex = 3
- Top = 2940
- Width = 1455
- End
- Begin VB.CommandButton Command2
- Caption = "ZoomIn"
- Height = 615
- Left = 9480
- TabIndex = 2
- Top = 2040
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "Start"
- Height = 615
- Left = 9480
- TabIndex = 1
- Top = 240
- Width = 1455
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "程序中指定的是本机IP,所以你看至的是自己的视频,可通过指定其它IP与其它人视频通信,具体请参见说明文档"
- ForeColor = &H000000FF&
- Height = 180
- Left = 0
- TabIndex = 8
- Top = 0
- Width = 8910
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdShowLocal_Click()
- VideoComm1.ShowLocalVideo (True)
- End Sub
- Private Sub cmdShowRemote_Click()
- VideoComm1.ShowLocalVideo (False)
- End Sub
- Private Sub cmdZoomToInital_Click()
- VideoComm1.ZoomToInital
- End Sub
- Private Sub Command1_Click()
- VideoComm1.Start
- End Sub
- Private Sub Command2_Click()
- VideoComm1.ZoomIn
- End Sub
- Private Sub Command3_Click()
- VideoComm1.ZoomOut
- End Sub
- Private Sub Command4_Click()
- VideoComm1.Stop
- End Sub
- Private Sub Form_Load()
- VideoComm1.Init
- VideoComm1.AddDestIp ("127.0.0.1")
- End Sub