Partage via


NDStreamParserNotifier.OnSampleParsed Méthode

Définition

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

public:
 virtual void OnSampleParsed(unsigned int streamID, NDMediaStreamType streamType, MediaStreamSample ^ streamSample, long long pts, NDClosedCaptionFormat ccFormat, Platform::Array <byte> ^ ccDataBytes) = OnSampleParsed;
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, en millisecondes. Cette valeur est relative aux exemples précédents de la présentation. Par exemple, si un exemple donné a un horodatage de présentation de 1000 et qu’un exemple ultérieur a un horodatage de présentation de 2000, l’exemple suivant se produit une seconde (1 000 ms) après l’exemple donné.

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.

Implémente

M:Windows.Media.Protection.PlayReady.INDStreamParserNotifier.OnSampleParsed(System.UInt32,Windows.Media.Protection.PlayReady.NDMediaStreamType,Windows.Media.Core.MediaStreamSample,System.Int64,Windows.Media.Protection.PlayReady.NDClosedCaptionFormat,System.Byte[]) M:Windows.Media.Protection.PlayReady.INDStreamParserNotifier.OnSampleParsed(unsigned int,Windows.Media.Protection.PlayReady.NDMediaStreamType,Windows.Media.Core.MediaStreamSample,long long,Windows.Media.Protection.PlayReady.NDClosedCaptionFormat,byte[]) M:Windows.Media.Protection.PlayReady.INDStreamParserNotifier.OnSampleParsed(uint32_t,Windows.Media.Protection.PlayReady.NDMediaStreamType,Windows.Media.Core.MediaStreamSample,long,Windows.Media.Protection.PlayReady.NDClosedCaptionFormat,byte[])
Attributs

S’applique à