Partager via


INDStreamParserNotifier.OnSampleParsed Méthode

Définition

Appelé lorsque l’analyseur de flux analyse un exemple à partir du flux multimédia.

public:
 void OnSampleParsed(unsigned int streamID, NDMediaStreamType streamType, MediaStreamSample ^ streamSample, long long pts, NDClosedCaptionFormat ccFormat, Platform::Array <byte> ^ ccDataBytes);
void OnSampleParsed(uint32_t const& streamID, NDMediaStreamType const& streamType, MediaStreamSample const& streamSample, long const& pts, NDClosedCaptionFormat const& ccFormat, winrt::array_view <byte> const& ccDataBytes);
/// [Windows.Foundation.Metadata.Deprecated("INDStreamParserNotifier is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
void OnSampleParsed(uint32_t const& streamID, NDMediaStreamType const& streamType, MediaStreamSample const& streamSample, long const& pts, NDClosedCaptionFormat const& ccFormat, winrt::array_view <byte> const& ccDataBytes);
public void OnSampleParsed(uint streamID, NDMediaStreamType streamType, MediaStreamSample streamSample, long pts, NDClosedCaptionFormat ccFormat, byte[] ccDataBytes);
[Windows.Foundation.Metadata.Deprecated("INDStreamParserNotifier is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public void OnSampleParsed(uint streamID, NDMediaStreamType streamType, MediaStreamSample streamSample, long pts, NDClosedCaptionFormat ccFormat, byte[] ccDataBytes);
function onSampleParsed(streamID, streamType, streamSample, pts, ccFormat, ccDataBytes)
Public Sub OnSampleParsed (streamID As UInteger, streamType As NDMediaStreamType, streamSample As MediaStreamSample, pts As Long, ccFormat As NDClosedCaptionFormat, ccDataBytes As Byte())

Paramètres

streamID
UInt32

unsigned int

uint32_t

Identificateur du flux multimédia en cours d’analyse.

streamType
NDMediaStreamType

Type du flux multimédia. Cette valeur peut être Audio ou Vidéo.

streamSample
MediaStreamSample

Tableau d’exemples de flux.

pts
Int64

long long

long

Horodatage de présentation qui indique quand lire l’exemple.

ccFormat
NDClosedCaptionFormat

Format légende fermé. Cette valeur peut être ATSC, SCTE20 ou Unknown.

ccDataBytes

Byte[]

byte[]

Tableau qui contient les données légende fermées.

Attributs

S’applique à