190 lines
7.5 KiB
C#
190 lines
7.5 KiB
C#
using LibVLCSharp.Forms.Shared;
|
|
|
|
namespace robospot_camera_finder
|
|
{
|
|
partial class StreamViewer
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StreamViewer));
|
|
videoView = new LibVLCSharp.WinForms.VideoView();
|
|
tbZoom = new TrackBar();
|
|
timerUpdateZoom = new System.Windows.Forms.Timer(components);
|
|
btnZoomMin = new Button();
|
|
btnZoomMax = new Button();
|
|
tbRtspLink = new TextBox();
|
|
lblRtspLink = new Label();
|
|
labelSerial = new Label();
|
|
tbSerial = new TextBox();
|
|
((System.ComponentModel.ISupportInitialize)videoView).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)tbZoom).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// videoView
|
|
//
|
|
videoView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
videoView.BackColor = Color.Black;
|
|
videoView.Location = new Point(13, 14);
|
|
videoView.Margin = new Padding(4, 5, 4, 5);
|
|
videoView.MediaPlayer = null;
|
|
videoView.Name = "videoView";
|
|
videoView.Size = new Size(1035, 796);
|
|
videoView.TabIndex = 0;
|
|
videoView.TabStop = false;
|
|
videoView.Text = "videoView";
|
|
//
|
|
// tbZoom
|
|
//
|
|
tbZoom.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|
tbZoom.LargeChange = 20;
|
|
tbZoom.Location = new Point(1056, 58);
|
|
tbZoom.Margin = new Padding(4, 5, 4, 5);
|
|
tbZoom.Maximum = 9999;
|
|
tbZoom.Name = "tbZoom";
|
|
tbZoom.Orientation = Orientation.Vertical;
|
|
tbZoom.Size = new Size(69, 710);
|
|
tbZoom.SmallChange = 10;
|
|
tbZoom.TabIndex = 1;
|
|
tbZoom.TickFrequency = 300;
|
|
tbZoom.TickStyle = TickStyle.TopLeft;
|
|
tbZoom.Value = 10;
|
|
tbZoom.KeyUp += tbZoom_KeyUp;
|
|
tbZoom.MouseUp += tbZoom_MouseUp;
|
|
//
|
|
// timerUpdateZoom
|
|
//
|
|
timerUpdateZoom.Enabled = true;
|
|
timerUpdateZoom.Interval = 10000;
|
|
timerUpdateZoom.Tick += timerUpdateZoom_Tick;
|
|
//
|
|
// btnZoomMin
|
|
//
|
|
btnZoomMin.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
btnZoomMin.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
|
btnZoomMin.Location = new Point(1056, 778);
|
|
btnZoomMin.Margin = new Padding(4, 5, 4, 5);
|
|
btnZoomMin.Name = "btnZoomMin";
|
|
btnZoomMin.Size = new Size(60, 38);
|
|
btnZoomMin.TabIndex = 2;
|
|
btnZoomMin.Text = "1x";
|
|
btnZoomMin.UseVisualStyleBackColor = true;
|
|
btnZoomMin.Click += btnZoomMin_Click;
|
|
//
|
|
// btnZoomMax
|
|
//
|
|
btnZoomMax.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btnZoomMax.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
|
btnZoomMax.Location = new Point(1056, 10);
|
|
btnZoomMax.Margin = new Padding(4, 5, 4, 5);
|
|
btnZoomMax.Name = "btnZoomMax";
|
|
btnZoomMax.Size = new Size(60, 38);
|
|
btnZoomMax.TabIndex = 3;
|
|
btnZoomMax.Text = "32x";
|
|
btnZoomMax.UseVisualStyleBackColor = true;
|
|
btnZoomMax.Click += btnZoomMax_Click;
|
|
//
|
|
// tbRtspLink
|
|
//
|
|
tbRtspLink.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
tbRtspLink.Location = new Point(573, 820);
|
|
tbRtspLink.Margin = new Padding(4, 5, 4, 5);
|
|
tbRtspLink.Name = "tbRtspLink";
|
|
tbRtspLink.ReadOnly = true;
|
|
tbRtspLink.Size = new Size(545, 31);
|
|
tbRtspLink.TabIndex = 8;
|
|
//
|
|
// lblRtspLink
|
|
//
|
|
lblRtspLink.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
lblRtspLink.AutoSize = true;
|
|
lblRtspLink.Location = new Point(478, 823);
|
|
lblRtspLink.Margin = new Padding(4, 0, 4, 0);
|
|
lblRtspLink.Name = "lblRtspLink";
|
|
lblRtspLink.Size = new Size(87, 25);
|
|
lblRtspLink.TabIndex = 7;
|
|
lblRtspLink.Text = "RTSP Link";
|
|
//
|
|
// labelSerial
|
|
//
|
|
labelSerial.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
labelSerial.AutoSize = true;
|
|
labelSerial.Location = new Point(13, 823);
|
|
labelSerial.Margin = new Padding(4, 0, 4, 0);
|
|
labelSerial.Name = "labelSerial";
|
|
labelSerial.Size = new Size(124, 25);
|
|
labelSerial.TabIndex = 6;
|
|
labelSerial.Text = "Serial Number";
|
|
//
|
|
// tbSerial
|
|
//
|
|
tbSerial.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
tbSerial.Location = new Point(145, 820);
|
|
tbSerial.Margin = new Padding(4, 5, 4, 5);
|
|
tbSerial.Name = "tbSerial";
|
|
tbSerial.ReadOnly = true;
|
|
tbSerial.Size = new Size(241, 31);
|
|
tbSerial.TabIndex = 5;
|
|
//
|
|
// StreamViewer
|
|
//
|
|
AutoScaleDimensions = new SizeF(10F, 25F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(1138, 857);
|
|
Controls.Add(tbRtspLink);
|
|
Controls.Add(lblRtspLink);
|
|
Controls.Add(videoView);
|
|
Controls.Add(labelSerial);
|
|
Controls.Add(btnZoomMax);
|
|
Controls.Add(tbSerial);
|
|
Controls.Add(tbZoom);
|
|
Controls.Add(btnZoomMin);
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
Margin = new Padding(6, 5, 6, 5);
|
|
MinimumSize = new Size(1160, 884);
|
|
Name = "StreamViewer";
|
|
Text = "Camera";
|
|
FormClosed += StreamViewer_FormClosed;
|
|
((System.ComponentModel.ISupportInitialize)videoView).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)tbZoom).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private LibVLCSharp.WinForms.VideoView videoView;
|
|
private TrackBar tbZoom;
|
|
private System.Windows.Forms.Timer timerUpdateZoom;
|
|
private Button btnZoomMin;
|
|
private Button btnZoomMax;
|
|
private Label labelSerial;
|
|
private TextBox tbSerial;
|
|
private TextBox tbRtspLink;
|
|
private Label lblRtspLink;
|
|
}
|
|
} |