次の方法で共有


NDStreamParserNotifier.OnSampleParsed メソッド

定義

ストリーム パーサーがメディア ストリームからサンプルを解析するときに呼び出されます。

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())

パラメーター

streamID
UInt32

unsigned int

uint32_t

解析されるメディア ストリームの識別子。

streamType
NDMediaStreamType

メディア ストリームの種類。 この 値には Audio または Video を指定できます。

streamSample
MediaStreamSample

ストリーム サンプルの配列。

pts
Int64

long long

long

サンプルを再生するタイミングをミリ秒単位で示すプレゼンテーションタイムスタンプ。 この値は、プレゼンテーション内の以前のサンプルに対する相対値です。 たとえば、特定のサンプルのプレゼンテーション タイムスタンプが 1000 で、それ以降のサンプルのプレゼンテーション タイムスタンプが 2000 の場合、後のサンプルは、指定されたサンプルの 1 秒後に 1 秒 (1000 ミリ秒) 発生します。

ccFormat
NDClosedCaptionFormat

閉じたキャプション形式。 この値には、 ATSCSCTE20、または Unknown を指定できます。

ccDataBytes

Byte[]

byte[]

閉じたキャプション データを格納する配列。

実装

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[])
属性

適用対象