MediaSource 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
미디어 원본을 나타냅니다. 다양한 원본에서 미디어를 참조하는 일반적인 방법을 제공하고 기본 미디어 형식에 관계없이 미디어 데이터에 액세스하기 위한 공통 모델을 노출합니다.
public ref class MediaSource sealed : IClosable
/// [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 MediaSource final : IClosable
[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 MediaSource : System.IDisposable
Public NotInheritable Class MediaSource
Implements IDisposable
- 상속
- 특성
- 구현
Windows 요구 사항
| 디바이스 패밀리 |
Windows 10 (10.0.10240.0에서 도입되었습니다.)
|
| API contract |
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
|
설명
팩터리 메서드 중 하나를 사용하여 다음을 비롯한 다양한 미디어 원본 표현에서 MediaSource 인스턴스를 만들 수 있습니다.
- AdaptiveMediaSource
- MediaStreamSource
- MseStreamSource
- IStorageFile
- IRandomAccessStream
- IRandomAccessStreamReference
- Uri
MediaSource 인스턴스를 가져온 후 미디어 원본 래핑을 새로 MediaPlaybackItem 만들고 미디어 재생 개체(예: MediaPlayer 또는 MediaElement) 중 하나에 전달 MediaPlaybackItem 합니다.
MediaSource 를 사용하여 미디어를 재생하기 위한 방법 지침은 미디어 항목, 재생 목록 및 트랙을 참조하세요.
버전 기록
| Windows 버전 | SDK 버전 | 추가된 값 |
|---|---|---|
| 1511 | 10586 | CreateFromMediaBinder |
| 1511 | 10586 | 다시 설정 |
| 1511 | 10586 | 시스템 상태 |
| 1511 | 10586 | StateChanged |
| 1703 | 15063 | AdaptiveMediaSource |
| 1703 | 15063 | MediaStreamSource |
| 1703 | 15063 | MseStreamSource |
| 1703 | 15063 | OpenAsync |
| 1703 | 15063 | URI |
| 1709 | 16299 | CreateFromMediaFrameSource |
| 1803 | 17134 | CreateFromDownloadOperation |
| 1803 | 17134 | DownloadOperation |
속성
| AdaptiveMediaSource |
AdaptiveMediaSource MediaSource 와 연결된 값을 가져옵니다. |
| CustomProperties |
앱 관련 데이터를 .와 연결하는 데 사용할 수 있는 속성 집합을 MediaSource가져옵니다. |
| DownloadOperation |
MediaSource 가 DownloadOperation 연결된 값을 검색합니다. |
| Duration |
에 있는 MediaSource콘텐츠의 기간을 가져옵니다. |
| ExternalTimedMetadataTracks |
와 연결된 외부 시간 제한 메타데이터 트랙의 MediaSource컬렉션입니다. |
| ExternalTimedTextSources |
와 연결된 MediaSource외부 시간 제한 텍스트 원본의 컬렉션입니다. |
| IsOpen |
미디어 원본이 현재 열려 있는지 여부를 나타내는 값을 가져옵니다. |
| MediaStreamSource |
MediaStreamSource MediaSource 와 연결된 값을 가져옵니다. |
| MseStreamSource |
MseStreamSource MediaSource 와 연결된 값을 가져옵니다. |
| State |
MediaSource의 현재 상태를 가져옵니다. |
| Uri |
MediaSource 와 연결된 URI를 가져옵니다. |
메서드
이벤트
| OpenOperationCompleted |
MediaSource 열린 작업이 완료되면 발생합니다. |
| StateChanged |
현재 상태가 변경되면 발생합니다 MediaSource . |
적용 대상
추가 정보
피드백
다음에 대한 사용자 의견 제출 및 보기