Windows Dev Center

CurrentTimeChangeRequestedEventArgs class

Provides information about the CurrentTimeChangeRequested event.

Syntax


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

Members

The CurrentTimeChangeRequestedEventArgs class has these types of members:

Methods

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

Properties

The CurrentTimeChangeRequestedEventArgs class has these properties.

PropertyAccess typeDescription

Time

Read-onlyGets the new time that the Play To source audio or video stream has been changed to.

 

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_CurrentTimeChangeRequested(args) {
    if (videoPlayer.currentTime !== 0 || args.time !== 0) {
        videoPlayer.currentTime = args.time / 1000;
    }
}


Requirements (Windows 10 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

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

[Version(0x06020000)]

See also

Object
Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show:
© 2015 Microsoft