📄 视频回放.frm
字号:
VERSION 5.00
Object = "{22D6F304-B0F6-11D0-94AB-0080C74C7E95}#1.0#0"; "msdxm.ocx"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 6165
ClientLeft = 165
ClientTop = 735
ClientWidth = 8010
LinkTopic = "Form1"
ScaleHeight = 6165
ScaleWidth = 8010
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 200
Left = 3420
Top = 2820
End
Begin MediaPlayerCtl.MediaPlayer MediaPlayer1
Height = 5835
Left = 60
TabIndex = 0
Top = 240
Width = 7890
AudioStream = -1
AutoSize = 0 'False
AutoStart = -1 'True
AnimationAtStart= -1 'True
AllowScan = -1 'True
AllowChangeDisplaySize= -1 'True
AutoRewind = 0 'False
Balance = 0
BaseURL = ""
BufferingTime = 5
CaptioningID = ""
ClickToPlay = -1 'True
CursorType = 0
CurrentPosition = -1
CurrentMarker = 0
DefaultFrame = ""
DisplayBackColor= 0
DisplayForeColor= 16777215
DisplayMode = 0
DisplaySize = 4
Enabled = -1 'True
EnableContextMenu= -1 'True
EnablePositionControls= -1 'True
EnableFullScreenControls= 0 'False
EnableTracker = -1 'True
Filename = ""
InvokeURLs = -1 'True
Language = -1
Mute = 0 'False
PlayCount = 1
PreviewMode = 0 'False
Rate = 1
SAMILang = ""
SAMIStyle = ""
SAMIFileName = ""
SelectionStart = -1
SelectionEnd = -1
SendOpenStateChangeEvents= -1 'True
SendWarningEvents= -1 'True
SendErrorEvents = -1 'True
SendKeyboardEvents= 0 'False
SendMouseClickEvents= 0 'False
SendMouseMoveEvents= 0 'False
SendPlayStateChangeEvents= -1 'True
ShowCaptioning = 0 'False
ShowControls = -1 'True
ShowAudioControls= -1 'True
ShowDisplay = 0 'False
ShowGotoBar = 0 'False
ShowPositionControls= -1 'True
ShowStatusBar = 0 'False
ShowTracker = -1 'True
TransparentAtStart= 0 'False
VideoBorderWidth= 0
VideoBorderColor= 0
VideoBorder3D = 0 'False
Volume = -600
WindowlessVideo = 0 'False
End
Begin VB.Menu mnuControl
Caption = "控制"
Begin VB.Menu mnuRepeat
Caption = "回放"
End
Begin VB.Menu mnuExit
Caption = "退出"
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
MediaPlayer1.FileName = "d:\mpeg\那么骄傲.dat"
End Sub
Private Sub mnuRepeat_Click()
Static Isinverse As Boolean
If Isinverse = False Then
Timer1.Enabled = False
Isinverse = True
MediaPlayer1.Rate = 1
MediaPlayer1.Play
Else
MediaPlayer1.Pause
Isinverse = False
If MediaPlayer1.DisplayMode <> mpTime Then
MediaPlayer1.DisplayMode = mpTime
End If
Timer1.Enabled = True
End If
End Sub
Private Sub Timer1_Timer()
On Error GoTo err
Timer1.Interval = 200
MediaPlayer1.CurrentPosition = MediaPlayer1.CurrentPosition - 1
Exit Sub
err:
Timer1.Enabled = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -