This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Set the video format | |
_Camera.VideoResolutionX = txtVideoResolutionX.Text; | |
_Camera.VideoResolutionY = txtVideoResolutionY.Text; | |
//Set the FPS | |
_Camera.VideoFPS = "30"; | |
//Set the buffer size | |
_Camera.BufferSize = "100MB"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Init function, must be call before using any functionality of the library. | |
videoPlayer.Init(@"../../../libs/ffmpeg/x86/bin", "UserName", "RegKey"); | |
videoPlayer.Open(new Uri(_mediafile)); | |
videoPlayer.Play(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create a new instance of the library with the path of the ffmpeg libraries: | |
_CSVideoConverter = new CSVideoConverter.VideoConverter(@"../../../libs/ffmpeg/x86/bin", | |
"UserName", "RegKey"); | |
//Set the source file | |
_CSVideoConverter.FileSource = txtSource.Text; | |
//Set the destination file | |
_CSVideoConverter.FileDestination = txtDestination.Text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In order to get your own UserName and RegKey please order a license. | |
using (ScreenRecorder = new CSScreenRecorder.ScreenRecorder("UserName", "RegKey")) | |
{ | |
//Set the area to record | |
ScreenRecorder.RecordScreenHeight = Int32.Parse(txtHeight.Text); | |
ScreenRecorder.RecordScreenWidth = Int32.Parse(txtWidth.Text); | |
ScreenRecorder.RecordScreenTop = Int32.Parse(txtTop.Text); | |
ScreenRecorder.RecordScreenLeft = Int32.Parse(txtLeft.Text); | |
//Track mouse move |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create a new instance of the library with the path of | |
//the phantomjs libraries: | |
_WebpageCapture = new CSPhantomJS(@"../../../libs/phantomjs/bin", "UserName", "RegKey"); | |
_WebpageCapture.DestinationFormat = DestinationFormat.Image; | |
_WebpageCapture.ImageFormat = "1920px"; | |
_WebpageCapture.URL = "https://www.microncode.com"; | |
_WebpageCapture.OutFile = _FileName; | |
//You can add an additional arguments: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create a new instance of the library with the direction of the ffmpeg libraries | |
_CSFFmpeg = new CSFFmpeg.CSFFmpeg(@"../../../libs/ffmpeg/x86/bin", "UserName", "RegKey"); | |
//Set the arguments | |
_CSFFmpeg.ArgsDirect = txtArguments.Text; | |
//Events | |
//On ffmpeg output event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Init the component | |
freeDB1.UserName = "Your email"; | |
freeDB1.UserKey = "Your registration key"; | |
// Tracks names: | |
foreach (string trckFreeDB in freeDB1.GetFreeDBInfoAsync(cboDevice.SelectedIndex).FreeDBTracksInfo) | |
{ | |
lstTracks.Items[cntr].SubItems[1].Text = trckFreeDB.ToString(); | |
cntr = cntr + 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Init the component | |
dvdcdBurner1.UserName = "Your email"; | |
dvdcdBurner1.UserKey = "Your registration key"; | |
//Add a file to the burnning list | |
dvdcdBurner1.AddFile(OpenFileDialog1.FileName); | |
//Add a directory to the burnning list | |
//This will add all the files and sub directories | |
dvdcdBurner1.AddDir(sDirName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Set the mode | |
audioVisualization1.Mode = CSAudioVisualization.Mode.WasapiLoopbackCapture; | |
//Set the device index | |
audioVisualization1.DeviceIndex = cboAudioSource.SelectedIndex; | |
//Set the quality | |
audioVisualization1.HighQuality = true; | |
//Set the interval |
NewerOlder