ParseExternalManifest Method

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 Sub ParseExternalManifest ( _
	externalManifestUri As Uri, _
	millisecondsTimeout As Integer, _
	<OutAttribute> ByRef externalManifest As Object _
Dim instance As SmoothStreamingMediaElement
Dim externalManifestUri As Uri
Dim millisecondsTimeout As Integer
Dim externalManifest As Object

instance.ParseExternalManifest(externalManifestUri, _
	millisecondsTimeout, 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 (IIS Smooth Streaming).

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: 4

© 2016 Microsoft