[C# 2.0] Comment administrer un serveur de streaming ?
Bonjour a tous,
depuis quelquesjour je m arrache les cheveux sur windows Media service, je tente de faire une appli asp.net pour administrer un serveur de streaming mais
je bloque des la creation d'un flux video :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
public class clVideo
{
string csServerName = "http://localhost";
public clVideo(string csServerName)
{
this.csServerName = csServerName;
}
public void CreatePublishingPoint()
{
WMSServer Server;
IWMSBroadcastPublishingPoint BCPubPoint;
try
{
// Create the WMSServer object.
Server = new WMSServerClass();
// Add a new broadcast publishing point.
BCPubPoint = (IWMSBroadcastPublishingPoint)Server.PublishingPoints.Add("PublishedDave",
WMS_PUBLISHING_POINT_CATEGORY.WMS_PUBLISHING_POINT_BROADCAST,
"http://localhost:1755");
}
catch (COMException comExc)
{
// TODO: Handle COM exceptions.
}
catch (Exception exc)
{
// TODO: Exception handler goes here.
}
finally
{
// TODO: Clean-up code goes here.
}
}
} |
j'ai une exception COMException qui se declenche tres explicite :
Retrieving the COM class factory for component with CLSID {845FB959-4279-11D2-BF23-00805FBE84A6} failed due to the following error: 80040154.
J'ai pourtant installe le SDK pour windows media 9....
merci a vous
ps: si quelqu'un a de bon tutaux sur le sujet je ne suis pas contre