PlayToReceiver.StartAsync | startAsync method

Applies to Windows only

Start receiving Play To commands.

Syntax


playToReceiver.startAsync().done( /* Your success and error handlers */ );

Parameters

This method has no parameters.

Return value

Type: IAsyncAction

An asynchronous handler that's called when the start operation is complete.

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).


    // Advertise the receiver on the local network and start receiving commands
    receiver.startAsync().done(function () {
        // Prevent the screen from locking
        if (display == null) {
            display = new Windows.System.Display.DisplayRequest();
        }
        display.requestActive();

        statusDiv.innerHTML = "'" + receiver.friendlyName + "' started.";
    });


Requirements

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

See also

PlayToReceiver
Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show:
© 2014 Microsoft