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)
Syntax
'Declaration
Public Sub ParseExternalManifest ( _
externalManifestUri As Uri, _
millisecondsTimeout As Integer, _
<OutAttribute> ByRef externalManifest As Object _
)
'Usage
Dim instance As SmoothStreamingMediaElement
Dim externalManifestUri As Uri
Dim millisecondsTimeout As Integer
Dim externalManifest As Object
instance.ParseExternalManifest(externalManifestUri, _
millisecondsTimeout, externalManifest)
public void ParseExternalManifest(
Uri externalManifestUri,
int millisecondsTimeout,
out Object externalManifest
)
public:
void ParseExternalManifest(
Uri^ externalManifestUri,
int millisecondsTimeout,
[OutAttribute] Object^% externalManifest
)
member ParseExternalManifest :
externalManifestUri:Uri *
millisecondsTimeout:int *
externalManifest:Object byref -> unit
public function ParseExternalManifest(
externalManifestUri : Uri,
millisecondsTimeout : int,
externalManifest : Object
)
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.
Remarks
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.
Examples
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("https://serverName/BigBuckBunnyCaptions.xml");
SmoothPlayer.ParseExternalManifest(uriExtManifest, 3000, out parsedExternManifest);
Version Information
Silverlight
Supported in: 5