LogReady

Silverlight

Occurs when the log is ready.

<MediaElement LogReady="eventhandlerFunction"  .../>
[token = ]object.AddEventListener("LogReady", eventhandlerFunction)

AddEventListener Parameters

token

integer

A token that is returned from the function, which you can optionally retain as a variable. If you intend to call RemoveEventListener to remove the handler, you will need this token.

eventhandlerFunction

object

The name of your event handler function as it is defined in JavaScript.

Event Handler Parameters

sender

object

The MediaElement that invoked the event.

logReadyEventArgs

object

logReadyEventArgs.Log gets the XML string in the Windows Media Log format that contains the fields listed in the LogFields section.

logReadyEventArgs.LogSource gets a value of the LogSource enumeration, which provides a reason why LogReady was raised for this case. For more information, see the managed version of the enumeration for code mapping: LogSource.

This event indicates that a log is ready. This event is only raised for progressive downloads. It can result from an automatic log event, such as Seek, Stop, or SourceChanged.

The JavaScript API for MediaElement does not support the RequestLog method. You must use managed code to specifically request the log outside of automatic logging.

Silverlight 3

Community Additions

ADD
Show: