Retrieves the filename and flags set using SetClosedCaptioningTargetFile.
public virtual void GetClosedCaptioningTargetFile(
out string FileName,
out Leadtools.Multimedia.ClosedCaptioningFlags Flags
)
Public Overridable Sub GetClosedCaptioningTargetFile( _
ByRef FileName As String, _
ByRef Flags As Leadtools.Multimedia.ClosedCaptioningFlags _
)
public:
virtual void GetClosedCaptioningTargetFile(
[Out] String^ FileName,
[Out] Leadtools.Multimedia.ClosedCaptioningFlags Flags
)
FileName
Ouput variable which receives the name of the file used to save the closed captioning data.
Flags
Ouput variable which receives the value of flags that used to save the closed captioning data. For a list of possible values, refer to ClosedCaptioningFlags enumeration values.
This method retrieves null and zero flag if no filename has been set.
using Leadtools;
using Leadtools.Multimedia;
using LeadtoolsMultimediaExamples.Fixtures;
public bool _result = false;
public ConvertCtrlForm _form = new ConvertCtrlForm();
public void ClosedCaptioningTargetFile()
{
// reference the convert control
ConvertCtrl convertctrl = _form.ConvertCtrl;
// target file
string targetFileCc = Path.Combine(LEAD_VARS.MediaDir, "ConvertCtrl_ClosedCaptioningTargetFile.srt");
ClosedCaptioningFlags flags = ClosedCaptioningFlags.Default;
string testFile;
ClosedCaptioningFlags testFlags;
try
{
// set target file name and save options
convertctrl.SetClosedCaptioningTargetFile(targetFileCc, flags);
convertctrl.GetClosedCaptioningTargetFile(out testFile, out testFlags);
if (testFile == targetFileCc && testFlags == flags)
_result = true;
else
_result = false;
}
catch (Exception)
{
_result = false;
}
}
static class LEAD_VARS
{
public const string MediaDir = @"C:\Program Files (x86)\LEAD Technologies\LEADTOOLS 19\Media";
}
Imports Leadtools
Imports Leadtools.Multimedia
Imports LeadtoolsMultimediaExamples.Fixtures
Public _result As Boolean = False
Public _form As ConvertCtrlForm = New ConvertCtrlForm()
Public Sub ClosedCaptioningTargetFile()
' reference the convert control
Dim convertctrl As ConvertCtrl = _form.ConvertCtrl
' target file
Dim targetFileCc As String = Path.Combine(LEAD_VARS.MediaDir, "ConvertCtrl_ClosedCaptioningTargetFile.srt")
Dim flags As ClosedCaptioningFlags = ClosedCaptioningFlags.Default
Dim testFile As String = String.Empty
Dim testFlags As ClosedCaptioningFlags
Try
' set target file name and save options
convertctrl.SetClosedCaptioningTargetFile(targetFileCc, flags)
convertctrl.GetClosedCaptioningTargetFile(testFile, testFlags)
If testFile = targetFileCc AndAlso testFlags = flags Then
_result = True
Else
_result = False
End If
Catch e1 As Exception
_result = False
End Try
End Sub
Public NotInheritable Class LEAD_VARS
Public Const MediaDir As String = "C:\Program Files (x86)\LEAD Technologies\LEADTOOLS 19\Media"
End Class
Products |
Support |
Feedback: GetClosedCaptioningTargetFile Method - Leadtools.Multimedia |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.