Takes the user-supplied byte range and scans for transport fragment boundaries.
|C||HRESULT ILMDVRSource_GetFragmentAlignment(pILMDVRSource, startOffset, endOffset, pAlignedStartOffset, pAlignedEndOffset)|
|C++||HRESULT GetFragmentAlignment(startOffset, endOffset, pAlignedStartOffset, pAlignedEndOffset)|
Pointer to an ILMDVRSource interface.
Specifies the byte offset at which to begin scanning for transport fragments.
Specifies the byte offset at which to stop scanning for transport fragments.
A pointer to a double variable, storing the offset of the start of the first transport fragment found.
A pointer to a double variable, storing the offset of the end of the last transport fragment.
|S_FALSE||No transport fragment found: pAlignedStartOffset and pAlignedEndOffset are equal to startOffset, and indicate an empty search.|
Use this function along with ILMDVRSource::CopyBufferToFile to save a completely intact MPEG transport fragment. This is demonstrated in the example.
Set up the MPEG multiplexer used for recording to DVR by calling put_OutputType(Mpg2MxT_OutputType_HLS). Doing so guarantees that fragment boundaries start with synchronization frames. Specify the boundary time interval by calling put_ResyncInterval(intervalTime).
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries