一,直接用MOSS库配置开发:http://www.cnblogs.com/jianyi0115/archive/2008/04/28/1175259.html
二,用转换后的flv库(自己开发):
1,截取moss上传方法(加事件)
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using System.IO;
using System.Xml;
using System.Diagnostics;
using System.Threading;
using TNPJVC.Video.Model;
using TNPJVC.Video.BLL;
using TNPJVC.Pattern;
public VideoSPItemEventReceiver()
{
ServerFactory.ApplicationType = ApplicationType.APP;
sXmlPath = VideoInfo.XmlDefaultPath;
xml = new MyXml(sXmlPath);
sMyLogPath = xml.ReadXmlNode("LogPath");
log = new Log(sMyLogPath);
mVideo = new VideoInfo(sXmlPath);
bVideos = new Videos();
}
public override void ItemAdding(SPItemEventProperties properties)
{