-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuc4ChannelPlayer.vb
49 lines (42 loc) · 1.94 KB
/
uc4ChannelPlayer.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Imports System.ComponentModel
Public Class uc4ChannelPlayer
Private Sub uc4ChannelPlayer_Load(sender As Object, e As EventArgs) Handles MyBase.Load
On Error Resume Next
With UcVideoPlayer1
.channelNumber = 1
.cmbcasparcgwindowtitle.Text = "Screen consumer [" & .channelNumber & "|PAL]"
.oscstartandregister(.channelNumber, 6250 + .channelNumber)
.lblChannel.Text = "Channel " & .channelNumber
End With
With UcVideoPlayer2
.channelNumber = 2
.cmbcasparcgwindowtitle.Text = "Screen consumer [" & .channelNumber & "|PAL]"
.oscstartandregister(.channelNumber, 6250 + .channelNumber)
.lblChannel.Text = "Channel " & .channelNumber
End With
With UcVideoPlayer3
.channelNumber = 3
.cmbcasparcgwindowtitle.Text = "Screen consumer [" & .channelNumber & "|PAL]"
.oscstartandregister(.channelNumber, 6250 + .channelNumber)
.lblChannel.Text = "Channel " & .channelNumber
End With
With UcVideoPlayer4
.channelNumber = 4
.cmbcasparcgwindowtitle.Text = "Screen consumer [" & .channelNumber & "|PAL]"
.oscstartandregister(.channelNumber, 6250 + .channelNumber)
.lblChannel.Text = "Channel " & .channelNumber
End With
Threading.Thread.Sleep(2000)
UcVideoPlayer1.inWindow()
UcVideoPlayer2.inWindow()
UcVideoPlayer3.inWindow()
UcVideoPlayer4.inWindow()
End Sub
Private Sub uc4ChannelPlayer_Closing(sender As Object, e As CancelEventArgs) Handles Me.Closing
On Error Resume Next
UcVideoPlayer1.cmdoutcasparcgwindowrecording.PerformClick()
UcVideoPlayer2.cmdoutcasparcgwindowrecording.PerformClick()
UcVideoPlayer3.cmdoutcasparcgwindowrecording.PerformClick()
UcVideoPlayer4.cmdoutcasparcgwindowrecording.PerformClick()
End Sub
End Class