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

미디어 스트림의 형식입니다. 이 값은 오디오 또는 비디오일 수 있습니다.

streamSample
MediaStreamSample

스트림 샘플의 배열입니다.

pts
Int64

long long

long

샘플을 재생할 시기를 나타내는 프레젠테이션 타임스탬프(밀리초)입니다. 이 값은 프레젠테이션의 이전 샘플과 상대적입니다. 예를 들어 지정된 샘플에 프레젠테이션 타임스탬프를 1000으로 지정하고 일부 이후 샘플에 프레젠테이션 타임스탬프를 2000으로 지정한 경우 이후 샘플은 지정된 샘플 다음에 1초(1000ms)가 발생합니다.

ccFormat
NDClosedCaptionFormat

닫힌 캡션 형식입니다. 이 값은 ATSC, SCTE20 또는 알 수 없음일 수 있습니다.

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[])
특성

적용 대상