Clone Method

Summary

Creates a complete copy of this MediaSample object.

Syntax
C#
VB
C++
public MediaSample Clone() 
Public Function Clone() As MediaSample 
public: 
MediaSample^ Clone();  

Return Value

A new MediaSample object containing a copy of sample data and attributes of this MediaSample object.

Remarks

Making a copy of an existing MediaSample object is useful for keeping a MediaSample object because getting multiple sample buffers will invalidate the previous buffers. This method is similar to CopyTo, except that this method creates a new MediaSample, copies everything into it and then returns the newly created object.

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly