VideoStreamDescriptor Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mewakili deskripsi aliran media video.
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
- Warisan
- Atribut
- Penerapan
Persyaratan Windows
Rangkaian perangkat |
Windows 10 (diperkenalkan dalam 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)
|
Keterangan
Saat membuat MediaEncodingProfile, panggil SetVideoTracks, meneruskan satu atau beberapa objek VideoStreamDescriptor untuk memberikan informasi tentang trek video yang akan dikodekan.
Lihat Sampel MediaStreamSource untuk contoh penggunaan Sumber Aliran Media di aplikasi UWP.
Riwayat versi
Versi Windows | Versi SDK | Nilai ditambahkan |
---|---|---|
1709 | 16299 | Label |
1803 | 17134 | Menyalin |
Konstruktor
VideoStreamDescriptor(VideoEncodingProperties) |
Membuat instans kelas VideoStreamDescriptor menggunakan VideoEncodingProperties yang ditentukan. |
Properti
EncodingProperties |
Mendapatkan objek yang menjelaskan properti pengodean untuk streaming video. Properti ini mencakup resolusi dan kecepatan bingkai video. |
IsSelected |
Mendapatkan nilai yang menunjukkan apakah aliran saat ini sedang digunakan oleh MediaStreamSource. |
Label |
Mendapatkan atau mengatur label yang ditentukan aplikasi yang mengidentifikasi aliran video di MediaEncodingProfile yang berisi beberapa aliran. |
Language |
Mendapatkan atau mengatur kode bahasa RFC-1766 untuk aliran. |
Name |
Mendapatkan atau mengatur nama aliran. |
Metode
Copy() |
Membuat salinan Windows.Media.Core.VideoStreamDescriptor. |