www.pudn.com > ccsplay.zip > CCS_PLAY.FRM
VERSION 5.00
Object = "{22D6F304-B0F6-11D0-94AB-0080C74C7E95}#1.0#0"; "MSDXM.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form CCS_Play
ClientHeight = 4200
ClientLeft = 60
ClientTop = 345
ClientWidth = 5280
Icon = "CCS_Play.frx":0000
LinkTopic = "Form1"
ScaleHeight = 280
ScaleMode = 3 'Pixel
ScaleWidth = 352
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Stop_Music
Caption = "&Stop"
Height = 375
Left = 2760
TabIndex = 4
ToolTipText = "Stop the Music"
Top = 3750
Width = 1080
End
Begin VB.CommandButton ExitMe
Caption = "&Exit"
Height = 360
Left = 4080
TabIndex = 3
ToolTipText = "Go to a Finish Routine"
Top = 3750
Width = 1080
End
Begin MSComDlg.CommonDialog Disc_Jockey
Left = 3480
Top = 4500
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Play_Sam
Caption = "&Play"
Height = 360
Left = 1380
TabIndex = 2
ToolTipText = "Play a Media File"
Top = 3750
Width = 1080
End
Begin VB.CommandButton Load_File
Caption = "&Open"
Height = 360
Left = 0
TabIndex = 1
ToolTipText = "Open a Media File"
Top = 3750
Width = 1080
End
Begin MediaPlayerCtl.MediaPlayer Orchestra
Height = 3600
Left = 0
TabIndex = 0
Top = 0
Width = 5250
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
End
Attribute VB_Name = "CCS_Play"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
DefInt A-Z
Private Sub Form_Load()
Me.Show
End Sub
Private Sub Load_File_Click()
On Error GoTo ErrHandler
Disc_Jockey.CancelError = True
Disc_Jockey.Filter = "MIDI Sequence (*.mid; *.rmi)|*.mid; *.rmi|WAV Sound (*.wav)|*.wav|MP3 (*.mp3)|*.mp3|AVI (*.avi)|*.avi|MPEG (*.mpg)|*.mpg|AU (*.au)|*.au"
Disc_Jockey.ShowOpen
If Disc_Jockey.filename <> "" Then
Orchestra.filename = Disc_Jockey.filename
Orchestra.AutoStart = False
Orchestra.Stop
CCS_Play.Caption = Disc_Jockey.FileTitle
End If
Exit Sub
ErrHandler: 'If an error occurs, exit the procedure.
On Error GoTo 0
MsgBox Disc_Jockey.filename & " is not playable !", 16, "File Error"
End Sub
Private Sub Play_Sam_Click()
On Error GoTo ErrorHandler
Orchestra.Play
Exit Sub
ErrorHandler:
On Error GoTo 0
MsgBox Disc_Jockey.filename & " is not playable !", 16, "File Error"
End Sub
Private Sub ExitMe_Click()
Orchestra.Stop
Me.Hide
GoodBye.Show
End Sub
Private Sub Stop_Music_Click()
Orchestra.Stop
End Sub