Windows Dev Center

PlayToReceiver.NotifyLoadedMetadata | notifyLoadedMetadata method

Notifies the Play To receiver that metadata for the media has finished loading.

Syntax


playToReceiver.notifyLoadedMetadata();

Parameters

This method has no parameters.

Remarks

For an example of creating a software Play To receiver, see Quickstart: Creating a Play To Receiver (JavaScript) or Quickstart: Creating a Play To Receiver (C#/VB).


function videoPlayer_DurationChange() {
    if (videoPlayer.duration !== Infinity)
    {
        receiver.notifyDurationChange(videoPlayer.duration * 1000);
    }
}

function videoPlayer_LoadedMetadata () { 
    receiver.notifyLoadedMetadata(); 
}


Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.PlayTo
Windows::Media::PlayTo [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

privateNetworkClientServer

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Media.PlayTo
Windows::Media::PlayTo [C++]

Metadata

Windows.winmd

Capabilities

privateNetworkClientServer

See also

PlayToReceiver
Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show:
© 2015 Microsoft