Export (0) Print
Expand All

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
)

Parameters

externalManifestUri
Type: System.Uri
The URI of the manifest data to parse.
millisecondsTimeout
Type: System.Int32
The timeout interval to avoid blocking if external data is not returned quickly.
externalManifest
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 
  Uri("http://serverName/BigBuckBunnyCaptions.xml");
    SmoothPlayer.ParseExternalManifest(uriExtManifest, 3000, out parsedExternManifest);

Silverlight

Supported in: 5
Show:
© 2014 Microsoft