-namespace DxPlay.Controls\r
+using System;\r
+using System.Windows.Forms;\r
+\r
+namespace DxPlay.Controls\r
{\r
partial class PlayerControls\r
{\r
this.btnForward = new MaestroShared.Controls.NoFocusCueButton();\r
this.lblPlaySpeed = new System.Windows.Forms.Label();\r
this.playSpeed = new DxPlay.Controls.VideoSpeedTrackbar();\r
+ this.audioLabel = new System.Windows.Forms.Label();\r
+ this.audioTracks = new System.Windows.Forms.ComboBox();\r
this.logoPanel = new System.Windows.Forms.Panel();\r
this.mainPanel.SuspendLayout();\r
this.timecodePanel.SuspendLayout();\r
this.controlsPanel.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
this.controlsPanel.Size = new System.Drawing.Size(1105, 126);\r
this.controlsPanel.TabIndex = 21;\r
- this.controlsPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.controlsPanel_Paint);\r
// \r
// buttonsPanel\r
// \r
this.buttonsPanel.Controls.Add(this.btnForward);\r
this.buttonsPanel.Controls.Add(this.lblPlaySpeed);\r
this.buttonsPanel.Controls.Add(this.playSpeed);\r
+ this.buttonsPanel.Controls.Add(this.audioLabel);\r
+ this.buttonsPanel.Controls.Add(this.audioTracks);\r
this.buttonsPanel.Dock = System.Windows.Forms.DockStyle.Left;\r
this.buttonsPanel.Location = new System.Drawing.Point(0, 0);\r
this.buttonsPanel.Margin = new System.Windows.Forms.Padding(0);\r
this.buttonsPanel.Name = "buttonsPanel";\r
- this.buttonsPanel.Size = new System.Drawing.Size(731, 126);\r
+ this.buttonsPanel.Size = new System.Drawing.Size(844, 126);\r
this.buttonsPanel.TabIndex = 20;\r
// \r
// btnPlay\r
this.btnRewind.FlatAppearance.BorderSize = 0;\r
this.btnRewind.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
this.btnRewind.Image = ((System.Drawing.Image)(resources.GetObject("btnRewind.Image")));\r
- this.btnRewind.Location = new System.Drawing.Point(193, 4);\r
+ this.btnRewind.Location = new System.Drawing.Point(84, 4);\r
this.btnRewind.Margin = new System.Windows.Forms.Padding(4);\r
this.btnRewind.Name = "btnRewind";\r
this.btnRewind.Size = new System.Drawing.Size(72, 66);\r
this.btnStepBack.FlatAppearance.BorderSize = 0;\r
this.btnStepBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
this.btnStepBack.Image = global::DxPlay.Properties.Resources.baseline_skip_previous_black_24dp;\r
- this.btnStepBack.Location = new System.Drawing.Point(273, 4);\r
+ this.btnStepBack.Location = new System.Drawing.Point(164, 4);\r
this.btnStepBack.Margin = new System.Windows.Forms.Padding(4);\r
this.btnStepBack.Name = "btnStepBack";\r
this.btnStepBack.Size = new System.Drawing.Size(72, 66);\r
this.btnStop.FlatAppearance.BorderSize = 0;\r
this.btnStop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
this.btnStop.Image = global::DxPlay.Properties.Resources.ic_stop_black_24dp_2x;\r
- this.btnStop.Location = new System.Drawing.Point(353, 4);\r
+ this.btnStop.Location = new System.Drawing.Point(244, 4);\r
this.btnStop.Margin = new System.Windows.Forms.Padding(4);\r
this.btnStop.Name = "btnStop";\r
this.btnStop.Size = new System.Drawing.Size(72, 66);\r
this.btnStepForward.FlatAppearance.BorderSize = 0;\r
this.btnStepForward.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
this.btnStepForward.Image = global::DxPlay.Properties.Resources.baseline_skip_next_black_24dp;\r
- this.btnStepForward.Location = new System.Drawing.Point(433, 4);\r
+ this.btnStepForward.Location = new System.Drawing.Point(324, 4);\r
this.btnStepForward.Margin = new System.Windows.Forms.Padding(4);\r
this.btnStepForward.Name = "btnStepForward";\r
this.btnStepForward.Size = new System.Drawing.Size(72, 66);\r
this.btnForward.FlatAppearance.BorderSize = 0;\r
this.btnForward.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
this.btnForward.Image = global::DxPlay.Properties.Resources.baseline_fast_forward_black_24dp;\r
- this.btnForward.Location = new System.Drawing.Point(513, 4);\r
+ this.btnForward.Location = new System.Drawing.Point(404, 4);\r
this.btnForward.Margin = new System.Windows.Forms.Padding(4);\r
this.btnForward.Name = "btnForward";\r
this.btnForward.Size = new System.Drawing.Size(72, 66);\r
this.btnForward.TabStop = false;\r
this.btnForward.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;\r
this.btnForward.UseVisualStyleBackColor = false;\r
- //\r
+ // \r
// lblPlaySpeed\r
// \r
this.lblPlaySpeed.AutoSize = true;\r
- this.lblPlaySpeed.Location = new System.Drawing.Point(83, 0);\r
+ this.lblPlaySpeed.Location = new System.Drawing.Point(483, 0);\r
this.lblPlaySpeed.Name = "lblPlaySpeed";\r
this.lblPlaySpeed.Size = new System.Drawing.Size(22, 17);\r
this.lblPlaySpeed.TabIndex = 27;\r
// \r
this.playSpeed.CurrentSpeed = 0F;\r
this.playSpeed.LargeChange = 1;\r
- this.playSpeed.Location = new System.Drawing.Point(592, 3);\r
+ this.playSpeed.Location = new System.Drawing.Point(511, 2);\r
+ this.playSpeed.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);\r
this.playSpeed.Maximum = 5;\r
this.playSpeed.Name = "playSpeed";\r
- this.playSpeed.Size = new System.Drawing.Size(136, 56);\r
+ this.playSpeed.Size = new System.Drawing.Size(106, 56);\r
this.playSpeed.TabIndex = 26;\r
this.playSpeed.Tag = "PlaySpeed";\r
this.playSpeed.TickStyle = System.Windows.Forms.TickStyle.None;\r
this.playSpeed.Value = 2;\r
// \r
+ // audioLabel\r
+ // \r
+ this.audioLabel.AutoSize = true;\r
+ this.audioLabel.Location = new System.Drawing.Point(623, 0);\r
+ this.audioLabel.Name = "audioLabel";\r
+ this.audioLabel.Size = new System.Drawing.Size(44, 17);\r
+ this.audioLabel.TabIndex = 28;\r
+ this.audioLabel.Tag = "";\r
+ this.audioLabel.Text = "Audio";\r
+ this.audioLabel.Visible = false;\r
+ // \r
+ // audioTracks\r
+ // \r
+ this.audioTracks.AllowDrop = true;\r
+ this.audioTracks.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\r
+ this.audioTracks.FormattingEnabled = true;\r
+ this.audioTracks.IntegralHeight = false;\r
+ this.audioTracks.ItemHeight = 16;\r
+ this.audioTracks.Location = new System.Drawing.Point(673, 3);\r
+ this.audioTracks.Name = "audioTracks";\r
+ this.audioTracks.Size = new System.Drawing.Size(168, 24);\r
+ this.audioTracks.TabIndex = 29;\r
+ this.audioTracks.Visible = false;\r
+ // \r
// logoPanel\r
// \r
this.logoPanel.AutoSize = true;\r
((System.ComponentModel.ISupportInitialize)(this.playSpeed)).EndInit();\r
this.ResumeLayout(false);\r
\r
- }\r
+ } \r
\r
#endregion\r
\r
private MaestroShared.Controls.NoFocusCueButton btnStepForward;\r
private VideoSpeedTrackbar playSpeed;\r
private System.Windows.Forms.Label lblPlaySpeed;\r
+ private Label audioLabel;\r
+ private ComboBox audioTracks;\r
}\r
}
\ No newline at end of file
this.pVideo.Dock = System.Windows.Forms.DockStyle.Fill;\r
this.pVideo.Location = new System.Drawing.Point(0, 0);\r
this.pVideo.Name = "pVideo";\r
- this.pVideo.Size = new System.Drawing.Size(478, 363);\r
+ this.pVideo.Size = new System.Drawing.Size(472, 295);\r
this.pVideo.TabIndex = 0;\r
this.pVideo.TabStop = true;\r
this.pVideo.SizeChanged += new System.EventHandler(this.Panel1_SizeChanged);\r
this.mainSplit.BackColor = System.Drawing.Color.Black;\r
this.mainSplit.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\r
this.mainSplit.Dock = System.Windows.Forms.DockStyle.Fill;\r
- this.mainSplit.Location = new System.Drawing.Point(0, 24);\r
+ this.mainSplit.Location = new System.Drawing.Point(0, 28);\r
this.mainSplit.Name = "mainSplit";\r
// \r
// mainSplit.Panel1\r
this.mainSplit.Panel2.Controls.Add(this.tableLayoutPanel1);\r
this.mainSplit.Panel2.Controls.Add(this.pMetadataDisplay);\r
this.mainSplit.Panel2MinSize = 300;\r
- this.mainSplit.Size = new System.Drawing.Size(784, 365);\r
- this.mainSplit.SplitterDistance = 480;\r
+ this.mainSplit.Size = new System.Drawing.Size(931, 297);\r
+ this.mainSplit.SplitterDistance = 474;\r
this.mainSplit.TabIndex = 20;\r
// \r
// panelPlayer\r
this.panelPlayer.Dock = System.Windows.Forms.DockStyle.Fill;\r
this.panelPlayer.Location = new System.Drawing.Point(0, 0);\r
this.panelPlayer.Name = "panelPlayer";\r
- this.panelPlayer.Size = new System.Drawing.Size(478, 363);\r
+ this.panelPlayer.Size = new System.Drawing.Size(472, 295);\r
this.panelPlayer.TabIndex = 0;\r
// \r
// tableLayoutPanel1\r
this.tableLayoutPanel1.Name = "tableLayoutPanel1";\r
this.tableLayoutPanel1.RowCount = 1;\r
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));\r
- this.tableLayoutPanel1.Size = new System.Drawing.Size(298, 300);\r
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(451, 223);\r
this.tableLayoutPanel1.TabIndex = 4;\r
// \r
// tabEditor\r
this.tabEditor.Dock = System.Windows.Forms.DockStyle.Fill;\r
this.tabEditor.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
this.tabEditor.ImageList = this.imagesTabEdit;\r
- this.tabEditor.Location = new System.Drawing.Point(23, 4);\r
+ this.tabEditor.Location = new System.Drawing.Point(28, 4);\r
this.tabEditor.Margin = new System.Windows.Forms.Padding(0, 4, 4, 4);\r
this.tabEditor.Multiline = true;\r
this.tabEditor.Name = "tabEditor";\r
this.tabEditor.Padding = new System.Drawing.Point(10, 5);\r
this.tabEditor.SelectedIndex = 0;\r
- this.tabEditor.Size = new System.Drawing.Size(271, 292);\r
+ this.tabEditor.Size = new System.Drawing.Size(419, 215);\r
this.tabEditor.TabIndex = 2;\r
// \r
// tpMetadata\r
this.tpMetadata.Location = new System.Drawing.Point(4, 4);\r
this.tpMetadata.Name = "tpMetadata";\r
this.tpMetadata.Padding = new System.Windows.Forms.Padding(3);\r
- this.tpMetadata.Size = new System.Drawing.Size(263, 253);\r
+ this.tpMetadata.Size = new System.Drawing.Size(411, 176);\r
this.tpMetadata.TabIndex = 0;\r
this.tpMetadata.Text = "Metadata";\r
// \r
this.trafficBrowser.Margin = new System.Windows.Forms.Padding(0);\r
this.trafficBrowser.Name = "trafficBrowser";\r
this.trafficBrowser.Parameters = null;\r
- this.trafficBrowser.Size = new System.Drawing.Size(257, 247);\r
+ this.trafficBrowser.Size = new System.Drawing.Size(405, 170);\r
this.trafficBrowser.TabIndex = 0;\r
// \r
// tpSegments\r
this.tpSegments.Location = new System.Drawing.Point(4, 4);\r
this.tpSegments.Name = "tpSegments";\r
this.tpSegments.Padding = new System.Windows.Forms.Padding(3);\r
- this.tpSegments.Size = new System.Drawing.Size(214, 192);\r
+ this.tpSegments.Size = new System.Drawing.Size(315, 145);\r
this.tpSegments.TabIndex = 1;\r
this.tpSegments.Text = "Segments";\r
this.tpSegments.UseVisualStyleBackColor = true;\r
this.dgSegments.DefaultCellStyle = dataGridViewCellStyle1;\r
this.dgSegments.Dock = System.Windows.Forms.DockStyle.Fill;\r
this.dgSegments.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2;\r
- this.dgSegments.Location = new System.Drawing.Point(3, 28);\r
+ this.dgSegments.Location = new System.Drawing.Point(3, 32);\r
this.dgSegments.MultiSelect = false;\r
this.dgSegments.Name = "dgSegments";\r
this.dgSegments.RowHeadersVisible = false;\r
this.dgSegments.RowHeadersWidth = 51;\r
this.dgSegments.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;\r
- this.dgSegments.Size = new System.Drawing.Size(208, 161);\r
+ this.dgSegments.Size = new System.Drawing.Size(309, 110);\r
this.dgSegments.TabIndex = 1;\r
this.dgSegments.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.OnSegmentsCellBeginEdit);\r
this.dgSegments.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.OnSegmentsCellContentClick);\r
this.segmentActions.Location = new System.Drawing.Point(3, 3);\r
this.segmentActions.Name = "segmentActions";\r
this.segmentActions.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;\r
- this.segmentActions.Size = new System.Drawing.Size(208, 25);\r
+ this.segmentActions.Size = new System.Drawing.Size(309, 29);\r
this.segmentActions.TabIndex = 0;\r
this.segmentActions.Text = "toolStrip1";\r
// \r
this.tbDefineSegment.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
this.tbDefineSegment.ImageTransparentColor = System.Drawing.Color.Magenta;\r
this.tbDefineSegment.Name = "tbDefineSegment";\r
- this.tbDefineSegment.Size = new System.Drawing.Size(23, 22);\r
+ this.tbDefineSegment.Size = new System.Drawing.Size(29, 26);\r
this.tbDefineSegment.Text = "toolStripButton5";\r
this.tbDefineSegment.Click += new System.EventHandler(this.OnDefineOneSegmentClick);\r
// \r
// toolStripSeparator2\r
// \r
this.toolStripSeparator2.Name = "toolStripSeparator2";\r
- this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);\r
+ this.toolStripSeparator2.Size = new System.Drawing.Size(6, 29);\r
// \r
// tbPositionAsTCIn\r
// \r
this.tbPositionAsTCIn.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
this.tbPositionAsTCIn.ImageTransparentColor = System.Drawing.Color.Magenta;\r
this.tbPositionAsTCIn.Name = "tbPositionAsTCIn";\r
- this.tbPositionAsTCIn.Size = new System.Drawing.Size(23, 22);\r
+ this.tbPositionAsTCIn.Size = new System.Drawing.Size(29, 26);\r
this.tbPositionAsTCIn.Text = "toolStripButton1";\r
this.tbPositionAsTCIn.Click += new System.EventHandler(this.OnActualPositionToTCInToolStripMenuItem1Click);\r
// \r
this.tbSplitSegment.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
this.tbSplitSegment.ImageTransparentColor = System.Drawing.Color.Magenta;\r
this.tbSplitSegment.Name = "tbSplitSegment";\r
- this.tbSplitSegment.Size = new System.Drawing.Size(23, 22);\r
+ this.tbSplitSegment.Size = new System.Drawing.Size(29, 26);\r
this.tbSplitSegment.Text = "toolStripButton4";\r
this.tbSplitSegment.Click += new System.EventHandler(this.OnSplitSegmentAtCurrentPositionClick);\r
// \r
this.tbPositionAsTCOut.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
this.tbPositionAsTCOut.ImageTransparentColor = System.Drawing.Color.Magenta;\r
this.tbPositionAsTCOut.Name = "tbPositionAsTCOut";\r
- this.tbPositionAsTCOut.Size = new System.Drawing.Size(23, 22);\r
+ this.tbPositionAsTCOut.Size = new System.Drawing.Size(29, 26);\r
this.tbPositionAsTCOut.Text = "toolStripButton2";\r
this.tbPositionAsTCOut.Click += new System.EventHandler(this.OnActualPositionToTCOutToolStripMenuItem1Click);\r
// \r
// toolStripSeparator1\r
// \r
this.toolStripSeparator1.Name = "toolStripSeparator1";\r
- this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);\r
+ this.toolStripSeparator1.Size = new System.Drawing.Size(6, 29);\r
// \r
// tbDeleteSegment\r
// \r
this.tbDeleteSegment.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
this.tbDeleteSegment.ImageTransparentColor = System.Drawing.Color.Magenta;\r
this.tbDeleteSegment.Name = "tbDeleteSegment";\r
- this.tbDeleteSegment.Size = new System.Drawing.Size(23, 22);\r
+ this.tbDeleteSegment.Size = new System.Drawing.Size(29, 26);\r
this.tbDeleteSegment.Text = "toolStripButton3";\r
this.tbDeleteSegment.Click += new System.EventHandler(this.OnDeleteSegmentClick);\r
// \r
this.btnToggleSegmentEditor.Location = new System.Drawing.Point(0, 4);\r
this.btnToggleSegmentEditor.Margin = new System.Windows.Forms.Padding(0, 4, 0, 0);\r
this.btnToggleSegmentEditor.Name = "btnToggleSegmentEditor";\r
- this.btnToggleSegmentEditor.Size = new System.Drawing.Size(23, 63);\r
+ this.btnToggleSegmentEditor.Size = new System.Drawing.Size(28, 72);\r
this.btnToggleSegmentEditor.TabIndex = 0;\r
this.btnToggleSegmentEditor.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;\r
this.btnToggleSegmentEditor.UseVisualStyleBackColor = false;\r
this.pMetadataDisplay.Controls.Add(this.labelSelectedMetadata, 0, 0);\r
this.pMetadataDisplay.Controls.Add(this.txtSelectedID, 0, 1);\r
this.pMetadataDisplay.Dock = System.Windows.Forms.DockStyle.Bottom;\r
- this.pMetadataDisplay.Location = new System.Drawing.Point(0, 300);\r
+ this.pMetadataDisplay.Location = new System.Drawing.Point(0, 223);\r
this.pMetadataDisplay.Margin = new System.Windows.Forms.Padding(0);\r
this.pMetadataDisplay.Name = "pMetadataDisplay";\r
this.pMetadataDisplay.RowCount = 2;\r
this.pMetadataDisplay.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
this.pMetadataDisplay.RowStyles.Add(new System.Windows.Forms.RowStyle());\r
- this.pMetadataDisplay.Size = new System.Drawing.Size(298, 63);\r
+ this.pMetadataDisplay.Size = new System.Drawing.Size(451, 72);\r
this.pMetadataDisplay.TabIndex = 5;\r
// \r
// btnApprove\r
this.btnApprove.FlatStyle = System.Windows.Forms.FlatStyle.Flat;\r
this.btnApprove.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
this.btnApprove.Image = ((System.Drawing.Image)(resources.GetObject("btnApprove.Image")));\r
- this.btnApprove.Location = new System.Drawing.Point(196, 29);\r
+ this.btnApprove.Location = new System.Drawing.Point(340, 32);\r
this.btnApprove.Margin = new System.Windows.Forms.Padding(0, 4, 0, 0);\r
this.btnApprove.Name = "btnApprove";\r
- this.btnApprove.Size = new System.Drawing.Size(102, 30);\r
+ this.btnApprove.Size = new System.Drawing.Size(111, 30);\r
this.btnApprove.TabIndex = 17;\r
this.btnApprove.Text = "Approve";\r
this.btnApprove.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;\r
this.labelSelectedMetadata.Location = new System.Drawing.Point(3, 0);\r
this.labelSelectedMetadata.Name = "labelSelectedMetadata";\r
this.labelSelectedMetadata.Padding = new System.Windows.Forms.Padding(0, 5, 0, 5);\r
- this.labelSelectedMetadata.Size = new System.Drawing.Size(190, 25);\r
+ this.labelSelectedMetadata.Size = new System.Drawing.Size(334, 28);\r
this.labelSelectedMetadata.TabIndex = 13;\r
this.labelSelectedMetadata.Text = "Selected metadata";\r
// \r
this.txtSelectedID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\r
this.txtSelectedID.Dock = System.Windows.Forms.DockStyle.Fill;\r
this.txtSelectedID.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));\r
- this.txtSelectedID.Location = new System.Drawing.Point(3, 28);\r
+ this.txtSelectedID.Location = new System.Drawing.Point(3, 31);\r
this.txtSelectedID.Name = "txtSelectedID";\r
- this.txtSelectedID.Size = new System.Drawing.Size(190, 32);\r
+ this.txtSelectedID.Size = new System.Drawing.Size(334, 38);\r
this.txtSelectedID.TabIndex = 12;\r
// \r
// mainMenu\r
this.fileToolStripMenuItem});\r
this.mainMenu.Location = new System.Drawing.Point(0, 0);\r
this.mainMenu.Name = "mainMenu";\r
- this.mainMenu.Size = new System.Drawing.Size(784, 24);\r
+ this.mainMenu.Size = new System.Drawing.Size(931, 28);\r
this.mainMenu.TabIndex = 21;\r
this.mainMenu.Text = "menuStrip1";\r
// \r
this.toolStripSeparator3,\r
this.menuRedefineSegments});\r
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";\r
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);\r
+ this.fileToolStripMenuItem.Size = new System.Drawing.Size(46, 24);\r
this.fileToolStripMenuItem.Text = "File";\r
// \r
// menuOpenFile\r
// \r
this.menuOpenFile.Name = "menuOpenFile";\r
this.menuOpenFile.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));\r
- this.menuOpenFile.Size = new System.Drawing.Size(215, 22);\r
+ this.menuOpenFile.Size = new System.Drawing.Size(269, 26);\r
this.menuOpenFile.Text = "Open file";\r
this.menuOpenFile.Click += new System.EventHandler(this.MenuOpenFile_Click);\r
// \r
// \r
this.menuApprove.Name = "menuApprove";\r
this.menuApprove.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));\r
- this.menuApprove.Size = new System.Drawing.Size(215, 22);\r
+ this.menuApprove.Size = new System.Drawing.Size(269, 26);\r
this.menuApprove.Text = "Approve";\r
this.menuApprove.Click += new System.EventHandler(this.OnApprove);\r
// \r
// toolStripSeparator3\r
// \r
this.toolStripSeparator3.Name = "toolStripSeparator3";\r
- this.toolStripSeparator3.Size = new System.Drawing.Size(212, 6);\r
+ this.toolStripSeparator3.Size = new System.Drawing.Size(266, 6);\r
// \r
// menuRedefineSegments\r
// \r
this.menuRedefineSegments.Name = "menuRedefineSegments";\r
this.menuRedefineSegments.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R)));\r
- this.menuRedefineSegments.Size = new System.Drawing.Size(215, 22);\r
+ this.menuRedefineSegments.Size = new System.Drawing.Size(269, 26);\r
this.menuRedefineSegments.Text = "Redefine segments";\r
this.menuRedefineSegments.Click += new System.EventHandler(this.OnRedefineSegments);\r
// \r
this.flowLayoutPanel1.Controls.Add(this.btnSave);\r
this.flowLayoutPanel1.Controls.Add(this.btnCancel);\r
this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;\r
- this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 532);\r
+ this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 528);\r
this.flowLayoutPanel1.Name = "flowLayoutPanel1";\r
this.flowLayoutPanel1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;\r
- this.flowLayoutPanel1.Size = new System.Drawing.Size(784, 29);\r
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(931, 33);\r
this.flowLayoutPanel1.TabIndex = 23;\r
// \r
// btnSave\r
// \r
- this.btnSave.Location = new System.Drawing.Point(706, 3);\r
+ this.btnSave.Location = new System.Drawing.Point(838, 3);\r
this.btnSave.Name = "btnSave";\r
- this.btnSave.Size = new System.Drawing.Size(75, 23);\r
+ this.btnSave.Size = new System.Drawing.Size(90, 27);\r
this.btnSave.TabIndex = 0;\r
this.btnSave.Text = "Save";\r
this.btnSave.UseVisualStyleBackColor = true;\r
// \r
// btnCancel\r
// \r
- this.btnCancel.Location = new System.Drawing.Point(625, 3);\r
+ this.btnCancel.Location = new System.Drawing.Point(742, 3);\r
this.btnCancel.Name = "btnCancel";\r
- this.btnCancel.Size = new System.Drawing.Size(75, 23);\r
+ this.btnCancel.Size = new System.Drawing.Size(90, 27);\r
this.btnCancel.TabIndex = 1;\r
this.btnCancel.Text = "Cancel";\r
this.btnCancel.UseVisualStyleBackColor = true;\r
this.playerControls.BackColor = System.Drawing.Color.Transparent;\r
this.playerControls.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;\r
this.playerControls.Dock = System.Windows.Forms.DockStyle.Bottom;\r
- this.playerControls.Location = new System.Drawing.Point(0, 389);\r
+ this.playerControls.Location = new System.Drawing.Point(0, 325);\r
this.playerControls.Margin = new System.Windows.Forms.Padding(0);\r
this.playerControls.Name = "playerControls";\r
- this.playerControls.Size = new System.Drawing.Size(784, 143);\r
+ this.playerControls.Size = new System.Drawing.Size(931, 203);\r
this.playerControls.TabIndex = 22;\r
// \r
// PlayerForm\r
// \r
this.AllowDrop = true;\r
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);\r
+ this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);\r
this.BackColor = System.Drawing.Color.White;\r
- this.ClientSize = new System.Drawing.Size(784, 561);\r
+ this.ClientSize = new System.Drawing.Size(931, 561);\r
this.Controls.Add(this.mainSplit);\r
this.Controls.Add(this.mainMenu);\r
this.Controls.Add(this.playerControls);\r
this.Controls.Add(this.flowLayoutPanel1);\r
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));\r
this.KeyPreview = true;\r
- this.MinimumSize = new System.Drawing.Size(640, 480);\r
+ this.MinimumSize = new System.Drawing.Size(768, 554);\r
this.Name = "PlayerForm";\r
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\r
this.Text = "MediaCube Player";\r
using MaestroShared.Commons;\r
using NLog;\r
using System;\r
+using System.Collections.Generic;\r
using System.Runtime.InteropServices;\r
\r
namespace DxPlay {\r
//public IVMRWindowlessControl9 WindowlessControl { get; private set; }\r
\r
private bool isDisposed;\r
+ public int AudioCount { get; set; }\r
+ public List<string> AvailableAudioTracks { get; set; }\r
+ public IBaseFilter Splitter { get; set; }\r
\r
public PlayerGraph(string fileName, IntPtr handle, VideoRendererType rendererType)\r
{\r
logger.Debug("Add SourceFilter to graph");\r
DsError.ThrowExceptionForHR(graphBuilder.AddSourceFilter(fileName, fileName, out IBaseFilter sourceFilter));\r
\r
- IBaseFilter splitter = AddSplitter(graphBuilder, sourceFilter);\r
+ Splitter = AddSplitter(graphBuilder, sourceFilter);\r
bool audioOnly = true;\r
- if (DsFindPin.ByName(splitter, "Video") != null)\r
+ if (DsFindPin.ByName(Splitter, "Video") != null)\r
{\r
audioOnly = false;\r
- IBaseFilter videoDecoder = AddVideoDecoder(graphBuilder, splitter);\r
+ IBaseFilter videoDecoder = AddVideoDecoder(graphBuilder, Splitter);\r
EnableDeinterlace(videoDecoder);\r
IBaseFilter sampleGrabber = AddSampleGrabber(graphBuilder, videoDecoder);\r
SampleGrabber = (ISampleGrabber)sampleGrabber;\r
break;\r
}\r
FilterGraphTools.RenderPin(graphBuilder, sampleGrabber, "Output");\r
- ConfigureSimpleRenderer(handle);\r
-\r
+ ConfigureSimpleRenderer(handle); \r
}\r
else\r
{\r
logger.Warn("Video pin not available");\r
}\r
- if (DsFindPin.ByName(splitter, "Audio") != null)\r
+ if (DsFindPin.ByName(Splitter, "Audio") != null)\r
{\r
- IBaseFilter audioDecoder = AddAudioDecoder(graphBuilder, splitter);\r
+ IBaseFilter audioDecoder = AddAudioDecoder(graphBuilder, Splitter);\r
if (audioOnly)\r
{\r
throw new Exception("Audio only file is not supported.");\r
}\r
else\r
FilterGraphTools.RenderPin(graphBuilder, audioDecoder, "Output");\r
-\r
- //TODO hang stream selector kivezetese a feluletre. 0. a video...\r
- /*\r
- IAMStreamSelect streamSelect = (IAMStreamSelect)splitter;\r
- if (streamSelect != null)\r
- {\r
- streamSelect.Enable(3, AMStreamSelectEnableFlags.Enable);\r
- }\r
- */\r
-\r
}\r
else\r
{\r
logger.Warn("Audio pin not available");\r
}\r
\r
- SearchAudioTracks(splitter);\r
-\r
+ SearchAudioTracks(Splitter);\r
+ SetAudioTrack(0);\r
}\r
catch (Exception e)\r
{\r
logger.Debug("Add LAVSplitter to graph");\r
IBaseFilter splitter = LoadSplitter(graphBuilder);\r
if (splitter == null) {\r
- throw new Exception("Can not load splitter!");\r
+ throw new Exception("Can not load Splitter!");\r
}\r
logger.Debug("Connect SourceFilter -> LAVSplitter");\r
FilterGraphTools.ConnectFilters(graphBuilder, sourceFilter, "Output", splitter, "Input", true);\r
return splitter;\r
}\r
\r
- private void SearchAudioTracks(IBaseFilter splitter)\r
+ public void SearchAudioTracks(IBaseFilter splitter)\r
{\r
IAMStreamSelect amStreamSelect = (IAMStreamSelect)splitter;\r
if (amStreamSelect != null)\r
{\r
amStreamSelect.Count(out int count);\r
- int audioCount = 0;\r
+ AudioCount = 0;\r
for (int i = 0; i < count; i++)\r
{\r
- amStreamSelect.Info(i, out AMMediaType ppmt, out AMStreamSelectInfoFlags pdwFlags, out int plcid, out int pdwGroup, out string ppszName, out object ppObject, out object ppUnk);\r
+ amStreamSelect.Info(i, out AMMediaType ppmt, out AMStreamSelectInfoFlags pdwFlags, out int plcid, out int pdwGroup, \r
+ out string ppszName, out object ppObject, out object ppUnk);\r
if (ppmt.majorType == MediaType.Audio)\r
{\r
logger.Debug("Found audio channel");\r
- audioCount++;\r
+ AudioCount++;\r
+ if (AvailableAudioTracks != null && ppszName != null) { \r
+ AvailableAudioTracks.Add(i+". "+ppszName); \r
+ }\r
}\r
DsUtils.FreeAMMediaType(ppmt);\r
if (ppObject != null)\r
if (ppUnk != null)\r
DsUtils.ReleaseComObject(ppUnk);\r
}\r
- logger.Debug("Audio count: " + audioCount);\r
+ logger.Debug("Audio count: " + AudioCount);\r
}\r
}\r
\r
if (splitter == null) \r
splitter = FilterGraphTools.AddFilterByName(graphBuilder, FilterCategory.LegacyAmFilterCategory, "LAV Splitter");\r
\r
- //if (splitter != null)\r
- // graphBuilder.AddFilter(splitter, "LAV Splitter");\r
+ //if (Splitter != null)\r
+ // graphBuilder.AddFilter(Splitter, "LAV Splitter");\r
return splitter;\r
}\r
\r
}\r
}\r
\r
+ public void SetAudioTrack(int selectedTrackIndex)\r
+ {\r
+ IAMStreamSelect streamSelect = (IAMStreamSelect)Splitter;\r
+ if (streamSelect != null)\r
+ {\r
+ streamSelect.Enable(selectedTrackIndex+1, AMStreamSelectEnableFlags.Enable);\r
+ }\r
+ }\r
}\r
}\r