PlayToReceiver.TimeUpdateRequested | timeupdaterequested event

Applies to Windows only

Occurs when the current playback position has changed.

Syntax


function onTimeUpdateRequested(eventArgs) { /* Your code */ }
 
// addEventListener syntax
playToReceiver.addEventListener("timeupdaterequested", onTimeUpdateRequested);
playToReceiver.removeEventListener("timeupdaterequested", onTimeUpdateRequested);
 
- or -

playToReceiver.ontimeupdaterequested = onTimeUpdateRequested;


Event information

Delegate TypedEventHandler<PlayToReceiver, Object>

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_TimeUpdateRequested() {
    receiver.notifyTimeUpdate(videoPlayer.currentTime * 1000);
}


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. All rights reserved.