PlayToReceiver.NotifyLoadedMetadata 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
通知播放收件者媒體的元數據已完成載入。
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