PlayToReceiver.NotifyLoadedMetadata 方法

定义

通知“播放到”接收器媒体的元数据已完成加载。

public:
 virtual void NotifyLoadedMetadata() = NotifyLoadedMetadata;
void NotifyLoadedMetadata();
public void NotifyLoadedMetadata();
function notifyLoadedMetadata()
Public Sub NotifyLoadedMetadata ()

Windows 要求

应用功能
privateNetworkClientServer

注解

有关创建软件“播放到”接收器的示例,请参阅 媒体强制转换

void VideoPlayer_MediaOpened(object sender, RoutedEventArgs e)
{
    if (receiver != null)
    {
        receiver.NotifyDurationChange(VideoPlayer.NaturalDuration.TimeSpan);
        receiver.NotifyLoadedMetadata();
    }
}
Sub VideoPlayer_MediaOpened()
    If receiver IsNot Nothing Then
        receiver.NotifyDurationChange(VideoPlayer.NaturalDuration.TimeSpan)
        receiver.NotifyLoadedMetadata()
    End If
End Sub

适用于

另请参阅