SourceChangeRequestedEventArgs class

Applies to Windows only

Provides information about the SourceChangeRequested event.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[Version(0x06020000)]

Members

The SourceChangeRequestedEventArgs class has these types of members:

Methods

The SourceChangeRequestedEventArgs class inherits methods from the Object class (C#/VB/C++).

Properties

The SourceChangeRequestedEventArgs class has these properties.

PropertyAccess typeDescription

Album

Read-onlyGets the name of the album that contains the song in the audio stream.

Author

Read-onlyGets the author of the content in the media stream.

Date

Read-onlyGets the date that the content in the media stream was published.

Description

Read-onlyGets the description of the content in the media stream.

Genre

Read-onlyGets the names of the genres that the content in the media stream belongs to.

Properties

Read-onlyGets custom property names and values for the content in the media stream.

Rating

Read-onlyGets the rating for the content in the media stream.

Stream

Read-onlyGets the media stream for the Play To receiver.

Thumbnail

Read-onlyGets the thumbnail image for the content in the media stream.

Title

Read-onlyGets the title of the content in the media stream.

 

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 receiver_SourceChangeRequested(args) {
    if (args.stream != null) {
        var mediaStream = MSApp.createBlobFromRandomAccessStream(args.stream.contentType, args.stream);
        videoPlayer.src = URL.createObjectURL(mediaStream, false);
    }
}


Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show:
© 2014 Microsoft