Click here to Skip to main content
14,216,574 members
Click here to Skip to main content

Stats

764.9K views
31.7K downloads
296 bookmarked

PVS.AVPlayer - Audio and Video Player Library

,
Rate this:
4.94 (154 votes)
Please Sign up or sign in to vote.
4.94 (154 votes)
14 Jun 2019     CPOL    
Microsoft Media Foundation (MF) based easy-to-use library with many added features
PVS.AVPlayer
PVS.AVPlayer .NET 2.0
PVS.AVPlayer.XML
PVS.AVPlayer .NET 3.0
PVS.AVPlayer.XML
PVS.AVPlayer .NET 3.5
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.0
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.5
PVS.AVPlayer .NET 4.5.1
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.5.2
PVS.AVPlayer.XML
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.6
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.6.1
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.6.2
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.7
PVS.AVPlayer .NET 4.7.1
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.7.2
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer .NET 4.8
PVS.AVPlayer.dll
PVS.AVPlayer.XML
PVS.AVPlayer Licenses
PVS.AVPlayer All Source Code
AVPlayerExample
AVPlayerExample
AVPlayerExample.csproj.user
bin
Debug
PVS.AVPlayer.XML
Release
Dialogs
Display Overlays
obj
Debug
Release
x86
Debug
Release
Properties
Resources
Crystal Italic1.ttf
WingDings3a.ttf
Voice Recorder
FolderView
FolderView
bin
Debug
PVS.AVPlayer.XML
Release
FolderView.csproj.user
obj
Release
x86
Debug
Release
Properties
Resources
Crystal Italic1.ttf
PVS.AVPlayer
AVPlayerExample.csproj.user
PVS.AVPlayer.dll
PVS.AVPlayer.XML
Custom Items
Native Methods
Bob.png
Crystal Italic1.ttf
Dial Green.png
Dial Normal 2.png
Dial Red 2.png
Dial Red.png
Kaizen-4.png
Media Normal.ico
Media Paused.ico
Media Paused1.ico
Media Playing.ico
PVSLogo.png
PVSLogoOutline.png
VU Meter.png
WingDings3a.ttf
Various
PVS.AVPlayer Licenses
About Dialog
PVS.AVPlayer.dll
PVS.AVPlayer.XML
Custom Items
FolderView.csproj.user
Media8b.ico
Debug
Bob.png
Crystal Italic1.ttf
Media Paused.ico
media7a.ico
media7b.ico
Media8a.ico
Media8b.ico
PVSLogoOutline.png
Subtitles Overlay
Various
PVS.AVPlayer Licenses
How To (C#)
PVS.AVPlayer Licenses
PVSAVPlayerHowTo
bin
Debug
PVS.AVPlayer.dll
PVS.AVPlayer.XML
Release
obj
Debug
Release
Properties
How To (VB.NET)
PVS.AVPlayer Licenses
PVSAVPlayerHowToVB
bin
Debug
PVS.AVPlayer.dll
PVS.AVPlayer.XML
Release
My Project
Application.myapp
obj
Debug
Release
PVSAVPlayerHowTo.vbproj.user
PVS.AVPlayer Licenses
PVS.AVPlayer Examples
AVPlayerExample.ex_
FolderView.ex_
AVPlayerExample.exe
FolderView.exe
PVS.AVPlayer Licenses
PVS.AVPlayer.dll
using System.ComponentModel;
using System.Windows.Forms;

namespace AVPlayerExample
{
    partial class VoiceRecorder
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private 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()
        {
            this.components = new System.ComponentModel.Container();
            this.recorderPanel = new System.Windows.Forms.Panel();
            this.recorderMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.inputMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.channelsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.monoMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.stereoMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.bitsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.bits8MenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.bits16MenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.sampleRateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.hz11025MenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.hz22050MenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.hz44100MenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
            this.hideMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.closeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.recCounterLabel = new System.Windows.Forms.Label();
            this.stopButton = new AVPlayerExample.CustomButton();
            this.pauseButton = new AVPlayerExample.CustomButton();
            this.recordButton = new AVPlayerExample.CustomButton();
            this.recorderDropDownButton = new AVPlayerExample.DropDownButton();
            this.recorderPanel.SuspendLayout();
            this.recorderMenu.SuspendLayout();
            this.SuspendLayout();
            // 
            // recorderPanel
            // 
            this.recorderPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
            this.recorderPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.recorderPanel.ContextMenuStrip = this.recorderMenu;
            this.recorderPanel.Controls.Add(this.recCounterLabel);
            this.recorderPanel.Controls.Add(this.stopButton);
            this.recorderPanel.Controls.Add(this.pauseButton);
            this.recorderPanel.Controls.Add(this.recordButton);
            this.recorderPanel.Controls.Add(this.recorderDropDownButton);
            this.recorderPanel.Cursor = System.Windows.Forms.Cursors.Default;
            this.recorderPanel.Location = new System.Drawing.Point(0, 0);
            this.recorderPanel.Name = "recorderPanel";
            this.recorderPanel.Size = new System.Drawing.Size(110, 80);
            this.recorderPanel.TabIndex = 1;
            this.recorderPanel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Control_MouseDown);
            // 
            // recorderMenu
            // 
            this.recorderMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.inputMenuItem,
            this.toolStripSeparator1,
            this.channelsToolStripMenuItem,
            this.bitsToolStripMenuItem,
            this.sampleRateToolStripMenuItem,
            this.toolStripSeparator4,
            this.hideMenuItem,
            this.closeMenuItem});
            this.recorderMenu.Name = "optionsMenu";
            this.recorderMenu.ShowImageMargin = false;
            this.recorderMenu.Size = new System.Drawing.Size(124, 148);
            // 
            // inputMenuItem
            // 
            this.inputMenuItem.Name = "inputMenuItem";
            this.inputMenuItem.Size = new System.Drawing.Size(123, 22);
            this.inputMenuItem.Text = "Microphone…";
            this.inputMenuItem.Click += new System.EventHandler(this.inputMenuItem_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(120, 6);
            // 
            // channelsToolStripMenuItem
            // 
            this.channelsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.monoMenuItem,
            this.stereoMenuItem});
            this.channelsToolStripMenuItem.Name = "channelsToolStripMenuItem";
            this.channelsToolStripMenuItem.Size = new System.Drawing.Size(123, 22);
            this.channelsToolStripMenuItem.Text = "Channels";
            // 
            // monoMenuItem
            // 
            this.monoMenuItem.Checked = true;
            this.monoMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
            this.monoMenuItem.Name = "monoMenuItem";
            this.monoMenuItem.Size = new System.Drawing.Size(107, 22);
            this.monoMenuItem.Text = "Mono";
            this.monoMenuItem.Click += new System.EventHandler(this.monoMenuItem_Click);
            // 
            // stereoMenuItem
            // 
            this.stereoMenuItem.Name = "stereoMenuItem";
            this.stereoMenuItem.Size = new System.Drawing.Size(107, 22);
            this.stereoMenuItem.Text = "Stereo";
            this.stereoMenuItem.Click += new System.EventHandler(this.stereoMenuItem_Click);
            // 
            // bitsToolStripMenuItem
            // 
            this.bitsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.bits8MenuItem,
            this.bits16MenuItem});
            this.bitsToolStripMenuItem.Name = "bitsToolStripMenuItem";
            this.bitsToolStripMenuItem.Size = new System.Drawing.Size(123, 22);
            this.bitsToolStripMenuItem.Text = "Bits";
            // 
            // bits8MenuItem
            // 
            this.bits8MenuItem.Checked = true;
            this.bits8MenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
            this.bits8MenuItem.Name = "bits8MenuItem";
            this.bits8MenuItem.Size = new System.Drawing.Size(108, 22);
            this.bits8MenuItem.Text = "8 Bits";
            this.bits8MenuItem.Click += new System.EventHandler(this.bits8MenuItem_Click);
            // 
            // bits16MenuItem
            // 
            this.bits16MenuItem.Name = "bits16MenuItem";
            this.bits16MenuItem.Size = new System.Drawing.Size(108, 22);
            this.bits16MenuItem.Text = "16 Bits";
            this.bits16MenuItem.Click += new System.EventHandler(this.bits16MenuItem_Click);
            // 
            // sampleRateToolStripMenuItem
            // 
            this.sampleRateToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.hz11025MenuItem,
            this.hz22050MenuItem,
            this.hz44100MenuItem});
            this.sampleRateToolStripMenuItem.Name = "sampleRateToolStripMenuItem";
            this.sampleRateToolStripMenuItem.Size = new System.Drawing.Size(123, 22);
            this.sampleRateToolStripMenuItem.Text = "Sample Rate";
            // 
            // hz11025MenuItem
            // 
            this.hz11025MenuItem.Checked = true;
            this.hz11025MenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
            this.hz11025MenuItem.Name = "hz11025MenuItem";
            this.hz11025MenuItem.Size = new System.Drawing.Size(121, 22);
            this.hz11025MenuItem.Text = "11025 Hz";
            this.hz11025MenuItem.Click += new System.EventHandler(this.hz11025MenuItem_Click);
            // 
            // hz22050MenuItem
            // 
            this.hz22050MenuItem.Name = "hz22050MenuItem";
            this.hz22050MenuItem.Size = new System.Drawing.Size(121, 22);
            this.hz22050MenuItem.Text = "22050 Hz";
            this.hz22050MenuItem.Click += new System.EventHandler(this.hz22050MenuItem_Click);
            // 
            // hz44100MenuItem
            // 
            this.hz44100MenuItem.Name = "hz44100MenuItem";
            this.hz44100MenuItem.Size = new System.Drawing.Size(121, 22);
            this.hz44100MenuItem.Text = "44100 Hz";
            this.hz44100MenuItem.Click += new System.EventHandler(this.hz44100MenuItem_Click);
            // 
            // toolStripSeparator4
            // 
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new System.Drawing.Size(120, 6);
            // 
            // hideMenuItem
            // 
            this.hideMenuItem.Name = "hideMenuItem";
            this.hideMenuItem.Size = new System.Drawing.Size(123, 22);
            this.hideMenuItem.Text = "Hide";
            this.hideMenuItem.Click += new System.EventHandler(this.hideMenuItem_Click);
            // 
            // closeMenuItem
            // 
            this.closeMenuItem.Name = "closeMenuItem";
            this.closeMenuItem.Size = new System.Drawing.Size(123, 22);
            this.closeMenuItem.Text = "Close";
            this.closeMenuItem.Click += new System.EventHandler(this.closeMenuItem_Click);
            // 
            // recCounterLabel
            // 
            this.recCounterLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.recCounterLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.recCounterLabel.Cursor = System.Windows.Forms.Cursors.SizeAll;
            this.recCounterLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.recCounterLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.recCounterLabel.Location = new System.Drawing.Point(2, 25);
            this.recCounterLabel.Name = "recCounterLabel";
            this.recCounterLabel.Size = new System.Drawing.Size(104, 29);
            this.recCounterLabel.TabIndex = 7;
            this.recCounterLabel.Text = "00:00:00";
            this.recCounterLabel.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Control_MouseDown);
            // 
            // stopButton
            // 
            this.stopButton.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
            this.stopButton.Cursor = System.Windows.Forms.Cursors.Default;
            this.stopButton.Font = new System.Drawing.Font("Webdings", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2)));
            this.stopButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(159)))), ((int)(((byte)(87)))));
            this.stopButton.Location = new System.Drawing.Point(73, 56);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(33, 20);
            this.stopButton.TabIndex = 6;
            this.stopButton.Text = "<";
            this.stopButton.UseVisualStyleBackColor = true;
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // pauseButton
            // 
            this.pauseButton.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
            this.pauseButton.Cursor = System.Windows.Forms.Cursors.Default;
            this.pauseButton.Font = new System.Drawing.Font("Webdings", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2)));
            this.pauseButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(159)))), ((int)(((byte)(87)))));
            this.pauseButton.Location = new System.Drawing.Point(38, 56);
            this.pauseButton.Name = "pauseButton";
            this.pauseButton.Size = new System.Drawing.Size(33, 20);
            this.pauseButton.TabIndex = 5;
            this.pauseButton.Text = ";";
            this.pauseButton.UseVisualStyleBackColor = true;
            this.pauseButton.Click += new System.EventHandler(this.pauseButton_Click);
            // 
            // recordButton
            // 
            this.recordButton.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
            this.recordButton.Cursor = System.Windows.Forms.Cursors.Default;
            this.recordButton.Font = new System.Drawing.Font("Webdings", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2)));
            this.recordButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(210)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.recordButton.Location = new System.Drawing.Point(2, 56);
            this.recordButton.Name = "recordButton";
            this.recordButton.Size = new System.Drawing.Size(34, 20);
            this.recordButton.TabIndex = 4;
            this.recordButton.Text = "=";
            this.recordButton.UseVisualStyleBackColor = true;
            this.recordButton.Click += new System.EventHandler(this.recordButton_Click);
            // 
            // recorderDropDownButton
            // 
            this.recorderDropDownButton.Appearance = System.Windows.Forms.Appearance.Button;
            this.recorderDropDownButton.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100)))));
            this.recorderDropDownButton.Cursor = System.Windows.Forms.Cursors.Default;
            this.recorderDropDownButton.DropDown = this.recorderMenu;
            this.recorderDropDownButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(159)))), ((int)(((byte)(87)))));
            this.recorderDropDownButton.Location = new System.Drawing.Point(2, 2);
            this.recorderDropDownButton.Name = "recorderDropDownButton";
            this.recorderDropDownButton.Size = new System.Drawing.Size(104, 21);
            this.recorderDropDownButton.TabIndex = 3;
            this.recorderDropDownButton.Text = "Voice Recorder   ";
            this.recorderDropDownButton.UseVisualStyleBackColor = true;
            // 
            // VoiceRecorder
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(110, 80);
            this.ControlBox = false;
            this.Controls.Add(this.recorderPanel);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.MinimumSize = new System.Drawing.Size(10, 10);
            this.Name = "VoiceRecorder";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            this.Text = "VoiceRecorder";
            this.recorderPanel.ResumeLayout(false);
            this.recorderMenu.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private Panel recorderPanel;
        private Label recCounterLabel;
        private CustomButton stopButton;
        private CustomButton pauseButton;
        private CustomButton recordButton;
        private DropDownButton recorderDropDownButton;
        private ContextMenuStrip recorderMenu;
        private ToolStripMenuItem inputMenuItem;
        private ToolStripSeparator toolStripSeparator1;
        private ToolStripMenuItem channelsToolStripMenuItem;
        private ToolStripMenuItem monoMenuItem;
        private ToolStripMenuItem stereoMenuItem;
        private ToolStripMenuItem bitsToolStripMenuItem;
        private ToolStripMenuItem bits8MenuItem;
        private ToolStripMenuItem bits16MenuItem;
        private ToolStripMenuItem sampleRateToolStripMenuItem;
        private ToolStripMenuItem hz11025MenuItem;
        private ToolStripMenuItem hz22050MenuItem;
        private ToolStripMenuItem hz44100MenuItem;
        private ToolStripSeparator toolStripSeparator4;
        private ToolStripMenuItem closeMenuItem;
        private ToolStripMenuItem hideMenuItem;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Peter Vegter
United States United States
No Biography provided