SmoothStreamingMediaElement.ParseExternalManifest Method

Downloads, parses, and returns an object that represents the specified external manifest.

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

public void ParseExternalManifest(
	Uri externalManifestUri,
	int millisecondsTimeout,
	out Object externalManifest


Type: System.Uri
The URI of the manifest data to parse.
Type: System.Int32
The timeout interval to avoid blocking if external data is not returned quickly.
Type: System.Object%
When this method returns, contains the object that receives the external manifest data.

The manifest that is the result of calling this method can be passed to MergeExternalManifest to override elements of the main manifest by elements from the external manifest. For more information and for examples, see Manifest Merge.

Applications can call ParseExternalManifest only from the ManifestMerge event handler. Outside the scope of this method, ParseExternalManifest throws an InvalidOperationException exception.

The ParseExternalManifest method reads XML data from a source identified by the externalManifestUri parameter. To avoid blocking, the millisecondsTimeout parameter sets a timeout interval in milliseconds. The last parameter returns the new parsed data.

// Out parameter for function.
  Uri uriExtManifest = new 
    SmoothPlayer.ParseExternalManifest(uriExtManifest, 3000, out parsedExternManifest);


Supported in: 5