VideoStreamDescriptor 클래스

정의

비디오 미디어 스트림의 설명을 나타냅니다.

public ref class VideoStreamDescriptor sealed
public ref class VideoStreamDescriptor sealed : IMediaStreamDescriptor2
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class VideoStreamDescriptor final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VideoStreamDescriptor final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Core.IVideoStreamDescriptorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VideoStreamDescriptor final : IMediaStreamDescriptor2
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class VideoStreamDescriptor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VideoStreamDescriptor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Core.IVideoStreamDescriptorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VideoStreamDescriptor : IMediaStreamDescriptor2
function VideoStreamDescriptor(encodingProperties)
Public NotInheritable Class VideoStreamDescriptor
Public NotInheritable Class VideoStreamDescriptor
Implements IMediaStreamDescriptor2
상속
Object Platform::Object IInspectable VideoStreamDescriptor
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

MediaEncodingProfile을 만들 때 SetVideoTracks를 호출하여 하나 이상의 VideoStreamDescriptor 개체를 전달하여 인코딩할 비디오 트랙에 대한 정보를 제공합니다.

UWP 앱에서 미디어 스트림 원본을 사용하는 예제는 MediaStreamSource 샘플을 참조하세요.

버전 기록

Windows 버전 SDK 버전 추가된 값
1709 16299 레이블
1803 17134 복사

생성자

VideoStreamDescriptor(VideoEncodingProperties)

지정된 VideoEncodingProperties를 사용하여 VideoStreamDescriptor 클래스의 instance 만듭니다.

속성

EncodingProperties

비디오 스트림의 인코딩 속성을 설명하는 개체를 가져옵니다. 이러한 속성에는 비디오의 해상도 및 프레임 속도가 포함됩니다.

IsSelected

스트림이 MediaStreamSource에서 현재 사용 중인지 여부를 나타내는 값을 가져옵니다.

Label

여러 스트림이 포함된 MediaEncodingProfile 에서 비디오 스트림을 식별하는 앱 정의 레이블을 가져오거나 설정합니다.

Language

스트림에 대한 RFC-1766 언어 코드를 가져오거나 설정합니다.

Name

스트림의 이름을 가져오거나 설정합니다.

메서드

Copy()

Windows.Media.Core.VideoStreamDescriptor의 복사본을 만듭니다.

적용 대상

추가 정보