Form1.frm
上传用户:zheng6500
上传日期:2007-05-15
资源大小:335k
文件大小:4k
源码类别:

易语言编程

开发平台:

Visual C++

  1. VERSION 5.00
  2. Object = "{7896655F-D245-4279-B2BC-D565488C0CDC}#3.0#0"; "VideoComm.ocx"
  3. Begin VB.Form Form1 
  4.    Caption         =   "视频通信示例"
  5.    ClientHeight    =   7155
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   11370
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   477
  11.    ScaleMode       =   3  'Pixel
  12.    ScaleWidth      =   758
  13.    StartUpPosition =   3  '窗口缺省
  14.    Begin VIDEOCOMMLib.VideoComm VideoComm1 
  15.       Height          =   2175
  16.       Left            =   0
  17.       TabIndex        =   0
  18.       Top             =   240
  19.       Width           =   2655
  20.       _Version        =   65536
  21.       _ExtentX        =   4683
  22.       _ExtentY        =   3836
  23.       _StockProps     =   0
  24.       VideoWidth      =   177
  25.       VideoHeight     =   145
  26.    End
  27.    Begin VB.CommandButton cmdShowRemote 
  28.       Caption         =   "ShowRemote"
  29.       Height          =   615
  30.       Left            =   9480
  31.       TabIndex        =   7
  32.       Top             =   5640
  33.       Width           =   1455
  34.    End
  35.    Begin VB.CommandButton cmdShowLocal 
  36.       Caption         =   "ShowLocal"
  37.       Height          =   615
  38.       Left            =   9480
  39.       TabIndex        =   6
  40.       Top             =   4740
  41.       Width           =   1455
  42.    End
  43.    Begin VB.CommandButton cmdZoomToInital 
  44.       Caption         =   "ZoomToInital"
  45.       Height          =   615
  46.       Left            =   9480
  47.       TabIndex        =   5
  48.       Top             =   3840
  49.       Width           =   1455
  50.    End
  51.    Begin VB.CommandButton Command4 
  52.       Caption         =   "Stop"
  53.       Height          =   615
  54.       Left            =   9480
  55.       TabIndex        =   4
  56.       Top             =   1140
  57.       Width           =   1455
  58.    End
  59.    Begin VB.CommandButton Command3 
  60.       Caption         =   "ZoomOut"
  61.       Height          =   615
  62.       Left            =   9480
  63.       TabIndex        =   3
  64.       Top             =   2940
  65.       Width           =   1455
  66.    End
  67.    Begin VB.CommandButton Command2 
  68.       Caption         =   "ZoomIn"
  69.       Height          =   615
  70.       Left            =   9480
  71.       TabIndex        =   2
  72.       Top             =   2040
  73.       Width           =   1455
  74.    End
  75.    Begin VB.CommandButton Command1 
  76.       Caption         =   "Start"
  77.       Height          =   615
  78.       Left            =   9480
  79.       TabIndex        =   1
  80.       Top             =   240
  81.       Width           =   1455
  82.    End
  83.    Begin VB.Label Label1 
  84.       AutoSize        =   -1  'True
  85.       Caption         =   "程序中指定的是本机IP,所以你看至的是自己的视频,可通过指定其它IP与其它人视频通信,具体请参见说明文档"
  86.       ForeColor       =   &H000000FF&
  87.       Height          =   180
  88.       Left            =   0
  89.       TabIndex        =   8
  90.       Top             =   0
  91.       Width           =   8910
  92.    End
  93. End
  94. Attribute VB_Name = "Form1"
  95. Attribute VB_GlobalNameSpace = False
  96. Attribute VB_Creatable = False
  97. Attribute VB_PredeclaredId = True
  98. Attribute VB_Exposed = False
  99. Private Sub cmdShowLocal_Click()
  100. VideoComm1.ShowLocalVideo (True)
  101. End Sub
  102. Private Sub cmdShowRemote_Click()
  103. VideoComm1.ShowLocalVideo (False)
  104. End Sub
  105. Private Sub cmdZoomToInital_Click()
  106. VideoComm1.ZoomToInital
  107. End Sub
  108. Private Sub Command1_Click()
  109. VideoComm1.Start
  110. End Sub
  111. Private Sub Command2_Click()
  112. VideoComm1.ZoomIn
  113. End Sub
  114. Private Sub Command3_Click()
  115. VideoComm1.ZoomOut
  116. End Sub
  117. Private Sub Command4_Click()
  118. VideoComm1.Stop
  119. End Sub
  120. Private Sub Form_Load()
  121. VideoComm1.Init
  122. VideoComm1.AddDestIp ("127.0.0.1")
  123. End Sub